Coupon by User Role for WooCommerce Security & Risk Analysis

wordpress.org/plugins/coupon-by-user-role-for-woocommerce

WooCommerce coupons by user roles.

70 active installs v2.2.1 PHP + WP 4.4+ Updated Sep 3, 2025
couponecommerceuser-rolewoocommerce
100
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Coupon by User Role for WooCommerce Safe to Use in 2026?

Generally Safe

Score 100/100

Coupon by User Role for WooCommerce has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 8mo ago
Risk Assessment

The "coupon-by-user-role-for-woocommerce" plugin v2.2.1 demonstrates a generally good security posture based on the provided static analysis. The plugin effectively utilizes prepared statements for all SQL queries, which is a critical defense against SQL injection vulnerabilities. Furthermore, a high percentage of output is properly escaped, mitigating cross-site scripting (XSS) risks, and a nonce check is implemented, suggesting some awareness of CSRF protection. The absence of dangerous functions, file operations, and external HTTP requests is also positive.

However, there are areas for concern. The static analysis reveals no capability checks implemented for any entry points. While the attack surface is small (only one shortcode) and the analysis indicates no unprotected entry points (implying a nonce check or similar protection is present), the lack of explicit capability checks means that unauthorized users might still be able to interact with the plugin's functionality if the protection mechanism is insufficient or bypassed. The taint analysis showing zero flows analyzed is a limitation of the provided data; a more comprehensive taint analysis might reveal previously undiscovered issues.

The plugin has no recorded vulnerability history, which is a strong indicator of past security diligence. This, combined with the good practices observed in the code analysis, suggests a low overall risk. However, the absence of capability checks represents a potential, albeit likely minor, weakness that could be exploited in specific scenarios. The strengths in SQL and output handling outweigh this concern, resulting in a relatively secure plugin.

Key Concerns

  • No capability checks found
  • No taint flows analyzed
Vulnerabilities
None known

Coupon by User Role for WooCommerce Security Vulnerabilities

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

Coupon by User Role for WooCommerce Release Timeline

v2.2.1Current
v2.2.0
v2.1.1
v2.1.0
v2.0.4
v2.0.3
v2.0.2
v2.0.1
v2.0.0
v1.4.0
v1.3.0
Code Analysis
Analyzed Mar 16, 2026

Coupon by User Role for WooCommerce Code Analysis

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

Output Escaping

94% escaped18 total outputs
Attack Surface

Coupon by User Role for WooCommerce Attack Surface

Entry Points1
Unprotected0

Shortcodes 1

[alg_wc_cbur_translate] includes\class-alg-wc-coupon-by-user-role-core.php:97
WordPress Hooks 22
actionplugins_loadedcoupon-by-user-role-for-woocommerce.php:58
actionadmin_initincludes\class-alg-wc-coupon-by-user-role-core.php:49
filterwoocommerce_coupon_get_amountincludes\class-alg-wc-coupon-by-user-role-core.php:54
filterwoocommerce_coupons_enabledincludes\class-alg-wc-coupon-by-user-role-core.php:65
filterwoocommerce_coupon_is_validincludes\class-alg-wc-coupon-by-user-role-core.php:71
filterwoocommerce_coupon_errorincludes\class-alg-wc-coupon-by-user-role-core.php:77
actionadmin_initincludes\class-alg-wc-coupon-by-user-role-core.php:85
filteralg_wc_cbur_invalid_user_rolesincludes\class-alg-wc-coupon-by-user-role-core.php:90
actioninitincludes\class-alg-wc-coupon-by-user-role.php:79
actionbefore_woocommerce_initincludes\class-alg-wc-coupon-by-user-role.php:82
actioninitincludes\class-alg-wc-coupon-by-user-role.php:162
actioninitincludes\class-alg-wc-coupon-by-user-role.php:165
filterwoocommerce_get_settings_pagesincludes\class-alg-wc-coupon-by-user-role.php:168
actionadmin_initincludes\class-alg-wc-coupon-by-user-role.php:172
actionadmin_footerincludes\settings\class-alg-wc-cbur-settings-per-coupon-invalidate.php:31
actionwoocommerce_coupon_data_tabsincludes\settings\class-alg-wc-cbur-settings-per-coupon.php:45
actionwoocommerce_coupon_data_panelsincludes\settings\class-alg-wc-cbur-settings-per-coupon.php:46
actionwoocommerce_coupon_options_saveincludes\settings\class-alg-wc-cbur-settings-per-coupon.php:47
actionadmin_headincludes\settings\class-alg-wc-cbur-settings-per-coupon.php:48
filterwoocommerce_get_sections_alg_wc_coupon_by_user_roleincludes\settings\class-alg-wc-cbur-settings-section.php:38
actionadmin_footerincludes\settings\class-alg-wc-cbur-settings.php:30
actionadmin_noticesincludes\settings\class-alg-wc-cbur-settings.php:104
Maintenance & Trust

Coupon by User Role for WooCommerce Maintenance & Trust

Maintenance Signals

WordPress version tested6.8.5
Last updatedSep 3, 2025
PHP min version
Downloads4K

Community Trust

Rating0/100
Number of ratings0
Active installs70
Developer Profile

Coupon by User Role for WooCommerce Developer Profile

WPFactory

64 plugins · 137K total installs

77
trust score
Avg Security Score
97/100
Avg Patch Time
94 days
View full developer profile
Detection Fingerprints

How We Detect Coupon by User Role 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/coupon-by-user-role-for-woocommerce/assets/css/alg-wc-cbur-backend.css/wp-content/plugins/coupon-by-user-role-for-woocommerce/assets/js/alg-wc-cbur-backend.js
Script Paths
/wp-content/plugins/coupon-by-user-role-for-woocommerce/assets/js/alg-wc-cbur-backend.js
Version Parameters
coupon-by-user-role-for-woocommerce/assets/css/alg-wc-cbur-backend.css?ver=coupon-by-user-role-for-woocommerce/assets/js/alg-wc-cbur-backend.js?ver=

HTML / DOM Fingerprints

CSS Classes
alg-wc-cbur-select-allalg-wc-cbur-deselect-all
Data Attributes
alg_wc_coupon_by_user_role_amount
JS Globals
alg_wc_coupon_by_user_role
Shortcode Output
[alg_wc_cbur_translate]
FAQ

Frequently Asked Questions about Coupon by User Role for WooCommerce