Discounts Per Payment Method on WooCommerce Security & Risk Analysis

wordpress.org/plugins/woocommerce-payment-discounts

Adds discounts for specific payment methods in WooCommerce.

1K active installs v3.1.0 PHP + WP 4.0+ Updated Aug 10, 2020
coupondiscountwoocommerce
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Discounts Per Payment Method on WooCommerce Safe to Use in 2026?

Generally Safe

Score 85/100

Discounts Per Payment Method on WooCommerce has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 5yr ago
Risk Assessment

The plugin "woocommerce-payment-discounts" v3.1.0 exhibits a generally strong security posture based on the provided static analysis and vulnerability history. The complete absence of entry points like AJAX handlers, REST API routes, shortcodes, and cron events significantly reduces the attack surface. Furthermore, the code demonstrates good practices by utilizing prepared statements for all SQL queries and properly escaping a high percentage of output. The lack of dangerous functions, file operations, and external HTTP requests also contributes to its secure design.

However, the analysis reveals a critical weakness: the complete absence of nonce checks and capability checks. While there are no direct entry points that are obviously unprotected, the lack of these fundamental security mechanisms means that if any entry points were inadvertently introduced or if the plugin were to integrate with other components that expose them, it could be susceptible to CSRF attacks or unauthorized privilege escalation.

The plugin's vulnerability history is clean, with no recorded CVEs of any severity. This, coupled with the positive findings in the code analysis, suggests a history of secure development and maintenance. In conclusion, the plugin is well-developed from a security perspective, with robust handling of SQL and output. The primary concern lies in the fundamental oversight of missing nonce and capability checks, which represents a potential, albeit currently theoretical, risk that should be addressed.

Key Concerns

  • Missing nonce checks
  • Missing capability checks
Vulnerabilities
None known

Discounts Per Payment Method on WooCommerce Security Vulnerabilities

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

Discounts Per Payment Method on WooCommerce Code Analysis

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

SQL Query Safety

100% prepared2 total queries

Output Escaping

94% escaped17 total outputs
Attack Surface

Discounts Per Payment Method on WooCommerce Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 10
actionadmin_menuincludes\admin\class-wc-payment-discounts-admin.php:24
actionadmin_initincludes\admin\class-wc-payment-discounts-admin.php:27
actionwp_enqueue_scriptsincludes\class-wc-payment-discounts-apply-discount.php:24
actionwoocommerce_calculate_totalsincludes\class-wc-payment-discounts-apply-discount.php:27
filterwoocommerce_gateway_titleincludes\class-wc-payment-discounts-apply-discount.php:30
actionwoocommerce_checkout_order_processedincludes\class-wc-payment-discounts-apply-discount.php:33
filterwoocommerce_coupons_enabledincludes\class-wc-payment-discounts-apply-discount.php:111
actioninitwoocommerce-payment-discounts.php:63
actionadmin_noticeswoocommerce-payment-discounts.php:72
actionplugins_loadedwoocommerce-payment-discounts.php:138
Maintenance & Trust

Discounts Per Payment Method on WooCommerce Maintenance & Trust

Maintenance Signals

WordPress version tested5.5.18
Last updatedAug 10, 2020
PHP min version
Downloads60K

Community Trust

Rating88/100
Number of ratings35
Active installs1K
Developer Profile

Discounts Per Payment Method on WooCommerce Developer Profile

Claudio Sanches

17 plugins · 134K total installs

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

How We Detect Discounts Per Payment Method on WooCommerce

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/woocommerce-payment-discounts/assets/js/frontend/update-checkout.js/wp-content/plugins/woocommerce-payment-discounts/assets/js/frontend/update-checkout.min.js
Script Paths
plugins/woocommerce-payment-discounts/assets/js/frontend/update-checkout.jsplugins/woocommerce-payment-discounts/assets/js/frontend/update-checkout.min.js
Version Parameters
woocommerce-payment-discounts/assets/js/frontend/update-checkout.js?ver=woocommerce-payment-discounts/assets/js/frontend/update-checkout.min.js?ver=

HTML / DOM Fingerprints

JS Globals
WC_Payment_Discounts
FAQ

Frequently Asked Questions about Discounts Per Payment Method on WooCommerce