Allow selected WooCommerce products to be non-purchasable, display-only products, with a custom message shown to the customer.
Prioritized issue groups from the latest Plugin Check scan
Security
10
4 issue groups
Maintainability
10
3 issue groups
I18n
5
2 issue groups
Repo Compliance
2
2 issue groups
Sample message
Detected usage of a possibly undefined superglobal array index: $_SERVER['SCRIPT_FILENAME']. Check that the array index exists before using it.
Sample message
PHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;
Sample message
Mismatched text domain. Expected 'non-purchasable-woocommerce-products' but got 'woocommerce'.
Sample message
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '__'.
Sample message
The plugin name includes a restricted term. Your chosen plugin name - "Non-Purchasable WooCommerce Products" - contains the restricted term "woocommerce" which cannot be used within in your plugin name, unless your plugin name contains one of the allowed patterns: "for woocommerce", "with woocommerce", "using woocommerce", or "and woocommerce". The term must still not appear anywhere else in your name.
Sample message
Functions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: "no_woocommerce_notice".
Sample message
Processing form data without nonce verification.
Sample message
Processing form data without nonce verification.
Sample message
The $text parameter must be a single text string literal. Found: '<a href="'. admin_url() .'admin.php?page=wc-settings&tab=products§ion=non-purchasable" target="_blank">Settings</a>'
Sample message
Tested up to: 5.7 < 7.0. The "Tested up to" value in your plugin is not set to the current version of WordPress. This means your plugin will not show up in searches, as we require plugins to be compatible and documented as tested up to the most recent version of WordPress.
Sample message
One or more tags were ignored. Please limit your plugin to 5 tags.
Potential connections found in static code analysis.
Outbound calls
5
External assets
0
Incoming endpoints
0
No external asset domains detected.
No public endpoints detected.
First score snapshot
v1.4
72
Latest
| Scan | Score | Findings | Errors | Warnings | Plugin | Check |
|---|---|---|---|---|---|---|
| Latest | 72 | 27 | 14 | 13 | v1.4 | 2.0.0 |
Author, categories, issues, domains, and nearby plugins.