fit WordPress coding standards
more conform to the WordPress Coding Standards
handle error and add localization