Skip to content

Commit b0c68f9

Browse files
davidperezgardavidperezgarfrantorresernilambar
authored
Merge pull request #1138 from WordPress/chore/v1-8
Release Plugin Check 1.8.0 Co-authored-by: davidperezgar <davidperez@git.wordpress.org> Co-authored-by: frantorres <frantorres@git.wordpress.org> Co-authored-by: ernilambar <nilambar@git.wordpress.org>
2 parents 8cf8529 + 156978b commit b0c68f9

3 files changed

Lines changed: 32 additions & 5 deletions

File tree

docs/checks.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@
66
| --- | --- | --- | --- |
77
| i18n_usage | general, plugin_repo | Checks for various internationalization best practices. | [Learn more](https://developer.wordpress.org/plugins/internationalization/how-to-internationalize-your-plugin/) |
88
| code_obfuscation | plugin_repo | Detects the usage of code obfuscation tools. | [Learn more](https://developer.wordpress.org/plugins/wordpress-org/detailed-plugin-guidelines/) |
9+
| direct_file_access | security, plugin_repo | Checks that plugin files include proper security validation using the ABSPATH constant to prevent direct file access. | [Learn more](https://developer.wordpress.org/plugins/plugin-basics/best-practices/#file-security) |
910
| file_type | plugin_repo | Detects the usage of hidden and compressed files, VCS directories, application files, badly named files, AI development directories (.cursor, .claude, .aider, .continue, .windsurf, .ai, .github), and unexpected markdown files in plugin root. | [Learn more](https://developer.wordpress.org/plugins/wordpress-org/detailed-plugin-guidelines/) |
10-
| plugin_header_fields | plugin_repo | Checks adherence to the Headers requirements. | [Learn more](https://developer.wordpress.org/plugins/plugin-basics/header-requirements/) |
11+
| plugin_header_fields | plugin_repo | Checks adherence to the Headers requirements, including validation of "Tested up to" header matching between plugin file and readme.txt. | [Learn more](https://developer.wordpress.org/plugins/plugin-basics/header-requirements/) |
1112
| late_escaping | security, plugin_repo | Checks that all output is escaped before being sent to the browser. | [Learn more](https://developer.wordpress.org/apis/security/escaping/) |
1213
| safe_redirect | security, plugin_repo | Checks that redirects use wp_safe_redirect() instead of wp_redirect() for security. | [Learn more](https://developer.wordpress.org/reference/functions/wp_safe_redirect/) |
1314
| nonce_verification | security, plugin_repo | Checks for proper usage of <code>wp_verify_nonce()</code> to prevent CSRF vulnerabilities. | [Learn more](https://developer.wordpress.org/apis/security/nonces/) |
1415
| plugin_updater | plugin_repo | Prevents altering WordPress update routines or using custom updaters, which are not allowed on WordPress.org. | [Learn more](https://developer.wordpress.org/plugins/wordpress-org/detailed-plugin-guidelines/) |
15-
| plugin_review_phpcs | plugin_repo | Runs PHP_CodeSniffer to detect certain best practices plugins should follow for submission on WordPress.org. | [Learn more](https://developer.wordpress.org/plugins/plugin-basics/best-practices/) |
16+
| plugin_review_phpcs | plugin_repo | Runs PHP_CodeSniffer to detect certain best practices plugins should follow for submission on WordPress.org, including heredoc usage detection. | [Learn more](https://developer.wordpress.org/plugins/plugin-basics/best-practices/) |
1617
| direct_db_queries | security, plugin_repo | Checks the usage of direct database queries, which should be avoided. | [Learn more](https://developer.wordpress.org/apis/database/) |
1718
| direct_db | security, plugin_repo | Checks the escaping in direct database queries. | [Learn more](https://developer.wordpress.org/apis/database/) |
1819
| performant_wp_query_params | performance | Checks for potentially slow database queries when using <code>WP_Query</code> | [Learn more](https://developer.wordpress.org/apis/database/) |

plugin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Description: Plugin Check is a WordPress.org tool which provides checks to help plugins meet the directory requirements and follow various best practices.
66
* Requires at least: 6.3
77
* Requires PHP: 7.4
8-
* Version: 1.7.0
8+
* Version: 1.8.0
99
* Author: WordPress Performance Team and Plugin Review Team
1010
* License: GPLv2 or later
1111
* License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
@@ -16,7 +16,7 @@
1616

1717
use WordPress\Plugin_Check\Plugin_Main;
1818

19-
define( 'WP_PLUGIN_CHECK_VERSION', '1.7.0' );
19+
define( 'WP_PLUGIN_CHECK_VERSION', '1.8.0' );
2020
define( 'WP_PLUGIN_CHECK_MINIMUM_PHP', '7.4' );
2121
define( 'WP_PLUGIN_CHECK_MAIN_FILE', __FILE__ );
2222
define( 'WP_PLUGIN_CHECK_PLUGIN_DIR_PATH', plugin_dir_path( WP_PLUGIN_CHECK_MAIN_FILE ) );

readme.txt

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Contributors: wordpressdotorg
44
Tested up to: 6.9
5-
Stable tag: 1.7.0
5+
Stable tag: 1.8.0
66
License: GPLv2 or later
77
License URI: https://www.gnu.org/licenses/gpl-2.0.html
88
Tags: plugin best practices, testing, accessibility, performance, security
@@ -28,6 +28,19 @@ Keep in mind that this plugin is not a replacement for the manual review process
2828

2929
Even if you do not intend to host your plugin in the WordPress.org directory, you are encouraged to use Plugin Check so that your plugin follows the base requirements and best practices for WordPress plugins.
3030

31+
**Plugin Namer Tool**
32+
33+
Plugin Check now includes an AI-powered Plugin Namer tool (accessible via _Tools > Plugin Check Namer_) that helps plugin authors evaluate plugin names before submission. This tool checks for:
34+
35+
* Similarity to existing plugins in the WordPress.org directory
36+
* Potential trademark conflicts with well-known brands
37+
* Compliance with WordPress plugin naming guidelines
38+
* Generic or overly broad naming issues
39+
40+
The Plugin Namer provides instant feedback with actionable suggestions, helping you choose a clear, unique, and policy-compliant name that stands out in the plugin directory. This feature requires AI provider configuration in the settings.
41+
42+
**Important:** The Plugin Namer tool provides guidance only and is not definitive. All plugin name decisions are subject to final review and approval by the WordPress.org Plugins team reviewers.
43+
3144
== Installation ==
3245

3346
= Installation from within WordPress =
@@ -68,6 +81,19 @@ In any case, passing the checks in this tool likely helps to achieve a smooth pl
6881

6982
== Changelog ==
7083

84+
= 1.8.0 =
85+
86+
* Enhancement - Add AI-powered Plugin Namer tool to evaluate plugin names for trademark conflicts and naming best practices.
87+
* Enhancement - Add AI Instructions Detection Check to identify AI tool configuration files and development-only directories.
88+
* Enhancement - Add support for exporting check results in CSV, JSON, and Markdown formats.
89+
* Enhancement - Add check type filter to allow filtering results by errors and warnings.
90+
* Enhancement - Add Direct File Access check to ensure proper security validation with ABSPATH constant.
91+
* Enhancement - Add check for mismatched "Tested up to" header between plugin header and readme.txt.
92+
* Enhancement - Update trademark check to remove acronym exceptions and improve flexibility.
93+
* Enhancement - Add heredoc sniff to detect and restrict heredoc usage (nowdoc allowed).
94+
* Fix - Update Playground integration blueprint for compatibility.
95+
* Fix - Force correct plugin slug detection in WP-CLI command.
96+
7197
= 1.7.0 =
7298

7399
* Enhancement - Add Minified File Detection Check to identify and handle minified files in plugins.

0 commit comments

Comments
 (0)