Current Date & Time Widget Security & Risk Analysis

wordpress.org/plugins/current-date-time-widget

Provides a widget that shows the current date and time given a specified timezone and format.

200 active installs v1.0.3 PHP + WP 2.3+ Updated Jul 2, 2008
datetimetimezone
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Current Date & Time Widget Safe to Use in 2026?

Generally Safe

Score 85/100

Current Date & Time Widget has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 17yr ago
Risk Assessment

The 'current-date-time-widget' plugin version 1.0.3 exhibits a strong security posture from a static analysis perspective, with no identified attack surface points such as AJAX handlers, REST API routes, or shortcodes. The absence of dangerous functions and file operations further contributes to its security. The fact that all SQL queries utilize prepared statements is a significant positive indicator, demonstrating adherence to secure database practices. However, a major concern arises from the complete lack of output escaping, with 0% of the 7 identified output points being properly escaped. This presents a significant risk of Cross-Site Scripting (XSS) vulnerabilities, where malicious scripts could be injected and executed within the user's browser.

The plugin's vulnerability history is clean, with no recorded CVEs. This, combined with the lack of critical or high-severity taint flows, suggests a generally secure codebase. However, the lack of nonce and capability checks, while not directly tied to a vulnerability in this version, represents a missed opportunity to implement robust access control and prevent potential future exploits, especially if new entry points were to be introduced or discovered. The overall security is good due to the lack of direct vulnerabilities and clean history, but the unescaped output is a critical flaw that needs immediate attention.

Key Concerns

  • Unescaped output
  • Missing nonce checks
  • Missing capability checks
Vulnerabilities
None known

Current Date & Time Widget Security Vulnerabilities

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

Current Date & Time Widget Code Analysis

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

Output Escaping

0% escaped7 total outputs
Attack Surface

Current Date & Time Widget Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 1
actionwidgets_initcurrent-date-time-widget.php:74
Maintenance & Trust

Current Date & Time Widget Maintenance & Trust

Maintenance Signals

WordPress version tested2.5.1
Last updatedJul 2, 2008
PHP min version
Downloads23K

Community Trust

Rating0/100
Number of ratings0
Active installs200
Developer Profile

Current Date & Time Widget Developer Profile

Chris Jean

4 plugins · 71K total installs

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

How We Detect Current Date & Time Widget

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

Asset Fingerprints

HTML / DOM Fingerprints

CSS Classes
widefat
Data Attributes
id="current-date-time"
Shortcode Output
<p id="current-date-time">
FAQ

Frequently Asked Questions about Current Date & Time Widget