The council shall have the power to determine the necessity of any local or public improvement with or without a petition therefor and to determine that the whole or any part of the expense thereof shall be defrayed by special assessment upon the property especially benefited, provided that all special assessments levied shall be in proportion to the benefits derived from the improvement.