Weight Based Pricing for WooCommerce

A simple weight based pricing plugin for WooCommerce. Set different prices for different weight ranges easily

v1.1.6ThemeParrotUpdated Added 600 installs86% rating
40
Score
167
Errors
86
Warnings
+0
Change

Category Scores

Security0
Repo91
Performance100
Maintainability84

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

253 findings

I18n

153

6 issue groups

Security

92

8 issue groups

Maintainability

6

3 issue groups

Repo Compliance

2

2 issue groups

ERRORI18nText Domain MismatchMismatched text domain. Expected 'weight-based-pricing-for-woocommerce' but got 'weight-based-pricing-woocommerce'.77
Category
I18n
Occurrences
77
Severity
error

Sample message

Mismatched text domain. Expected 'weight-based-pricing-for-woocommerce' but got 'weight-based-pricing-woocommerce'.

ERRORI18nNon Singular String Literal TextThe $text parameter must be a single text string literal. Found: $from_range37
Category
I18n
Occurrences
37
Severity
error

Sample message

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

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

Sample message

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

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

Sample message

Processing form data without nonce verification.

WARNINGSecurityInput is not sanitizedDetected usage of a non-sanitized input variable: $_GET['wc_error']23
Category
Security
Occurrences
23
Severity
warning

Sample message

Detected usage of a non-sanitized input variable: $_GET['wc_error']

WARNINGSecurityRequest data is not unslashed$_GET['wc_error'] not unslashed before sanitization. Use wp_unslash() or similar23
Category
Security
Occurrences
23
Severity
warning

Sample message

$_GET['wc_error'] not unslashed before sanitization. Use wp_unslash() or similar

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

Sample message

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

ERRORSecurityUnsafe printing functionAll output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'.5
Category
Security
Occurrences
5
Severity
error

Sample message

All output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'.

WARNINGSecurityInput is not validatedDetected usage of a possibly undefined superglobal array index: $_POST[$meta_key][$i]. Check that the array index exists before using it.4
Category
Security
Occurrences
4
Severity
warning

Sample message

Detected usage of a possibly undefined superglobal array index: $_POST[$meta_key][$i]. Check that the array index exists before using it.

WARNINGMaintainabilityNon-prefixed hook nameHook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "active_plugins".3
Category
Maintainability
Occurrences
3
Severity
warning

Sample message

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

Show 9 more
WARNINGSecurityNonce verification recommended2
Category
Security
Occurrences
2
Severity
warning

Sample message

Processing form data without nonce verification.

WARNINGSecuritywp redirect wp redirect2
Category
Security
Occurrences
2
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.

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.

WARNINGI18nDiscouraged text-domain loading1
Category
I18n
Occurrences
1
Severity
warning

Sample message

load_plugin_textdomain() has been discouraged since WordPress version 4.6. When your plugin is hosted on WordPress.org, you no longer need to manually include this function call for translations under your plugin slug. WordPress will automatically load the translations for you as needed.

ERRORI18nMissing Translators Comment1
Category
I18n
Occurrences
1
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.

WARNINGMaintainabilitymissing composer json file1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

The "/vendor" directory using composer exists, but "composer.json" file is missing.

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

Sample message

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

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.

WARNINGI18ntextdomain mismatch1
Category
I18n
Occurrences
1
Severity
warning

Sample message

The "Text Domain" header in the plugin file does not match the slug. Found "weight-based-pricing-woocommerce", expected "weight-based-pricing-for-woocommerce".

External Connections

Potential connections found in static code analysis.

4 domains

Outbound calls

6

External assets

0

Incoming endpoints

4

Notable Domains

php-fig.org2 · outbound
themeparrot.com2 · outbound

Platform / Reference Domains

gnu.org1 · platform/reference
wordpress.org1 · platform/reference

External Asset Domains

No external asset domains detected.

Incoming Endpoints

No public endpoints detected.

Admin AJAX endpoints4
wp_ajax_wwbp_ajax_simple_range_addauthenticated

wp_ajax

wp_ajax_wwbp_ajax_simple_range_removeauthenticated

wp_ajax

wp_ajax_wwbp_ajax_variable_range_addauthenticated

wp_ajax

wp_ajax_wwbp_ajax_variable_range_removeauthenticated

wp_ajax

Score History

First score snapshot

v1.1.6

40

Latest

Findings
253
Errors
167
Warnings
86
Check
2.0.0

Relationship Map

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

31 nodes

Related Plugins