Onyx Dark Mode Switcher Security & Risk Analysis

wordpress.org/plugins/onyx-dark-mode-switcher

Switch between light and dark themes for a more comfortable viewing experience, day or night.

100 active installs v1.0.2 PHP 7.2+ WP 6.3+ Updated Feb 13, 2026
dark-modedark-mode-switcherlight-dark-togglenight-mode
100
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Onyx Dark Mode Switcher Safe to Use in 2026?

Generally Safe

Score 100/100

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

No known CVEs Updated 1mo ago
Risk Assessment

The onyx-dark-mode-switcher plugin, version 1.0.2, demonstrates a generally good security posture with several positive indicators. The complete absence of dangerous functions, SQL injection vulnerabilities (all queries use prepared statements), and external HTTP requests are strong points. Furthermore, the high percentage of properly escaped output and the presence of nonce and capability checks suggest developers are aware of common security best practices. The plugin also has a clean vulnerability history, with no known CVEs, which is reassuring.

However, a significant concern arises from the attack surface. The plugin exposes three AJAX handlers, but two of these lack authentication checks. This creates a potential entry point for attackers to trigger plugin functionality without proper authorization, which could lead to unintended consequences or information disclosure depending on what these handlers do. The static analysis did not reveal any taint flows, which is positive, but the presence of unprotected AJAX endpoints remains the most critical weakness.

In conclusion, while the plugin exhibits good coding practices in many areas and has no past vulnerabilities, the unprotected AJAX handlers are a clear security risk. Addressing these unprotected entry points should be the highest priority to improve the plugin's overall security. The lack of critical or high severity findings in the static analysis and vulnerability history is a positive sign, but the identified attack surface needs immediate attention.

Key Concerns

  • Unprotected AJAX handlers
Vulnerabilities
None known

Onyx Dark Mode Switcher Security Vulnerabilities

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

Onyx Dark Mode Switcher Code Analysis

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

Output Escaping

95% escaped126 total outputs
Attack Surface
2 unprotected

Onyx Dark Mode Switcher Attack Surface

Entry Points3
Unprotected2

AJAX Handlers 3

authwp_ajax_onyx_settings_saveadmin\inc\class-onyx-dark-mode-switcher-settings.php:13
authwp_ajax_onyx_replace_image_fields_optionsadmin\inc\class-onyx-dark-mode-switcher-settings.php:15
authwp_ajax_onyx_invert_image_fields_optionsadmin\inc\class-onyx-dark-mode-switcher-settings.php:16
WordPress Hooks 8
actionadmin_footeradmin\class-onyx-dark-mode-switcher-admin.php:30
actionadmin_menuadmin\inc\class-onyx-dark-mode-switcher-settings.php:10
actionadmin_enqueue_scriptsincludes\class-onyx-dark-mode-switcher.php:119
actionadmin_enqueue_scriptsincludes\class-onyx-dark-mode-switcher.php:120
actionwp_enqueue_scriptsincludes\class-onyx-dark-mode-switcher.php:135
actionwp_enqueue_scriptsincludes\class-onyx-dark-mode-switcher.php:136
actionwp_footerpublic\class-onyx-dark-mode-switcher-public.php:41
filterwp_nav_menu_itemspublic\class-onyx-dark-mode-switcher-public.php:45
Maintenance & Trust

Onyx Dark Mode Switcher Maintenance & Trust

Maintenance Signals

WordPress version tested6.9.4
Last updatedFeb 13, 2026
PHP min version7.2
Downloads511

Community Trust

Rating0/100
Number of ratings0
Active installs100
Developer Profile

Onyx Dark Mode Switcher Developer Profile

hashthemes

19 plugins · 66K total installs

78
trust score
Avg Security Score
99/100
Avg Patch Time
98 days
View full developer profile
Detection Fingerprints

How We Detect Onyx Dark Mode Switcher

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/onyx-dark-mode-switcher/admin/css/admin.css/wp-content/plugins/onyx-dark-mode-switcher/admin/css/materialdesignicons.css/wp-content/plugins/onyx-dark-mode-switcher/admin/js/jquery-condition.js/wp-content/plugins/onyx-dark-mode-switcher/admin/js/admin.js/wp-content/plugins/onyx-dark-mode-switcher/public/css/onyx-dark-mode-switcher-public.css/wp-content/plugins/onyx-dark-mode-switcher/public/js/onyx-dark-mode-switcher-public.js
Script Paths
/wp-content/plugins/onyx-dark-mode-switcher/admin/js/jquery-condition.js/wp-content/plugins/onyx-dark-mode-switcher/admin/js/admin.js/wp-content/plugins/onyx-dark-mode-switcher/public/js/onyx-dark-mode-switcher-public.js
Version Parameters
onyx-dark-mode-switcher/admin/css/admin.css?ver=onyx-dark-mode-switcher/admin/css/materialdesignicons.css?ver=onyx-dark-mode-switcher/admin/js/jquery-condition.js?ver=onyx-dark-mode-switcher/admin/js/admin.js?ver=onyx-dark-mode-switcher/public/css/onyx-dark-mode-switcher-public.css?ver=onyx-dark-mode-switcher/public/js/onyx-dark-mode-switcher-public.js?ver=

HTML / DOM Fingerprints

CSS Classes
onyx-alertonyx-alert-message
JS Globals
onyx_admin_obj
FAQ

Frequently Asked Questions about Onyx Dark Mode Switcher