Added logging dependent on WP_DEBUG. Removed namespace from plugin's main file (to allow older PHP versions to do the health check)