ELEX WooCommerce Dynamic Pricing and Discounts

Create custom dynamic pricing rules, discounts, and offers based on user roles, cart totals, product categories and more!

v2.2.6ELEXtensionsUpdated Added 800 installs86% rating
25
Score
478
Errors
748
Warnings
+0
Change

Category Scores

Security0
Repo89
Performance100
Maintainability6

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

1,226 findings

Security

503

7 issue groups

I18n

355

4 issue groups

Maintainability

351

14 issue groups

ERRORI18nText Domain MismatchMismatched text domain. Expected 'elex-woocommerce-dynamic-pricing-and-discounts' but got 'eh-dynamic-pricing-discounts'.341
Category
I18n
Occurrences
341
Severity
error

Sample message

Mismatched text domain. Expected 'elex-woocommerce-dynamic-pricing-and-discounts' but got 'eh-dynamic-pricing-discounts'.

WARNINGMaintainabilityNon-prefixed global variableGlobal variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$Price".256
Category
Maintainability
Occurrences
256
Severity
warning

Sample message

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

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

Sample message

Processing form data without nonce verification.

WARNINGSecurityRequest data is not unslashed$_GET['_wpnonce'] not unslashed before sanitization. Use wp_unslash() or similar126
Category
Security
Occurrences
126
Severity
warning

Sample message

$_GET['_wpnonce'] 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 '" | Discount=$discount_amt NewPrice=$new_price | OfferName="'.78
Category
Security
Occurrences
78
Severity
error

Sample message

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '" | Discount=$discount_amt NewPrice=$new_price | OfferName="'.

WARNINGSecurityInput is not sanitizedDetected usage of a non-sanitized input variable: $_FILES['import_file']['name']44
Category
Security
Occurrences
44
Severity
warning

Sample message

Detected usage of a non-sanitized input variable: $_FILES['import_file']['name']

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

Sample message

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

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

Sample message

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

ERRORMaintainabilitybadly named filesFile and folder names must not contain spaces or special characters.13
Category
Maintainability
Occurrences
13
Severity
error

Sample message

File and folder names must not contain spaces or special characters.

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

Sample message

Use of a direct database call is discouraged.

Show 15 more
WARNINGMaintainabilityNo Caching9
Category
Maintainability
Occurrences
9
Severity
warning

Sample message

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

WARNINGSecurityInput is not validated8
Category
Security
Occurrences
8
Severity
warning

Sample message

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

ERRORMaintainabilityMissing direct file access protection8
Category
Maintainability
Occurrences
8
Severity
error

Sample message

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

WARNINGSecurityMissing nonce verification7
Category
Security
Occurrences
7
Severity
warning

Sample message

Processing form data without nonce verification.

WARNINGMaintainabilityMissing Version7
Category
Maintainability
Occurrences
7
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.

ERRORI18nNon Singular String Literal Text7
Category
I18n
Occurrences
7
Severity
error

Sample message

The $text parameter must be a single text string literal. Found: $plugin['alt']

ERRORMaintainabilitydate date5
Category
Maintainability
Occurrences
5
Severity
error

Sample message

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

ERRORI18nMissing Arg Domain5
Category
I18n
Occurrences
5
Severity
error

Sample message

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

ERRORMaintainabilitywp function not compatible with requires wp5
Category
Maintainability
Occurrences
5
Severity
error

Sample message

Function "doing_action()" requires WordPress 3.9.0, but your plugin minimum supported version is WordPress 3.0.1.

ERRORMaintainabilityOffloaded Content3
Category
Maintainability
Occurrences
3
Severity
error

Sample message

Found call to wp_enqueue_script() with external resource. Offloading scripts to your servers or any remote service is disallowed.

WARNINGMaintainabilityerror log print r3
Category
Maintainability
Occurrences
3
Severity
warning

Sample message

print_r() found. Debug code should not normally be used in production.

ERRORMaintainabilityDeprecated parameter: get_terms parameter 23
Category
Maintainability
Occurrences
3
Severity
error

Sample message

The parameter "'orderby=name&hide_empty=0'" at position #2 of get_terms() has been deprecated since WordPress version 4.5.0. Instead do not pass the parameter.

WARNINGI18nDiscouraged text-domain loading2
Category
I18n
Occurrences
2
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.

WARNINGMaintainabilityerror log error log2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

error_log() found. Debug code should not normally be used in production.

ERRORSecurityUnsafe printing function2
Category
Security
Occurrences
2
Severity
error

Sample message

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

External Connections

Potential connections found in static code analysis.

15 domains

Outbound calls

145

External assets

4

Incoming endpoints

3

Notable Domains

getbootstrap.com17 · outbound
elextensions.com13 · outbound
jqueryui.com11 · outbound
xadapter.com7 · outbound
api.jqueryui.com2 · outbound
jquery.org2 · outbound

Platform / Reference Domains

w3.org66 · platform/reference
github.com21 · platform/reference

External Asset Domains

cdn.jsdelivr.net3 · asset + outbound

Incoming Endpoints

No public endpoints detected.

Admin AJAX endpoints3
wp_ajax_update_coupons_fieldauthenticated

wp_ajax

wp_ajax_update_rules_arrangementauthenticated

wp_ajax

wp_ajax_xa_get_attributes_value_for_taxonomyauthenticated

wp_ajax

Score History

First score snapshot

v2.2.6

25

Latest

Findings
1,226
Errors
478
Warnings
748
Check
2.0.0

Relationship Map

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

37 nodes

Related Plugins