Random Tweet Widget Security & Risk Analysis

wordpress.org/plugins/random-tweet-widget

Shows a random tweet from a Twitter account in a sidebar widget.

10 active installs v1.4.2 PHP + WP 2.9+ Updated Oct 26, 2022
randomrandom-tweettweettwittertwitter-sidebar
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Random Tweet Widget Safe to Use in 2026?

Generally Safe

Score 85/100

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

No known CVEs Updated 3yr ago
Risk Assessment

The random-tweet-widget plugin v1.4.2 exhibits a mixed security posture. On the positive side, it has a remarkably small attack surface with no discernible entry points for external interaction, and all SQL queries utilize prepared statements, indicating good database handling. The absence of file operations and external HTTP requests also reduces potential vectors for compromise. However, the static analysis reveals critical concerns. The presence of `create_function` is a significant red flag, as it is deprecated and can lead to serious security vulnerabilities if user input is ever passed to it without rigorous sanitization. Furthermore, only 9% of output is properly escaped, leaving a high probability of cross-site scripting (XSS) vulnerabilities when the plugin displays content. The lack of any observed nonce checks or capability checks is also concerning, especially given the plugin's limited attack surface might imply it's intended for simpler use cases, but such checks are fundamental for secure WordPress development. The plugin's vulnerability history is clean, with no recorded CVEs, which is a positive indicator. This, combined with the small attack surface and prepared SQL statements, suggests that for its current feature set, it might have been developed with some security awareness. Nevertheless, the identified code signals, particularly `create_function` and the very low output escaping rate, present tangible risks that should not be overlooked.

Key Concerns

  • Use of deprecated and dangerous function create_function
  • Very low output escaping rate (9%)
  • Missing nonce checks
  • Missing capability checks
Vulnerabilities
None known

Random Tweet Widget Security Vulnerabilities

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

Random Tweet Widget Code Analysis

Dangerous Functions
1
Raw SQL Queries
0
0 prepared
Unescaped Output
10
1 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("RandomTweetWidget");'));random_tweet_widget.php:261

Output Escaping

9% escaped11 total outputs
Attack Surface

Random Tweet Widget Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 1
actionwidgets_initrandom_tweet_widget.php:261
Maintenance & Trust

Random Tweet Widget Maintenance & Trust

Maintenance Signals

WordPress version tested6.1.10
Last updatedOct 26, 2022
PHP min version
Downloads6K

Community Trust

Rating100/100
Number of ratings1
Active installs10
Developer Profile

Random Tweet Widget Developer Profile

whiletrue

7 plugins · 3K total installs

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

How We Detect Random Tweet Widget

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/random-tweet-widget/css/random_tweet_widget.css/wp-content/plugins/random-tweet-widget/js/random_tweet_widget.js
Script Paths
/wp-content/plugins/random-tweet-widget/js/random_tweet_widget.js
Version Parameters
random-tweet-widget/css/random_tweet_widget.css?ver=random-tweet-widget/js/random_tweet_widget.js?ver=

HTML / DOM Fingerprints

CSS Classes
twitter_title_link
HTML Comments
<!-- Fetching data from Twitter --><!-- Requested items -->
Data Attributes
data-consumer-keydata-consumer-secretdata-access-tokendata-access-token-secretdata-usernamedata-num+5 more
FAQ

Frequently Asked Questions about Random Tweet Widget