Dynamic Pricing With Discount Rules for WooCommerce

The Dynamic Pricing With Discount Rules plugin enables bulk discounts for WooCommerce products. Its simple design allows easy setup in minutes.

v4.5.11acowebsUpdated Added 5k+ installs92% rating
30
Score
136
Errors
131
Warnings
+0
Change

Category Scores

Security0
Repo83
Performance98
Maintainability40

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

267 findings

Security

128

10 issue groups

Maintainability

99

12 issue groups

I18n

28

3 issue groups

ERRORSecurityOutput Not EscapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$bordercolor'.54
Category
Security
Occurrences
54
Severity
error

Sample message

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

WARNINGMaintainabilityNon Prefixed Hookname FoundHook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "active_plugins".21
Category
Maintainability
Occurrences
21
Severity
warning

Sample message

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

WARNINGSecurityMissingProcessing form data without nonce verification.20
Category
Security
Occurrences
20
Severity
warning

Sample message

Processing form data without nonce verification.

ERRORMaintainabilitywp function not compatible with requires wpFunction "wp_date()" requires WordPress 5.3.0, but your plugin minimum supported version is WordPress 4.4.0.18
Category
Maintainability
Occurrences
18
Severity
error

Sample message

Function "wp_date()" requires WordPress 5.3.0, but your plugin minimum supported version is WordPress 4.4.0.

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.16
Category
I18n
Occurrences
16
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.

WARNINGSecurityInput Not SanitizedDetected usage of a non-sanitized input variable: $_GET['proCount']15
Category
Security
Occurrences
15
Severity
warning

Sample message

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

WARNINGSecurityMissing Unslash$_GET['proCount'] not unslashed before sanitization. Use wp_unslash() or similar15
Category
Security
Occurrences
15
Severity
warning

Sample message

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

WARNINGMaintainabilityDirect QueryUse of a direct database call is discouraged.11
Category
Maintainability
Occurrences
11
Severity
warning

Sample message

Use of a direct database call is discouraged.

WARNINGMaintainabilityNo CachingDirect database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().11
Category
Maintainability
Occurrences
11
Severity
warning

Sample message

Direct database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().

ERRORMaintainabilitydate datedate() is affected by runtime timezone changes which can cause date/time to be incorrectly displayed. Use gmdate() instead.11
Category
Maintainability
Occurrences
11
Severity
error

Sample message

date() is affected by runtime timezone changes which can cause date/time to be incorrectly displayed. Use gmdate() instead.

Show 15 more
ERRORI18nMissing Arg Domain10
Category
I18n
Occurrences
10
Severity
error

Sample message

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

WARNINGMaintainabilityslow db query meta key8
Category
Maintainability
Occurrences
8
Severity
warning

Sample message

Detected usage of meta_key, possible slow query.

WARNINGSecurityRecommended8
Category
Security
Occurrences
8
Severity
warning

Sample message

Processing form data without nonce verification.

ERRORMaintainabilitymissing direct file access protection6
Category
Maintainability
Occurrences
6
Severity
error

Sample message

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

ERRORSecurityUnescaped DBParameter5
Category
Security
Occurrences
5
Severity
error

Sample message

Unescaped parameter $productID used in $wpdb->get_col()\n$productID assigned unsafely at line 2538.

ERRORSecurityNot Prepared5
Category
Security
Occurrences
5
Severity
error

Sample message

Use placeholders and $wpdb->prepare(); found $prodvalues

WARNINGMaintainabilityDynamic Hookname Found4
Category
Maintainability
Occurrences
4
Severity
warning

Sample message

Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "$post_type . '_labels'".

ERRORSecurityQuoted Simple Placeholder3
Category
Security
Occurrences
3
Severity
error

Sample message

Simple placeholders should not be quoted in the query string in $wpdb->prepare(). Found: '%s'.

WARNINGMaintainabilityslow db query tax query3
Category
Maintainability
Occurrences
3
Severity
warning

Sample message

Detected usage of tax_query, possible slow query.

ERRORMaintainabilityFound2
Category
Maintainability
Occurrences
2
Severity
error

Sample message

The use of function eval() is forbidden

WARNINGMaintainabilityslow db query meta query2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

Detected usage of meta_query, possible slow query.

WARNINGSecurityInput Not Validated2
Category
Security
Occurrences
2
Severity
warning

Sample message

Detected usage of a possibly undefined superglobal array index: $_POST['ProdVarPrice']. 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.

ERRORI18nNon Singular String Literal Context2
Category
I18n
Occurrences
2
Severity
error

Sample message

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

WARNINGSecurityInterpolated Not Prepared1
Category
Security
Occurrences
1
Severity
warning

Sample message

Use placeholders and $wpdb->prepare(); found interpolated variable $productID at "SELECT ID FROM {$wpdb->prefix}posts WHERE post_status = 'publish' AND post_parent IN ($productID) AND post_type = 'product_variation'"

Score History

First score snapshot

v4.5.11

30

Latest

Findings
267
Errors
136
Warnings
131
Check
2.0.0

Related Plugins