Payment Method Discounts Security & Risk Analysis

wordpress.org/plugins/payment-method-discounts

Allows you to add discounts based on payment methods. Set fixed or percentage discounts for specific payment methods.

100 active installs v1.1 PHP 7.4+ WP 5.0+ Updated May 2, 2025
desconto-por-metodo-de-pagamentodiscountspayment-methodspayment-methods-discountswoocommerce
92
A · Safe
CVEs total0
Unpatched0
Last CVENever
Download
Safety Verdict

Is Payment Method Discounts Safe to Use in 2026?

Generally Safe

Score 92/100

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

No known CVEs Updated 1yr ago
Risk Assessment

The payment-method-discounts plugin v1.1 demonstrates a generally good security posture based on the provided static analysis. The absence of any known CVEs and the plugin's vulnerability history being empty suggest a well-maintained codebase or a lack of past scrutiny. The plugin exhibits strong adherence to secure coding practices, with no dangerous functions identified and all SQL queries utilizing prepared statements, which mitigates risks associated with SQL injection. The presence of nonce checks further enhances security, indicating an effort to prevent CSRF attacks.

However, there are notable areas for concern. The most significant weakness identified is the lack of capability checks. This means that even unauthenticated users or users with limited privileges might be able to trigger certain functionalities, potentially leading to unintended consequences or information disclosure if there are any undiscovered vulnerabilities or if the attack surface is larger than indicated. Furthermore, the output escaping is only properly implemented in 58% of cases. This leaves a considerable portion of output vulnerable to cross-site scripting (XSS) attacks, where malicious scripts could be injected into the user's browser. The lack of a significant attack surface in terms of AJAX, REST API, and shortcodes is a positive indicator, but the existing unescaped output and the absence of capability checks represent tangible security risks.

In conclusion, while the plugin has positive aspects like prepared SQL statements and nonce checks, and a clean vulnerability history, the lack of capability checks and the significant proportion of unescaped output are critical weaknesses that require immediate attention. These issues expose the plugin to potential XSS and privilege escalation vulnerabilities. The absence of taint analysis results is also a minor concern, as it suggests limited in-depth security testing for sensitive data flows.

Key Concerns

  • Missing capability checks
  • Significant amount of unescaped output
Vulnerabilities
None known

Payment Method Discounts Security Vulnerabilities

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

Payment Method Discounts Release Timeline

v1.1Current
v1.0
Code Analysis
Analyzed Mar 16, 2026

Payment Method Discounts Code Analysis

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

Output Escaping

58% escaped38 total outputs
Attack Surface

Payment Method Discounts Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 9
actionplugins_loadedpayment-method-discounts.php:43
actionadmin_menupayment-method-discounts.php:64
actionadmin_initpayment-method-discounts.php:96
actionadmin_initpayment-method-discounts.php:303
actionwp_enqueue_scriptspayment-method-discounts.php:345
actionadmin_enqueue_scriptspayment-method-discounts.php:346
actionwoocommerce_cart_calculate_feespayment-method-discounts.php:378
actionwoocommerce_checkout_update_order_reviewpayment-method-discounts.php:387
filterwoocommerce_gateway_titlepayment-method-discounts.php:398
Maintenance & Trust

Payment Method Discounts Maintenance & Trust

Maintenance Signals

WordPress version tested6.8.5
Last updatedMay 2, 2025
PHP min version7.4
Downloads3K

Community Trust

Rating100/100
Number of ratings2
Active installs100
Developer Profile

Payment Method Discounts Developer Profile

Steam Verde

1 plugin · 100 total installs

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

How We Detect Payment Method Discounts

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

Asset Fingerprints

HTML / DOM Fingerprints

CSS Classes
svpmd-settingssvpmd-containersvpmd-left-columnsvpmd-formsvpmd-descriptionsvpmd-selectsvpmd-gatewaysvpmd-gateway-title+3 more
Data Attributes
svpmd-settingssvpmd-containersvpmd-left-columnsvpmd-formsvpmd-descriptionsvpmd-select+5 more
FAQ

Frequently Asked Questions about Payment Method Discounts