rename plugin.php to plugin-check.php #564
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Rename plugin.php to plugin-check.php
As per the plugin development Best Practices Folder structure recommended, the plugin's main file name should be plugin folder name.php.
Plugin Checkis our plugin name, So,plugin.phpfile should beplugin-check.php.I also provide a reference from
WordPress Plugin Review Team:The main file of the plugin has a name that does not follow the convention.
We expect the main plugin file (the file containing the plugin headers) to have the same name as the plugin folder, which is also the same name as the slug / permalink of the plugin.
For example, if your plugin slug is ecpt-social-manager we expect your main plugin filename to be ecpt-social-manager.php
Note that using some common names as the filename for the main plugin file can lead to issues in some configurations.
Please check out our tips on how to structure files and folders in a plugin.
The main file of this plugin is named plugin.php