proper check for .php plugin files