Random Posts and Pages Widget Security & Risk Analysis

wordpress.org/plugins/ays-random-posts-and-pages

The main advantage of this widget is random movement of random links and every time they are changing.

1K active installs v2.6.1 PHP + WP 4.0+ Updated Apr 29, 2025
popular-postsrandom-pagesrandom-postrandom-postsrelated-posts
92
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Random Posts and Pages Widget Safe to Use in 2026?

Generally Safe

Score 92/100

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

No known CVEs Updated 1yr ago
Risk Assessment

The static analysis of "ays-random-posts-and-pages" v2.6.1 indicates a generally good security posture. The plugin has no identified AJAX handlers, REST API routes, shortcodes, or cron events that could serve as direct entry points for attacks. Furthermore, the absence of dangerous functions, file operations, and external HTTP requests, along with zero taint flows, suggests a low risk of common web vulnerabilities like code injection, arbitrary file operations, or SSRF.

However, there are significant concerns regarding SQL query handling and output escaping. All four SQL queries are executed without prepared statements, creating a high risk of SQL injection vulnerabilities, especially if user-supplied data is ever incorporated into these queries. Additionally, only 17% of output is properly escaped, leaving a substantial portion vulnerable to Cross-Site Scripting (XSS) attacks. The complete lack of nonce and capability checks on any potential, albeit currently unidentified, entry points is also a weakness that could be exploited if new attack vectors are introduced or discovered.

The plugin's vulnerability history is exceptionally clean, with zero recorded CVEs. This, combined with the current static analysis findings of no critical or high severity issues, suggests that the developers have historically maintained a good security focus. However, the identified SQL and output escaping issues represent serious potential weaknesses that, if exploited, could lead to significant data breaches or site compromise, despite the lack of past reported incidents.

Key Concerns

  • SQL queries not using prepared statements
  • Low percentage of properly escaped output
  • No nonce checks found
  • No capability checks found
Vulnerabilities
None known

Random Posts and Pages Widget Security Vulnerabilities

No known vulnerabilities — this is a good sign.
Version History

Random Posts and Pages Widget Release Timeline

v2.6.1Current
v2.6.0
v2.5.9
v2.5.8
v2.5.7
v2.5.6
v2.5.5
v2.5.4
v2.5.3
v2.5.2
v2.5.1
v2.5.0
v2.4.9
v2.4.8
v2.4.7
v2.4.6
v2.4.5
v2.4.4
v2.4.3
v2.4.2
Code Analysis
Analyzed Mar 16, 2026

Random Posts and Pages Widget Code Analysis

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

SQL Query Safety

0% prepared4 total queries

Output Escaping

17% escaped295 total outputs
Attack Surface

Random Posts and Pages Widget Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 2
actionwidgets_initWordPress_Random_Posts_and_Pages.php:1087
actionwidgets_initWordPress_Random_Posts_and_Pages.php:1088
Maintenance & Trust

Random Posts and Pages Widget Maintenance & Trust

Maintenance Signals

WordPress version tested6.8.5
Last updatedApr 29, 2025
PHP min version
Downloads27K

Community Trust

Rating100/100
Number of ratings4
Active installs1K
Developer Profile

Random Posts and Pages Widget Developer Profile

Ays Pro

18 plugins · 111K total installs

73
trust score
Avg Security Score
92/100
Avg Patch Time
203 days
View full developer profile
Detection Fingerprints

How We Detect Random Posts and Pages Widget

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/ays-random-posts-and-pages/css/style.css/wp-content/plugins/ays-random-posts-and-pages/css/animate.min.css/wp-content/plugins/ays-random-posts-and-pages/js/main.js
Script Paths
/wp-content/plugins/ays-random-posts-and-pages/js/main.js
Version Parameters
ays-random-posts-and-pages/css/style.css?ver=ays-random-posts-and-pages/css/animate.min.css?ver=ays-random-posts-and-pages/js/main.js?ver=

HTML / DOM Fingerprints

CSS Classes
ays-random-posts-pages
Data Attributes
data-ays_animation_typedata-ays_animate_speeddata-ays_link_hover_bg_transdata-ays_link_hover_bgdata-ays_link_hover_colordata-ays_link_hover_border+19 more
JS Globals
ays_rp_data
Shortcode Output
[ays_random_posts]
FAQ

Frequently Asked Questions about Random Posts and Pages Widget