Set User Role specific Prices to WooCommerce Products in your Store.
Category Scores
Issues to Review
Prioritized issue groups from the latest Plugin Check scan
Maintainability
203
16 issue groups
I18n
180
4 issue groups
Security
22
5 issue groups
WARNINGMaintainabilityNon-prefixed global variableGlobal variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$adjustment_price_id".146
- Category
- Maintainability
- Occurrences
- 146
- Severity
- warning
Sample message
Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$adjustment_price_id".
ERRORI18nText Domain MismatchMismatched text domain. Expected 'elex-woocommerce-role-based-pricing-plugin-basic' but got 'eh-woocommerce-pricing-discount'.144
- Category
- I18n
- Occurrences
- 144
- Severity
- error
Sample message
Mismatched text domain. Expected 'elex-woocommerce-role-based-pricing-plugin-basic' but got 'eh-woocommerce-pricing-discount'.
ERRORI18nNon Singular String Literal TextThe $text parameter must be a single text string literal. Found: $error20
- Category
- I18n
- Occurrences
- 20
- Severity
- error
Sample message
The $text parameter must be a single text string literal. Found: $error
ERRORMaintainabilitywp function not compatible with requires wpFunction "doing_filter()" requires WordPress 3.9.0, but your plugin minimum supported version is WordPress 3.0.1.17
- Category
- Maintainability
- Occurrences
- 17
- Severity
- error
Sample message
Function "doing_filter()" requires WordPress 3.9.0, but your plugin minimum supported version is WordPress 3.0.1.
ERRORI18nMissing Arg DomainMissing $domain parameter in function call to esc_html_e().15
- Category
- I18n
- Occurrences
- 15
- Severity
- error
Sample message
Missing $domain parameter in function call to esc_html_e().
WARNINGMaintainabilityNon-prefixed hook nameHook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "active_plugins".12
- Category
- Maintainability
- Occurrences
- 12
- Severity
- warning
Sample message
Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "active_plugins".
WARNINGSecurityRequest data is not unslashed$_GET['_wpnonce'] not unslashed before sanitization. Use wp_unslash() or similar11
- Category
- Security
- Occurrences
- 11
- 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 'wc_help_tip'.6
- Category
- Security
- Occurrences
- 6
- Severity
- error
Sample message
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found 'wc_help_tip'.
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;
WARNINGMaintainabilityNon-prefixed functionFunctions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: "wc_format_sale_price".4
- Category
- Maintainability
- Occurrences
- 4
- Severity
- warning
Sample message
Functions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: "wc_format_sale_price".
Show 15 moreShow less
WARNINGMaintainabilityerror log print r4
- Category
- Maintainability
- Occurrences
- 4
- Severity
- warning
Sample message
print_r() found. Debug code should not normally be used in production.
WARNINGMaintainabilitytrademarked term3
- Category
- Maintainability
- Occurrences
- 3
- Severity
- warning
Sample message
The plugin name includes a restricted term. Your chosen plugin name - "ELEX WooCommerce Role Based Pricing (BASIC)" - 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.
WARNINGMaintainabilityDirect Query2
- Category
- Maintainability
- Occurrences
- 2
- Severity
- warning
Sample message
Use of a direct database call is discouraged.
WARNINGMaintainabilityNo Caching2
- Category
- Maintainability
- Occurrences
- 2
- Severity
- warning
Sample message
Direct database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().
WARNINGSecurityUnquoted Complex Placeholder2
- Category
- Security
- Occurrences
- 2
- Severity
- warning
Sample message
Complex placeholders used for values in the query string in $wpdb->prepare() will NOT be quoted automagically. Found: %1s.
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.
ERRORMaintainabilitybadly named files2
- Category
- Maintainability
- Occurrences
- 2
- Severity
- error
Sample message
File and folder names must not contain spaces or special characters.
WARNINGMaintainabilityNo PHP code found1
- Category
- Maintainability
- Occurrences
- 1
- Severity
- warning
Sample message
No PHP code was found in this file and short open tags are not allowed by this install of PHP. This file may be using short open tags but PHP does not allow them.
ERRORSecurityDatabase parameter is not escaped1
- Category
- Security
- Occurrences
- 1
- Severity
- error
Sample message
Unescaped parameter stripslashes( $wpdb->prepare( '%1s', $max_amount_query ) ) : $wpdb->prepare( '%s', '' ) ) used in $wpdb->get_results()
WARNINGMaintainabilityNon-prefixed constant1
- Category
- Maintainability
- Occurrences
- 1
- Severity
- warning
Sample message
Global constants defined by a theme/plugin should start with the theme/plugin prefix. Found: "WF_NOTICE_OPTION".
ERRORMaintainabilityDeprecated parameter: get_terms parameter 21
- Category
- Maintainability
- Occurrences
- 1
- Severity
- error
Sample message
The parameter "array(\n\t\t\t\t\t'fields' => 'id=>name',\n\t\t\t\t\t'hide_empty' => false,\n\t\t\t\t\t'orderby' => 'title',\n\t\t\t\t\t'order' => 'ASC',\n\t\t\t\t)" at position #2 of get_terms() has been deprecated since WordPress version 4.5.0. Instead do not pass the parameter.
WARNINGMaintainabilityDiscouraged PHP function1
- Category
- Maintainability
- Occurrences
- 1
- Severity
- warning
Sample message
wp_reset_query() is discouraged. Use wp_reset_postdata() instead.
WARNINGMaintainabilityNot In Footer1
- Category
- Maintainability
- Occurrences
- 1
- 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.
WARNINGI18nNo Html Wrapped Strings1
- Category
- I18n
- Occurrences
- 1
- Severity
- warning
Sample message
Translatable string should not be wrapped in HTML. Found: '<li><strong><font color="red">Go Premium!</font></strong></li>'
WARNINGMaintainabilitymismatched plugin name1
- Category
- Maintainability
- Occurrences
- 1
- Severity
- warning
Sample message
Plugin name "ELEX WooCommerce Role Based Pricing" is different from the name declared in plugin header "ELEX WooCommerce Role Based Pricing (BASIC)".
Score History
First score snapshot
v1.5.8
44
Latest
- Findings
- 409
- Errors
- 213
- Warnings
- 196
- Check
- 2.0.0
| Scan | Score | Findings | Errors | Warnings | Plugin | Check |
|---|---|---|---|---|---|---|
| Latest | 44 | 409 | 213 | 196 | v1.5.8 | 2.0.0 |