Random Related Posts Security & Risk Analysis

wordpress.org/plugins/random-related-posts

A simple sidebar widget to include a custom number of posts from the same category as the current post.

40 active installs v1.0 PHP + WP 3.0+ Updated Apr 27, 2011
customisablerandom-postsrelated-postssidebarwidget
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Random Related Posts Safe to Use in 2026?

Generally Safe

Score 85/100

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

No known CVEs Updated 14yr ago
Risk Assessment

The 'random-related-posts' v1.0 plugin exhibits a mixed security posture. On the positive side, the plugin has no known vulnerabilities (CVEs) and its SQL queries are exclusively handled with prepared statements, which is a strong security practice. Furthermore, the static analysis reveals a very small attack surface with no discoverable AJAX handlers, REST API routes, shortcodes, or cron events, and crucially, none of these potential entry points appear to be unprotected.

However, significant concerns arise from the code signals. The presence of the `create_function` is a critical security risk, as it can be exploited for arbitrary code execution. Additionally, only 13% of output is properly escaped, indicating a high risk of Cross-Site Scripting (XSS) vulnerabilities. The complete absence of nonce and capability checks, while seemingly mitigated by the limited attack surface, leaves potential for privilege escalation or unauthorized actions if any vulnerabilities are ever introduced through code modification or future updates.

Given the lack of historical vulnerabilities, it's difficult to draw definitive conclusions about long-term maintenance. However, the current code analysis highlights serious flaws that outweigh the limited attack surface. The use of `create_function` and the high percentage of unescaped output are immediate and severe risks that require urgent attention. While the absence of a large attack surface is a strength, it does not mitigate the inherent dangers within the existing code.

Key Concerns

  • Use of create_function
  • Low percentage of properly escaped output
  • Missing nonce checks
  • Missing capability checks
Vulnerabilities
None known

Random Related Posts Security Vulnerabilities

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

Random Related Posts Code Analysis

Dangerous Functions
1
Raw SQL Queries
0
0 prepared
Unescaped Output
14
2 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("RPWidget");'));index.php:77

Output Escaping

13% escaped16 total outputs
Attack Surface

Random Related Posts Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 1
actionwidgets_initindex.php:77
Maintenance & Trust

Random Related Posts Maintenance & Trust

Maintenance Signals

WordPress version tested3.1.4
Last updatedApr 27, 2011
PHP min version
Downloads6K

Community Trust

Rating0/100
Number of ratings0
Active installs40
Developer Profile

Random Related Posts Developer Profile

ray.viljoen

6 plugins · 400 total installs

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

How We Detect Random Related Posts

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/random-related-posts/style.css
Version Parameters
random-related-posts/style.css?ver=

HTML / DOM Fingerprints

CSS Classes
related-titlerandom-postsbydate
Data Attributes
related-posts
FAQ

Frequently Asked Questions about Random Related Posts