Quantities and Units for WooCommerce

Easily require your customers to buy a minimum / maximum / incremental amount of products. Supports decimal quantities.

v1.0.13Nick VerwymerenUpdated Added 1k+ installs88% rating
37
Score
133
Errors
118
Warnings
+0
Change

Category Scores

Security0
Repo86
Performance100
Maintainability68

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

251 findings

Security

157

8 issue groups

I18n

54

6 issue groups

Maintainability

37

10 issue groups

Repo Compliance

1

1 issue group

ERRORSecurityOutput is not escapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$_SERVER['REQUEST_URI']'.63
Category
Security
Occurrences
63
Severity
error

Sample message

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$_SERVER['REQUEST_URI']'.

WARNINGSecurityInput is not sanitizedDetected usage of a non-sanitized input variable: $_POST['_wpbo_deactive']31
Category
Security
Occurrences
31
Severity
warning

Sample message

Detected usage of a non-sanitized input variable: $_POST['_wpbo_deactive']

WARNINGSecurityRequest data is not unslashed$_POST['_wpbo_deactive'] not unslashed before sanitization. Use wp_unslash() or similar31
Category
Security
Occurrences
31
Severity
warning

Sample message

$_POST['_wpbo_deactive'] not unslashed before sanitization. Use wp_unslash() or similar

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

Sample message

Processing form data without nonce verification.

ERRORI18nText Domain MismatchMismatched text domain. Expected 'quantities-and-units-for-woocommerce' but got 'woocommerce'.16
Category
I18n
Occurrences
16
Severity
error

Sample message

Mismatched text domain. Expected 'quantities-and-units-for-woocommerce' but got 'woocommerce'.

ERRORMaintainabilitystrip tags strip tagsstrip_tags() is discouraged. Use the more comprehensive wp_strip_all_tags() instead.13
Category
Maintainability
Occurrences
13
Severity
error

Sample message

strip_tags() is discouraged. Use the more comprehensive wp_strip_all_tags() instead.

ERRORI18nMissing Arg DomainMissing $domain parameter in function call to __().12
Category
I18n
Occurrences
12
Severity
error

Sample message

Missing $domain parameter in function call to __().

ERRORI18nMissing Translators CommentA function call to __() with texts containing placeholders was found, but was not accompanied by a "translators:" comment on the line above to clarify the meaning of the placeholders.12
Category
I18n
Occurrences
12
Severity
error

Sample message

A function call to __() with texts containing placeholders was found, but was not accompanied by a "translators:" comment on the line above to clarify the meaning of the placeholders.

ERRORI18nUnordered Placeholders TextMultiple placeholders in translatable strings should be ordered. Expected "%1\$s, %2\$s", but got "%s, %s" in "You may only add a %s in multiples of %s to your cart.".12
Category
I18n
Occurrences
12
Severity
error

Sample message

Multiple placeholders in translatable strings should be ordered. Expected "%1\$s, %2\$s", but got "%s, %s" in "You may only add a %s in multiples of %s to your cart.".

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

Sample message

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

Show 15 more
WARNINGMaintainabilityNon-prefixed hook name5
Category
Maintainability
Occurrences
5
Severity
warning

Sample message

Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "active_plugins".

WARNINGMaintainabilityDeprecated parameter: get_terms parameter 24
Category
Maintainability
Occurrences
4
Severity
warning

Sample message

The parameter "$args" at position #2 of get_terms() has been deprecated since WordPress version 4.5.0. Instead do not pass the parameter.

WARNINGMaintainabilityMissing Version4
Category
Maintainability
Occurrences
4
Severity
warning

Sample message

Resource version not set in call to wp_enqueue_script(). This means new versions of the script may not always be loaded due to browser caching.

WARNINGSecurityNonce verification recommended2
Category
Security
Occurrences
2
Severity
warning

Sample message

Processing form data without nonce verification.

WARNINGSecurityInput is not validated2
Category
Security
Occurrences
2
Severity
warning

Sample message

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

WARNINGMaintainabilityNot In Footer2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

In footer ($in_footer) is not set explicitly wp_enqueue_script; It is recommended to load scripts in the footer. Please set this value to `true` to load it in the footer, or explicitly `false` if it should be loaded in the header.

WARNINGMaintainabilityslow db query meta key1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Detected usage of meta_key, possible slow query.

WARNINGMaintainabilityslow db query meta value1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Detected usage of meta_value, possible slow query.

WARNINGMaintainabilityNon-prefixed global variable1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$product".

WARNINGSecurityPlugin menu slug uses __FILE__1
Category
Security
Occurrences
1
Severity
warning

Sample message

Using __FILE__ for menu slugs risks exposing filesystem structure.

WARNINGSecuritywp redirect wp redirect1
Category
Security
Occurrences
1
Severity
warning

Sample message

wp_redirect() found. Using wp_safe_redirect(), along with the "allowed_redirect_hosts" filter if needed, can help avoid any chances of malicious redirects within code. It is also important to remember to call exit() after a redirect so that no other unwanted code is executed.

ERRORI18nNo Empty Strings1
Category
I18n
Occurrences
1
Severity
error

Sample message

The $text text string should have translatable content. Found: ''

ERRORI18nNon Singular String Literal Text1
Category
I18n
Occurrences
1
Severity
error

Sample message

The $text parameter must be a single text string literal. Found: $unit

ERRORMaintainabilityMissing direct file access protection1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

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

ERRORRepo Complianceoutdated tested upto header1
Category
Repo Compliance
Occurrences
1
Severity
error

Sample message

Tested up to: 4.3 < 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.

External Connections

Potential connections found in static code analysis.

3 domains

Outbound calls

8

External assets

0

Incoming endpoints

0

Notable Domains

nickv.codes1 · outbound

Platform / Reference Domains

wordpress.org5 · platform/reference

External Asset Domains

No external asset domains detected.

Incoming Endpoints

No public endpoints detected.

Score History

First score snapshot

v1.0.13

37

Latest

Findings
251
Errors
133
Warnings
118
Check
2.0.0

Relationship Map

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

25 nodes