Dark mode Button Security & Risk Analysis

wordpress.org/plugins/dark-mode-button

Add the shortcode [dmb] on any pages or posts. And you will get a Button switch between dark and light mode.

10 active installs v1.0 PHP 8.0+ WP 6.9+ Updated Jan 9, 2026
darkmode
100
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Dark mode Button Safe to Use in 2026?

Generally Safe

Score 100/100

Dark mode Button has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 2mo ago
Risk Assessment

The "dark-mode-button" v1.0 plugin exhibits a generally strong security posture based on the provided static analysis. The absence of dangerous functions, file operations, and external HTTP requests is a positive indicator. The plugin also demonstrates good practice by utilizing prepared statements for all SQL queries and ensuring 100% output escaping, which significantly mitigates common web vulnerabilities like SQL injection and cross-site scripting (XSS). The zero-count for known CVEs and the lack of recorded vulnerabilities in its history further suggest a history of secure development or thorough vetting. However, a key area for concern is the complete absence of nonce checks and capability checks. While the current attack surface is small and appears to have no unprotected entry points according to this analysis, this lack of authorization checks leaves the plugin vulnerable to CSRF (Cross-Site Request Forgery) attacks should any of its functionalities be triggered by a malicious actor. This is a significant weakness that needs to be addressed.

Key Concerns

  • Missing nonce checks
  • Missing capability checks
Vulnerabilities
None known

Dark mode Button Security Vulnerabilities

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

Dark mode Button Code Analysis

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

Dark mode Button Attack Surface

Entry Points1
Unprotected0

Shortcodes 1

[dmb] DarkModeButton.php:56
Maintenance & Trust

Dark mode Button Maintenance & Trust

Maintenance Signals

WordPress version tested6.9.4
Last updatedJan 9, 2026
PHP min version8.0
Downloads1K

Community Trust

Rating100/100
Number of ratings1
Active installs10
Developer Profile

Dark mode Button Developer Profile

Benjamin Hagh Parast

18 plugins · 330 total installs

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

How We Detect Dark mode Button

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

Asset Fingerprints

HTML / DOM Fingerprints

CSS Classes
dark-mode
JS Globals
darkmodecolor
Shortcode Output
<button onclick="darkmodecolor()">Mode</button>
FAQ

Frequently Asked Questions about Dark mode Button