Non-Purchasable WooCommerce Products

Allow selected WooCommerce products to be non-purchasable, display-only products, with a custom message shown to the customer.

v1.4GuyPrimaveraUpdated Added 1k+ installs98% rating
72
Score
14
Errors
13
Warnings
+0
Change

Category Scores

Security55
Repo91
Performance100
Maintainability90

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

27 findings

Security

10

4 issue groups

Maintainability

10

3 issue groups

I18n

5

2 issue groups

Repo Compliance

2

2 issue groups

WARNINGSecurityInput is not validatedDetected usage of a possibly undefined superglobal array index: $_SERVER['SCRIPT_FILENAME']. Check that the array index exists before using it.5
Category
Security
Occurrences
5
Severity
warning

Sample message

Detected usage of a possibly undefined superglobal array index: $_SERVER['SCRIPT_FILENAME']. Check that the array index exists before using it.

ERRORMaintainabilityMissing direct file access protectionPHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;5
Category
Maintainability
Occurrences
5
Severity
error

Sample message

PHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;

ERRORI18nText Domain MismatchMismatched text domain. Expected 'non-purchasable-woocommerce-products' but got 'woocommerce'.4
Category
I18n
Occurrences
4
Severity
error

Sample message

Mismatched text domain. Expected 'non-purchasable-woocommerce-products' but got 'woocommerce'.

ERRORSecurityOutput is not escapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '__'.3
Category
Security
Occurrences
3
Severity
error

Sample message

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '__'.

WARNINGMaintainabilitytrademarked termThe 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.3
Category
Maintainability
Occurrences
3
Severity
warning

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.

WARNINGMaintainabilityNon-prefixed functionFunctions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: "no_woocommerce_notice".2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

Functions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: "no_woocommerce_notice".

WARNINGSecurityMissing nonce verificationProcessing form data without nonce verification.1
Category
Security
Occurrences
1
Severity
warning

Sample message

Processing form data without nonce verification.

WARNINGSecurityNonce verification recommendedProcessing form data without nonce verification.1
Category
Security
Occurrences
1
Severity
warning

Sample message

Processing form data without nonce verification.

ERRORI18nNon Singular String Literal TextThe $text parameter must be a single text string literal. Found: '<a href="'. admin_url() .'admin.php?page=wc-settings&tab=products&section=non-purchasable" target="_blank">Settings</a>'1
Category
I18n
Occurrences
1
Severity
error

Sample message

The $text parameter must be a single text string literal. Found: '<a href="'. admin_url() .'admin.php?page=wc-settings&tab=products&section=non-purchasable" target="_blank">Settings</a>'

ERRORRepo Complianceoutdated tested upto headerTested 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.1
Category
Repo Compliance
Occurrences
1
Severity
error

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.

Show 1 more
WARNINGRepo Compliancereadme parser warnings too many tags1
Category
Repo Compliance
Occurrences
1
Severity
warning

Sample message

One or more tags were ignored. Please limit your plugin to 5 tags.

External Connections

Potential connections found in static code analysis.

3 domains

Outbound calls

5

External assets

0

Incoming endpoints

0

Notable Domains

guyprimavera.com1 · outbound
paypal.com1 · outbound

Platform / Reference Domains

wordpress.org3 · platform/reference

External Asset Domains

No external asset domains detected.

Incoming Endpoints

No public endpoints detected.

Score History

First score snapshot

v1.4

72

Latest

Findings
27
Errors
14
Warnings
13
Check
2.0.0

Relationship Map

Author, categories, issues, domains, and nearby plugins.

30 nodes

Related Plugins