(a) If, after notice and hearing as provided above, the magistrate court determines that the dwelling or building under consideration is unfit for human habitation or is unfit for its current commercial, industrial, or business use; or is vacant, and being used in connection with the commission of drug crimes; or constitutes an endangerment to the public health or safety as a result of unsanitary or unsafe conditions, the court shall issue an order that states in writing its findings of fact in support of such determination and shall issue and cause to be served upon the interested parties that have answered the complaint or appeared at the hearing, an order as follows: (1) If the repair, alteration, or improvement of the said dwelling, building, or structure can be made at a reasonable cost in relation to the present value of the dwelling, building, or structure, requiring the owner within the time specified in the order, to repair, alter or improve such dwelling, building, or structure so as to bring it into full compliance with the applicable codes relevant to the cited violation, and, if applicable, to secure the structure so that it cannot be used in connection with the commission of drug crimes; (2) If the repair, alteration or improvement of the said dwelling, building or structure cannot be made at a reasonable cost in relation to the present value of the dwelling, building, or structure, requiring the owner, within the time specified in the order, to demolish and remove such dwelling, building or structure and all debris from the property; (3) For purposes of this section, the court shall make its determination of "reasonable cost in relation to the present value of the dwelling, building or structure" without consideration of the value of the land on which the structure is situated; provided, however, that costs of the preparation necessary to repair, alter, or improve a structure may be considered. Income and financial status of the owner shall not be a factor in the court's determination. (b) The present value of the structure and the costs of repair, alteration, or improvement may be established by affidavits of real estate appraisers with a state appraiser classification as provided in O.C.G.A. ch. 39A, title 43, qualified building contractors, or qualified building inspectors without actual testimony presented. Costs of repair, alternation, or improvement of the structure shall be the costs necessary to bring the structure into compliance with the applicable codes relevant to the cited violations enforced in the jurisdiction.