(b) At all permanency planning hearings, the court shall determine the permanent plan for the minor. The court shall order one of the following permanent plans, in order of priority:
(1) Return of the minor to the physical custody of the parent or legal guardian. After considering the admissible and relevant evidence, the court shall order the return of the minor to the physical custody of his or her parent or legal guardian unless:
(A) Reunification services were not offered, pursuant to subdivision (b) of Section 727.2.
(B) The court finds, by a preponderance of the evidence, that the return of the minor to his or her parent or legal guardian would create a substantial risk of detriment to the safety, protection, or physical or emotional well-being of the minor. The probation department shall have the burden of establishing that detriment. In making its determination, the court shall review and consider the social study report and recommendations pursuant to Section 706.5, the report and recommendations of any child advocate appointed for the minor in the case, and any other reports submitted pursuant to paragraph (2) of subdivision (a), and shall consider the efforts or progress, or both, demonstrated by the minor and family and the extent to which the minor availed himself or herself of the services provided.
(2) Order that the permanent plan for the minor will be to return the minor to the physical custody of the parent or legal guardian, order further reunification services to be provided to the minor and his or her parent or legal guardian for a period not to exceed six months and continue the case for up to six months for a subsequent permanency planning hearing, provided that the subsequent hearing shall occur within 18 months of the date the minor was originally taken from the physical custody of his or her parent or legal guardian. The court shall continue the case only if it finds that there is a substantial probability that the minor will be returned to the physical custody of his or her parent or legal guardian and safely maintained in the home within the extended period of time or that reasonable services have not been provided to the parent or guardian. For purposes of this section, in order to find that there is a substantial probability that the minor will be returned to the physical custody of his or her parent or legal guardian, the court shall be required to find that the minor and his or her parent or legal guardian have demonstrated the capacity and ability to complete the objectives of the case plan. The court shall inform the parent or legal guardian that if the minor cannot be returned home by the next permanency planning hearing, a proceeding pursuant to Section 727.31 may be initiated. The court shall not continue the case for further reunification services if it has been 18 months or more since the date the minor was originally taken from the physical custody of his or her parent or legal guardian.
(3) Identify adoption as the permanent plan and order that a hearing be held within 120 days, pursuant to the procedures described in Section 727.31. The court shall only set a hearing pursuant to Section 727.31 if there is clear and convincing evidence that reasonable services have been provided or offered to the parents. When the court sets a hearing pursuant to Section 727.31, it shall order that an adoption assessment report be prepared, pursuant to subdivision (b) of Section 727.31.
(4) Order a legal guardianship, pursuant to procedures described in subdivisions (c) to (f), inclusive, of Section 728.
(5) Place the minor with a fit and willing relative. “Placement with a fit and willing relative” means placing the minor with an appropriate approved relative who is willing to provide a permanent and stable home for the minor, but is unable or unwilling to become the legal guardian. When a minor is placed with a fit and willing relative, the court may authorize the relative to provide the same legal consent for the minor’s medical, surgical, and dental care, and education as the custodial parent of the minor.
(6) (A) If he or she is 16 years of age or older, place the minor in another planned permanent living arrangement. For purposes of this section, “planned permanent living arrangement” means any permanent living arrangement described in Section 11402 that is ordered by the court for a minor 16 years of age or older when there is a compelling reason or reasons to determine that it is not in the best interest of the minor to have any permanent plan listed in paragraphs (1) to (5), inclusive. These plans include, but are not limited to, placement in a specific, identified foster home, program, or facility on a permanent basis, or placement with a transitional housing placement provider. When the court places a minor in a planned permanent living arrangement, the court shall specify the goal of the placement, which may include, but shall not be limited to, return home, emancipation, guardianship, or permanent placement with a relative. The court shall only order that the minor remain in a planned permanent living arrangement if the court finds by clear and convincing evidence, based upon the evidence already presented to it, that there is a compelling reason, as defined in subdivision (c), for determining that a plan of termination of parental rights and adoption is not in the best interest of the minor.
(B) If the minor is under 16 years of age and the court finds by clear and convincing evidence, based upon the evidence already presented to it, that there is a compelling reason, as defined in subdivision (c), for determining that a plan of termination of parental rights and adoption is not in the best interest of the minor as of the hearing date, the court shall order the minor to remain in a foster care placement with a permanent plan of return home, adoption, legal guardianship, or placement with a fit and willing relative, as appropriate. The court shall make factual findings identifying any barriers to achieving the permanent plan as of the hearing date.