TT Discount Option for WooCommerce Security & Risk Analysis

wordpress.org/plugins/tt-discount-option-for-woocommerce

A WooCommerce plugin that allow user to add a discount based on minimum order amount, product categories, products and date range.

0 active installs v1.0.0 PHP + WP 4.0+ Updated Unknown
discountsaleswoocommerce
100
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is TT Discount Option for WooCommerce Safe to Use in 2026?

Generally Safe

Score 100/100

TT Discount Option for WooCommerce has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs
Risk Assessment

The "tt-discount-option-for-woocommerce" v1.0.0 plugin exhibits a strong security posture in several key areas. Static analysis reveals no identified attack surface points like AJAX handlers, REST API routes, or shortcodes that are exposed without authentication. Furthermore, the code does not utilize dangerous functions, performs all SQL queries using prepared statements, and has no file operations or external HTTP requests. The presence of a nonce check and the absence of known vulnerabilities in its history are also positive indicators.

However, the analysis does highlight some potential areas for concern. With 35 total outputs, only 69% are properly escaped. This means a significant portion of user-facing data might be vulnerable to cross-site scripting (XSS) attacks. Additionally, the lack of capability checks on any entry points, while currently presenting a zero attack surface, means that if any new entry points were to be introduced without proper authorization checks, they could become immediately exploitable. The limited taint analysis (2 flows analyzed) and the complete absence of capability checks for existing code, while not indicating current issues, suggest potential blind spots in comprehensive security testing or development practices.

In conclusion, the plugin is built on a foundation of good security practices, particularly in its handling of database interactions and avoiding common attack vectors. The primary weakness lies in output escaping, which requires immediate attention. The absence of capability checks, though not a current vulnerability, represents a risk for future development. The plugin's history of zero vulnerabilities is reassuring but should not lead to complacency, especially given the identified output escaping issues.

Key Concerns

  • Unescaped output detected
  • Lack of capability checks on entry points
Vulnerabilities
None known

TT Discount Option for WooCommerce Security Vulnerabilities

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

TT Discount Option for WooCommerce Code Analysis

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

Output Escaping

69% escaped35 total outputs
Data Flows
All sanitized

Data Flow Analysis

2 flows
settings_page_discount_option (wc-discount-option.php:175)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface

TT Discount Option for WooCommerce Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 5
actionwoocommerce_initwc-discount-option.php:84
actionadmin_menuwc-discount-option.php:92
actionadmin_enqueue_scriptswc-discount-option.php:93
actionwoocommerce_cart_calculate_feeswc-discount-option.php:97
actionadmin_noticeswc-discount-option.php:474
Maintenance & Trust

TT Discount Option for WooCommerce Maintenance & Trust

Maintenance Signals

WordPress version tested6.1.10
Last updatedUnknown
PHP min version
Downloads630

Community Trust

Rating0/100
Number of ratings0
Active installs0
Developer Profile

TT Discount Option for WooCommerce Developer Profile

terrytsang

8 plugins · 1K total installs

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

How We Detect TT Discount Option 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/tt-discount-option-for-woocommerce/assets/css/admin.css
Version Parameters
/tt-discount-option-for-woocommerce/assets/css/admin.css?ver=/wp-content/plugins/tt-discount-option-for-woocommerce/assets/css/admin.css?ver=

HTML / DOM Fingerprints

FAQ

Frequently Asked Questions about TT Discount Option for WooCommerce