Added check to ensure the plugin php file is not accessed directly