Show Random Products Security & Risk Analysis

wordpress.org/plugins/show-random-products

A widget + shortcode to show random products in your store

10 active installs v1.0.0 PHP + WP 3.0+ Updated Unknown
productrandomshortcodewidgetwoocommerce
100
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Show Random Products Safe to Use in 2026?

Generally Safe

Score 100/100

Show Random Products has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs
Risk Assessment

The 'show-random-products' plugin v1.0.0 presents a mixed security posture. On the positive side, it demonstrates a strong commitment to secure SQL practices by utilizing prepared statements for all its queries and has a clean vulnerability history with no known CVEs. The attack surface is also relatively small, with only one shortcode identified as an entry point, and no unprotected AJAX handlers or REST API routes. However, significant concerns arise from the code signals. The use of `create_function` is a critical security risk as it can lead to remote code execution if exploited. Furthermore, the complete lack of output escaping for all identified outputs means that any dynamic data displayed by the plugin is highly susceptible to cross-site scripting (XSS) attacks. The absence of nonce checks and capability checks, while not directly tied to entry points in this version, leaves the plugin vulnerable to privilege escalation or unauthorized actions if new entry points were introduced or existing ones modified without proper checks.

In conclusion, while the plugin avoids common pitfalls like unpatched vulnerabilities and raw SQL, the identified use of `create_function` and the pervasive lack of output escaping are severe security weaknesses. These issues significantly undermine the plugin's overall security, making it a high risk for deployment without immediate remediation. The absence of known vulnerabilities in its history might indicate a lack of rigorous security auditing or a limited scope of use, but it does not negate the demonstrable risks present in the current codebase.

Key Concerns

  • Use of create_function
  • No output escaping
  • No nonce checks
  • No capability checks
Vulnerabilities
None known

Show Random Products Security Vulnerabilities

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

Show Random Products Code Analysis

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

Dangerous Functions Found

create_functionadd_action( 'widgets_init', create_function( '', 'return register_widget( "srp_widget_random" );' ) includes\widget-random.php:128

Output Escaping

0% escaped20 total outputs
Attack Surface

Show Random Products Attack Surface

Entry Points1
Unprotected0

Shortcodes 1

[srp_random] show-random-products.php:31
WordPress Hooks 2
actionwidgets_initincludes\widget-random.php:128
actionwp_enqueue_scriptsshow-random-products.php:30
Maintenance & Trust

Show Random Products Maintenance & Trust

Maintenance Signals

WordPress version tested4.2.39
Last updatedUnknown
PHP min version
Downloads3K

Community Trust

Rating0/100
Number of ratings0
Active installs10
Developer Profile

Show Random Products Developer Profile

Alan Cesarini

4 plugins · 60 total installs

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

How We Detect Show Random Products

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/show-random-products/assets/css/main.css
Version Parameters
show-random-products/assets/css/main.css?ver=1.0.0

HTML / DOM Fingerprints

CSS Classes
srp_widget_random
Data Attributes
id="srp_widget_random"name="srp_widget_random[]"id="srp_random"name="srp_random[]"
Shortcode Output
[srp_random]
FAQ

Frequently Asked Questions about Show Random Products