Pay What You Want Security & Risk Analysis

wordpress.org/plugins/pay-what-you-want

This plugin will help you to set your product price to an open price/ a set of predefined prices or it can create a fraction of the price based on the …

300 active installs v1.0.6 PHP 5.6+ WP 4.0+ Updated Jul 4, 2025
dynamic-pricenon-profitopen-pricepay-what-you-wantwoocommerce
100
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Pay What You Want Safe to Use in 2026?

Generally Safe

Score 100/100

Pay What You Want has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 9mo ago
Risk Assessment

The "pay-what-you-want" plugin v1.0.6 exhibits a generally strong security posture based on the provided static analysis. The complete absence of AJAX handlers, REST API routes, shortcodes, and cron events with unprotected entry points is a significant strength, indicating a minimal attack surface for direct exploitation. Furthermore, the use of prepared statements for all SQL queries and the presence of a nonce check are good security practices. The lack of file operations and external HTTP requests also contributes positively to its security. However, the code analysis reveals that only 60% of output is properly escaped, representing a potential risk for cross-site scripting (XSS) vulnerabilities if sensitive data is outputted without adequate sanitization. The vulnerability history is clean, with no recorded CVEs, which is a positive indicator of past security diligence or limited historical exploitation. Despite the clean history, the unescaped output remains a concern that warrants attention.

Key Concerns

  • 60% of outputs are not properly escaped
Vulnerabilities
None known

Pay What You Want Security Vulnerabilities

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

Pay What You Want Code Analysis

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

Bundled Libraries

Freemius1.0

Output Escaping

60% escaped10 total outputs
Data Flows
All sanitized

Data Flow Analysis

2 flows
pwyw_save_settings (inc\settings-page.php:27)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface

Pay What You Want Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 19
actionwoocommerce_before_add_to_cart_buttoninc\pay-what-you-want.php:52
filterwoocommerce_add_cart_item_datainc\pay-what-you-want.php:73
actionwoocommerce_before_calculate_totalsinc\pay-what-you-want.php:90
filterwoocommerce_loop_add_to_cart_linkinc\pay-what-you-want.php:109
filterwoocommerce_get_price_htmlinc\pay-what-you-want.php:124
actionadmin_menuinc\settings-page.php:6
actionadmin_post_pwyw_admin_settingsinc\settings-page.php:7
filterwoocommerce_product_data_tabsinc\single-product-settings.php:14
actionwoocommerce_product_data_panelsinc\single-product-settings.php:61
actionwoocommerce_process_product_meta_simpleinc\single-product-settings.php:79
actionwoocommerce_process_product_meta_variableinc\single-product-settings.php:80
filterconnect_urlpay-what-you-want.php:66
filterafter_skip_urlpay-what-you-want.php:67
filterafter_connect_urlpay-what-you-want.php:68
filterafter_pending_connect_urlpay-what-you-want.php:69
actionadmin_noticespay-what-you-want.php:75
actionwp_enqueue_scriptspay-what-you-want.php:110
actionadmin_enqueue_scriptspay-what-you-want.php:123
actionplugins_loadedpay-what-you-want.php:130
Maintenance & Trust

Pay What You Want Maintenance & Trust

Maintenance Signals

WordPress version tested6.8.5
Last updatedJul 4, 2025
PHP min version5.6
Downloads6K

Community Trust

Rating100/100
Number of ratings1
Active installs300
Developer Profile

Pay What You Want Developer Profile

Niaj Morshed

4 plugins · 2K total installs

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

How We Detect Pay What You Want

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/pay-what-you-want/css/styles.css/wp-content/plugins/pay-what-you-want/js/scripts.js/wp-content/plugins/pay-what-you-want/js/admin-scripts.js/wp-content/plugins/pay-what-you-want/css/admin-styles.css
Script Paths
/wp-content/plugins/pay-what-you-want/js/scripts.js/wp-content/plugins/pay-what-you-want/js/admin-scripts.js
Version Parameters
pay-what-you-want/js/scripts.js?ver=1.0.0pay-what-you-want/js/admin-scripts.js?ver=1.0.0pay-what-you-want/css/admin-styles.css?ver=1.0

HTML / DOM Fingerprints

CSS Classes
price-set-inputpwyw-remove
Data Attributes
name='pwyw_predefined_price_set[]'name='pwyw-single-price[]'
FAQ

Frequently Asked Questions about Pay What You Want