Role and Customer Based Pricing for WooCommerce Security & Risk Analysis

wordpress.org/plugins/bytes-role-and-customer-based-pricing-for-woocommerce

This plugin allows you to set dynamic prices for WooCommerce products based on different user roles and individual customers.

40 active installs v1.0.2 PHP 7.4+ WP 5.6+ Updated Jul 2, 2025
custom-pricingdynamic-pricing-discountsrole-and-customer-based-discountrole-and-customer-based-pricingwoocommerce-product
100
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Role and Customer Based Pricing for WooCommerce Safe to Use in 2026?

Generally Safe

Score 100/100

Role and Customer Based Pricing for WooCommerce has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 10mo ago
Risk Assessment

The "bytes-role-and-customer-based-pricing-for-woocommerce" plugin, version 1.0.2, exhibits a generally good security posture. The static analysis reveals no critical vulnerabilities such as unsanitized paths in taint analysis, dangerous function usage, or direct SQL queries without prepared statements. The presence of nonce and capability checks on the identified entry points (AJAX handlers and shortcodes) indicates an effort to implement basic security measures. Furthermore, the plugin has no recorded vulnerability history, suggesting a stable and secure past.

However, a few areas warrant attention. While the attack surface is small (3 entry points), the fact that none are explicitly noted as unprotected is positive, but it's crucial to ensure the capability checks and nonce checks are robust for all functionalities. The 11% of outputs that are not properly escaped, while not explicitly flagged as critical in this analysis, could potentially lead to cross-site scripting (XSS) vulnerabilities if user-supplied data is reflected in these unescaped areas. The lack of external HTTP requests and file operations is also a positive sign, reducing potential attack vectors.

In conclusion, this plugin appears to be well-developed from a security perspective, with strong adherence to fundamental WordPress security practices. The absence of historical vulnerabilities further reinforces this. The primary area for improvement would be to ensure 100% of output is properly escaped to mitigate any potential XSS risks, even if not currently identified as high severity.

Key Concerns

  • Outputs not properly escaped
Vulnerabilities
None known

Role and Customer Based Pricing for WooCommerce Security Vulnerabilities

No known vulnerabilities — this is a good sign.
Version History

Role and Customer Based Pricing for WooCommerce Release Timeline

v1.0.2Current
v1.0.1
v1.0.0
Code Analysis
Analyzed Mar 16, 2026

Role and Customer Based Pricing for WooCommerce Code Analysis

Dangerous Functions
0
Raw SQL Queries
0
1 prepared
Unescaped Output
56
439 escaped
Nonce Checks
7
Capability Checks
3
File Operations
0
External Requests
0
Bundled Libraries
0

SQL Query Safety

100% prepared1 total queries

Output Escaping

89% escaped495 total outputs
Data Flows · Security
All sanitized

Data Flow Analysis

5 flows
bytes_get_product_rule_row_html (admin\product\bytes-product-tab-for-role-customer-based-price.php:47)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface

Role and Customer Based Pricing for WooCommerce Attack Surface

Entry Points3
Unprotected0

AJAX Handlers 2

authwp_ajax_bytes_get_product_rule_row_htmladmin\product\bytes-product-tab-for-role-customer-based-price.php:12
authwp_ajax_bytes_search_customer_for_ruleadmin\product\bytes-product-tab-for-role-customer-based-price.php:13

Shortcodes 1

[bytes_roles_rules] admin\product\bytes-product-tab-for-role-customer-based-price.php:15
WordPress Hooks 26
actionadmin_initadmin\class-bytes-role-and-customer-based-pricing-for-woocommerce-admin.php:54
actionadmin_noticesadmin\class-bytes-role-and-customer-based-pricing-for-woocommerce-admin.php:56
filterwoocommerce_product_data_tabsadmin\product\bytes-product-tab-for-role-customer-based-price.php:10
actionwoocommerce_product_data_panelsadmin\product\bytes-product-tab-for-role-customer-based-price.php:11
actionwoocommerce_process_product_metaadmin\product\bytes-product-tab-for-role-customer-based-price.php:14
actionwoocommerce_variation_options_pricingadmin\product\bytes-variable-product-for-role-customer-based-price.php:11
actionadmin_menuadmin\wpbyt-user-roles\class-wpbyt-user-roles.php:8
actionplugins_loadedincludes\class-bytes-role-and-customer-based-pricing-for-woocommerce.php:142
actionadmin_enqueue_scriptsincludes\class-bytes-role-and-customer-based-pricing-for-woocommerce.php:156
actionadmin_enqueue_scriptsincludes\class-bytes-role-and-customer-based-pricing-for-woocommerce.php:157
actionadmin_initincludes\class-bytes-role-and-customer-based-pricing-for-woocommerce.php:158
actionwp_enqueue_scriptsincludes\class-bytes-role-and-customer-based-pricing-for-woocommerce.php:172
actionwp_enqueue_scriptsincludes\class-bytes-role-and-customer-based-pricing-for-woocommerce.php:173
actioninitincludes\class-bytes-role-and-customer-based-pricing-for-woocommerce.php:174
filterwoocommerce_product_get_regular_pricepublic\view\bytes-pricing-rule.php:14
filterwoocommerce_product_get_sale_pricepublic\view\bytes-pricing-rule.php:19
filterwoocommerce_product_get_pricepublic\view\bytes-pricing-rule.php:24
filterwoocommerce_product_variation_get_regular_pricepublic\view\bytes-pricing-rule.php:30
filterwoocommerce_product_variation_get_sale_pricepublic\view\bytes-pricing-rule.php:35
filterwoocommerce_product_variation_get_pricepublic\view\bytes-pricing-rule.php:40
filterwoocommerce_variation_prices_pricepublic\view\bytes-pricing-rule.php:46
filterwoocommerce_variation_prices_regular_pricepublic\view\bytes-pricing-rule.php:49
filterwoocommerce_quantity_input_argspublic\view\bytes-quantity-rule.php:12
filterwoocommerce_available_variationpublic\view\bytes-quantity-rule.php:13
filterwoocommerce_add_to_cart_validationpublic\view\bytes-quantity-rule.php:14
filterwoocommerce_update_cart_validationpublic\view\bytes-quantity-rule.php:15
Maintenance & Trust

Role and Customer Based Pricing for WooCommerce Maintenance & Trust

Maintenance Signals

WordPress version tested6.8.5
Last updatedJul 2, 2025
PHP min version7.4
Downloads1K

Community Trust

Rating80/100
Number of ratings1
Active installs40
Developer Profile

Role and Customer Based Pricing for WooCommerce Developer Profile

Bytes Technolab

2 plugins · 130 total installs

87
trust score
Avg Security Score
90/100
Avg Patch Time
30 days
View full developer profile
Detection Fingerprints

How We Detect Role and Customer Based Pricing for WooCommerce

Patterns used to identify this plugin on WordPress sites during automated security audits and web crawling.

Asset Fingerprints

Asset Paths
/wp-content/plugins/bytes-role-and-customer-based-pricing-for-woocommerce/admin/css/bytes-role-and-customer-based-pricing-for-woocommerce-admin.css/wp-content/plugins/bytes-role-and-customer-based-pricing-for-woocommerce/admin/js/bytes-role-and-customer-based-pricing-for-woocommerce-admin.js
Script Paths
admin/js/bytes-role-and-customer-based-pricing-for-woocommerce-admin.js
Version Parameters
bytes-role-and-customer-based-pricing-for-woocommerce/admin/css/bytes-role-and-customer-based-pricing-for-woocommerce-admin.css?ver=bytes-role-and-customer-based-pricing-for-woocommerce/admin/js/bytes-role-and-customer-based-pricing-for-woocommerce-admin.js?ver=

HTML / DOM Fingerprints

JS Globals
ajax_object
FAQ

Frequently Asked Questions about Role and Customer Based Pricing for WooCommerce