Loyalty Discounts for WooCommerce Security & Risk Analysis

wordpress.org/plugins/loyalty-discounts-for-woocommerce

Apply WooCommerce loyalty style discounts to a customers checkout, based specific rules and criteria that needs to be met by the user.

10 active installs v1.2.0 PHP + WP 4.7+ Updated Jul 22, 2023
discountsloyaltyrewardsruleswoocommerce
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Loyalty Discounts for WooCommerce Safe to Use in 2026?

Generally Safe

Score 85/100

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

No known CVEs Updated 2yr ago
Risk Assessment

The "loyalty-discounts-for-woocommerce" plugin, version 1.2.0, demonstrates a generally good security posture based on the provided static analysis. The absence of dangerous functions, the use of prepared statements for all SQL queries, and the limited attack surface with only one shortcode are positive indicators. The plugin also has no recorded vulnerabilities, which suggests a history of secure development or diligent patching.

However, there are areas for concern. While the capability check is present, the lack of nonce checks on the sole shortcode could be a potential entry point for cross-site request forgery (CSRF) attacks if the shortcode's functionality involves sensitive operations. Additionally, a significant portion of output (25%) is not properly escaped, which could lead to cross-site scripting (XSS) vulnerabilities if user-supplied data is rendered directly in the output. The lack of taint analysis results is also notable, as it limits the understanding of how data flows within the plugin and if unsanitized paths exist.

In conclusion, the plugin shows promise with its secure handling of SQL and its minimal attack surface. Nevertheless, the potential for XSS due to unescaped output and the lack of specific CSRF protections on the shortcode are weaknesses that require attention. Addressing these points would further strengthen the plugin's security.

Key Concerns

  • Unescaped output detected (25%)
  • Potential CSRF risk on shortcode (no nonce check)
Vulnerabilities
None known

Loyalty Discounts for WooCommerce Security Vulnerabilities

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

Loyalty Discounts for WooCommerce Code Analysis

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

Output Escaping

75% escaped122 total outputs
Attack Surface

Loyalty Discounts for WooCommerce Attack Surface

Entry Points1
Unprotected0

Shortcodes 1

[loyalty-discount-info] wld-shortcode.php:208
WordPress Hooks 11
actionadmin_initadmin\admin-options.php:5
actionadmin_menuadmin\admin-options.php:238
actionwoocommerce_cart_calculate_feesinc\add_discount_total_cart.php:3
actionwoocommerce_cart_calculate_feesinc\add_discount_total_items_ordered.php:5
actionwoocommerce_cart_calculate_feesinc\add_discount_total_spent.php:3
filterwoocommerce_package_ratesinc\add_discount_total_spent.php:75
actionwld_after_sc_discount_headerwld-shortcode.php:3
actionadmin_enqueue_scriptswoo-loyality-discounts.php:34
actionwp_enqueue_scriptswoo-loyality-discounts.php:40
filterplugin_action_linkswoo-loyality-discounts.php:43
actionactivated_pluginwoo-loyality-discounts.php:64
Maintenance & Trust

Loyalty Discounts for WooCommerce Maintenance & Trust

Maintenance Signals

WordPress version tested6.2.9
Last updatedJul 22, 2023
PHP min version
Downloads2K

Community Trust

Rating100/100
Number of ratings2
Active installs10
Developer Profile

Loyalty Discounts for WooCommerce Developer Profile

RelyWP

2 plugins · 10 total installs

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

How We Detect Loyalty Discounts 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/loyalty-discounts-for-woocommerce/js/admin-scripts.js/wp-content/plugins/loyalty-discounts-for-woocommerce/css/admin-styles.css/wp-content/plugins/loyalty-discounts-for-woocommerce/css/styles.css

HTML / DOM Fingerprints

CSS Classes
progress-bar-containerprogress-barprogress-textdiscount_boxdiscount_totaldiscount_cartdiscount_items
Data Attributes
data-visible
Shortcode Output
<div class='discount_box discount_total'><div class='discount_box discount_cart'><div class='discount_box discount_items'>
FAQ

Frequently Asked Questions about Loyalty Discounts for WooCommerce