(1) No conviction or order made by any magistrate and no warrant for enforcing the order, shall be held invalid for any irregularity, informality or insufficiency, if the judge before whom the question is raised, upon perusal of the record is satisfied that an offence of the nature described in the conviction, order or warrant, has been committed, over which the magistrate has jurisdiction, and that the punishment imposed is not in excess of that which might have been lawfully imposed for the offence.