Better WooCommerce Stars Shortcode Security & Risk Analysis

wordpress.org/plugins/better-woocommerce-stars-shortcode

Creates a shortcode that displays the rating, in stars, of any WooCommerce product.

60 active installs v1.0 PHP + WP 3.0+ Updated Aug 24, 2015
ratingratingsshortcodestarswoocommerce
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Better WooCommerce Stars Shortcode Safe to Use in 2026?

Generally Safe

Score 85/100

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

No known CVEs Updated 10yr ago
Risk Assessment

The 'better-woocommerce-stars-shortcode' v1.0 plugin exhibits a mixed security posture. While the static analysis shows no critical or high-severity code signals like dangerous functions, file operations, or external HTTP requests, and the vulnerability history is clean, there are significant concerns regarding data handling. The complete absence of prepared statements for SQL queries and the lack of output escaping for all identified outputs are major weaknesses. This means that any user-supplied data processed by the plugin's SQL queries or displayed on the frontend could be vulnerable to injection attacks (SQL injection and Cross-Site Scripting respectively).

The taint analysis showing zero flows is somewhat reassuring, suggesting that either the plugin's logic doesn't involve complex data flows that the analysis tool can detect, or the data processing is simple enough to avoid obvious unsanitized paths. However, this doesn't negate the risks posed by the raw SQL and unescaped output. The clean vulnerability history is a positive indicator, implying the developers have not historically introduced severe security flaws. Despite this, the current version's code practices, particularly around data sanitization and output encoding, present tangible risks that require immediate attention. The plugin needs to implement prepared statements for all database interactions and robust output escaping to mitigate these vulnerabilities.

Key Concerns

  • SQL queries not using prepared statements
  • Output escaping is not implemented
  • No nonce checks for entry points
  • No capability checks for entry points
Vulnerabilities
None known

Better WooCommerce Stars Shortcode Security Vulnerabilities

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

Better WooCommerce Stars Shortcode Code Analysis

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

SQL Query Safety

0% prepared2 total queries

Output Escaping

0% escaped4 total outputs
Attack Surface

Better WooCommerce Stars Shortcode Attack Surface

Entry Points1
Unprotected0

Shortcodes 1

[woocommerce_rating] woocommerce_stars_shortcode.php:29
WordPress Hooks 1
actionwp_footerwoocommerce_stars_shortcode.php:145
Maintenance & Trust

Better WooCommerce Stars Shortcode Maintenance & Trust

Maintenance Signals

WordPress version tested4.8.28
Last updatedAug 24, 2015
PHP min version
Downloads5K

Community Trust

Rating74/100
Number of ratings3
Active installs60
Developer Profile

Better WooCommerce Stars Shortcode Developer Profile

Clicknathan

1 plugin · 60 total installs

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

How We Detect Better WooCommerce Stars Shortcode

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/better-woocommerce-stars-shortcode/better-woocommerce-stars-shortcode.php

HTML / DOM Fingerprints

CSS Classes
display-rating-valuedisplay-number-of-ratingsstar-ratingstarwrapperstar-rating-alt-text
Data Attributes
itemprop="aggregateRating"itemscopeitemtype="http://schema.org/AggregateRating"itemprop="ratingValue"
Shortcode Output
<span style="display:inline-block;float:none;" class="starwrapper" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
FAQ

Frequently Asked Questions about Better WooCommerce Stars Shortcode