private static function pluginStructureLooksValid($path) { $name = basename($path); return file_exists($path . "/" . $name . ".php") || self::isManifestFileFound($path); }