WC Coupons by Country Security & Risk Analysis

wordpress.org/plugins/wc-coupons-by-country

Restricts coupons usage to specific countries in WooCommerce plugin.

90 active installs v1.0.0 PHP + WP 4.0+ Updated Jan 12, 2016
countrycouponsrestrictionsusagewoocommerce
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is WC Coupons by Country Safe to Use in 2026?

Generally Safe

Score 85/100

WC Coupons by Country has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 10yr ago
Risk Assessment

The "wc-coupons-by-country" plugin v1.0.0 demonstrates a generally strong security posture in several key areas. The absence of any identified CVEs, coupled with 100% of SQL queries using prepared statements and zero file operations or external HTTP requests, are significant positive indicators. Furthermore, the static analysis reveals no dangerous functions, taint flows, or obvious vulnerabilities. The attack surface is also commendably small, with no AJAX handlers, REST API routes, shortcodes, or cron events directly exposed.

However, there are notable areas for improvement. The most significant concern is the lack of capability checks and nonce checks. This indicates that any entry point, if one were to exist, would not be adequately protected against unauthorized actions or CSRF attacks. Additionally, a significant portion of output (56%) is not properly escaped, which could lead to Cross-Site Scripting (XSS) vulnerabilities if malicious data were to be introduced and then displayed to users. The complete absence of taint analysis results is also unusual and might suggest limitations in the analysis tools used or a very straightforward codebase. While the plugin has no recorded vulnerability history, the current state of code checks suggests a potential for future issues if these oversight areas are not addressed.

In conclusion, while the plugin currently appears to be free of known vulnerabilities and is built with some secure practices like prepared statements, the lack of capability and nonce checks, along with a substantial portion of unescaped output, presents a real risk. These are fundamental security controls that should be implemented to prevent potential exploitation, especially if the plugin's functionality expands or interacts with user-supplied data in the future. The absence of any vulnerability history is positive but should not breed complacency given the identified code weaknesses.

Key Concerns

  • Missing capability checks
  • Missing nonce checks
  • Unescaped output detected
Vulnerabilities
None known

WC Coupons by Country Security Vulnerabilities

No known vulnerabilities — this is a good sign.
Code Analysis
Analyzed Mar 16, 2026

WC Coupons by Country Code Analysis

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

Output Escaping

44% escaped9 total outputs
Attack Surface

WC Coupons by Country Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 11
filterwoocommerce_api_coupon_responseincludes\class-wc-api-coupon-usage-restrictions.php:26
actionwoocommerce_api_create_couponincludes\class-wc-api-coupon-usage-restrictions.php:27
actionwoocommerce_api_edit_couponincludes\class-wc-api-coupon-usage-restrictions.php:28
actionwoocommerce_coupon_options_usage_restrictionincludes\class-wc-meta-box-coupon-usage-data.php:32
actionwoocommerce_coupon_options_saveincludes\class-wc-meta-box-coupon-usage-data.php:33
actionwoocommerce_coupon_loadedincludes\class-wc-meta-box-coupon-usage-data.php:34
filterwoocommerce_coupon_is_validincludes\class-wc-meta-box-coupon-usage-data.php:35
filterwoocommerce_coupon_errorincludes\class-wc-meta-box-coupon-usage-data.php:36
actioninitwc-coupons-by-country.php:48
actionadmin_noticeswc-coupons-by-country.php:54
actionplugins_loadedwc-coupons-by-country.php:103
Maintenance & Trust

WC Coupons by Country Maintenance & Trust

Maintenance Signals

WordPress version tested4.4.34
Last updatedJan 12, 2016
PHP min version
Downloads3K

Community Trust

Rating100/100
Number of ratings2
Active installs90
Developer Profile

WC Coupons by Country Developer Profile

AxisThemes

1 plugin · 90 total installs

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

How We Detect WC Coupons by Country

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/wc-coupons-by-country/assets/css/wc-coupons-by-country-admin.css/wp-content/plugins/wc-coupons-by-country/assets/js/wc-coupons-by-country-admin.js
Script Paths
/wp-content/plugins/wc-coupons-by-country/assets/js/wc-coupons-by-country-admin.js
Version Parameters
wc-coupons-by-country/assets/css/wc-coupons-by-country-admin.css?ver=wc-coupons-by-country/assets/js/wc-coupons-by-country-admin.js?ver=

HTML / DOM Fingerprints

CSS Classes
wc-enhanced-select
Data Attributes
data-placeholder
REST Endpoints
/wp-json/wc-coupons-by-country
FAQ

Frequently Asked Questions about WC Coupons by Country