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