Moon Phase Widget Security & Risk Analysis

wordpress.org/plugins/moon-phase-widget

A sidebar widget to display the moon phase.

10 active installs v1.0 PHP + WP 3.0.1+ Updated Dec 14, 2013
lunarmoonphasestarwidget
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Moon Phase Widget Safe to Use in 2026?

Generally Safe

Score 85/100

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

No known CVEs Updated 12yr ago
Risk Assessment

The "moon-phase-widget" v1.0 plugin exhibits a mixed security posture. On the positive side, there are no known CVEs, suggesting a historical lack of severe, publicly disclosed vulnerabilities. The absence of external HTTP requests, file operations, and the adherence to prepared statements for all SQL queries are excellent security practices. This indicates a level of care in handling sensitive operations and data.

However, the static analysis reveals significant concerns. The presence of the `create_function` is a critical red flag, as it is deprecated and can lead to code injection vulnerabilities if user input is used within it. Furthermore, the extremely low percentage of properly escaped output (17%) is highly problematic, indicating a substantial risk of Cross-Site Scripting (XSS) vulnerabilities. The lack of any nonce or capability checks across all entry points is also a major weakness, leaving the plugin susceptible to unauthorized actions and privilege escalation if any of its entry points were to become exposed or exploitable.

While the plugin has no recorded vulnerability history, this does not guarantee its current security. The identified code signals, particularly `create_function` and widespread unescaped output, represent immediate and serious risks that overshadow the clean vulnerability history. The plugin's strengths lie in its avoidance of external interactions and its SQL hygiene, but its weaknesses in output sanitization and lack of authorization checks create a substantial attack surface that requires immediate attention.

Key Concerns

  • Use of deprecated and dangerous function: create_function
  • Low percentage of properly escaped output (17%)
  • No nonce checks across all entry points
  • No capability checks across all entry points
Vulnerabilities
None known

Moon Phase Widget Security Vulnerabilities

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

Moon Phase Widget Code Analysis

Dangerous Functions
1
Raw SQL Queries
0
0 prepared
Unescaped Output
10
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( '', 'register_widget("MoonPhase_Widget");' ) );moon-phase-widget.php:113

Output Escaping

17% escaped12 total outputs
Attack Surface

Moon Phase Widget Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 1
actionwidgets_initmoon-phase-widget.php:113
Maintenance & Trust

Moon Phase Widget Maintenance & Trust

Maintenance Signals

WordPress version tested3.8.0
Last updatedDec 14, 2013
PHP min version
Downloads3K

Community Trust

Rating74/100
Number of ratings6
Active installs10
Developer Profile

Moon Phase Widget Developer Profile

DuncanMarshall

2 plugins · 20 total installs

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

How We Detect Moon Phase Widget

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

Asset Fingerprints

HTML / DOM Fingerprints

CSS Classes
moon_widget_continermoon_widget_sizer
Data Attributes
id="moon_widget_continer"id="moon_widget_sizer"id="moon_widget_iframe"src="https://dianagarland.com/wdget_moon_phase/"
FAQ

Frequently Asked Questions about Moon Phase Widget