Simple Discount Badge for Woocommerce Security & Risk Analysis

wordpress.org/plugins/simple-discount-badge

Add a simple discount badge to woocommerce powered website.

70 active installs v1.0.1 PHP 5.4+ WP 4.0+ Updated May 11, 2021
badgebadgeswoocommercewoocommerce-filterswoocommerce-shop
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Simple Discount Badge for Woocommerce Safe to Use in 2026?

Generally Safe

Score 85/100

Simple Discount Badge for Woocommerce has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 4yr ago
Risk Assessment

The static analysis of the "simple-discount-badge" plugin v1.0.1 reveals a generally good security posture with no recorded vulnerabilities and a limited attack surface. The absence of AJAX handlers, REST API routes, shortcodes, and cron events significantly reduces potential entry points for attackers. Furthermore, the plugin demonstrates good practices by utilizing prepared statements for all SQL queries and including nonce checks. The taint analysis also found no critical or high-severity issues, indicating a lack of immediate data sanitization concerns.

However, a significant concern arises from the low percentage of properly escaped output (13%). This suggests that data displayed to users might be vulnerable to Cross-Site Scripting (XSS) attacks. While the attack surface is small, unsanitized output is a common vector for exploiting vulnerabilities. The plugin also lacks capability checks, which could be a point of concern if any administrative functions were to be added in the future, though none are apparent in the current analysis. The complete lack of vulnerability history is a positive indicator, suggesting a history of secure development or infrequent security scrutiny.

Key Concerns

  • Low output escaping percentage
  • No capability checks found
Vulnerabilities
None known

Simple Discount Badge for Woocommerce Security Vulnerabilities

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

Simple Discount Badge for Woocommerce Code Analysis

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

Output Escaping

13% escaped8 total outputs
Attack Surface

Simple Discount Badge for Woocommerce Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 7
actionwoocommerce_before_shop_loop_item_titlemain.php:92
filterwoocommerce_sale_flashmain.php:98
actionwoocommerce_single_product_summarymain.php:139
actionadmin_menusettings.php:4
actionadmin_initsettings.php:5
actionadmin_enqueue_scriptssettings.php:6
actioninitsettings.php:217
Maintenance & Trust

Simple Discount Badge for Woocommerce Maintenance & Trust

Maintenance Signals

WordPress version tested5.7.15
Last updatedMay 11, 2021
PHP min version5.4
Downloads3K

Community Trust

Rating100/100
Number of ratings1
Active installs70
Developer Profile

Simple Discount Badge for Woocommerce Developer Profile

Satnam Singh

2 plugins · 70 total installs

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

How We Detect Simple Discount Badge 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/simple-discount-badge/color.js
Script Paths
/wp-content/plugins/simple-discount-badge/color.js

HTML / DOM Fingerprints

CSS Classes
percentagebadgeprodpage
Data Attributes
name='sdb_setting_page_settings[sdb_setting_page_default_badge]'name='sdb_setting_page_settings[sdb_setting_page_productpage_badge]'name='sdb_setting_page_settings[sdb_setting_page_text_afternumber]'name='sdb_setting_page_settings[sdb_setting_page_background]'name='sdb_setting_page_settings[sdb_setting_page_text_color]'class='the-color-field'
Shortcode Output
<div class='percentagebadge'><p class="prodpage"><b>You Save:
FAQ

Frequently Asked Questions about Simple Discount Badge for Woocommerce