Changes according to Prestashop validator. The change for ps_version_compliancy method was reverted because this change impeded the instalation of plugin.