Simple On/Off Switch Security & Risk Analysis

wordpress.org/plugins/simple-onoff-switch

Adds a dashboard widget with a on/off switch that returns "on" or "off" value with a shortcode. Shortcode is [simpleswitch]

10 active installs v1.2 PHP + WP 3.5+ Updated Apr 16, 2013
admindashboardselectswitchwidgets
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Simple On/Off Switch Safe to Use in 2026?

Generally Safe

Score 85/100

Simple On/Off Switch 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 "simple-onoff-switch" v1.2 plugin exhibits a mixed security posture. On the positive side, there are no known CVEs in its history, and the code analysis indicates a complete absence of dangerous functions, raw SQL queries, file operations, and external HTTP requests. Furthermore, all SQL queries utilize prepared statements, which is a strong security practice. However, significant concerns arise from the taint analysis and output escaping. All analyzed taint flows have unsanitized paths, indicating a potential for data to be mishandled, though thankfully no critical or high severity issues were flagged in this area.

The most prominent weakness identified is the complete lack of output escaping across all six identified output points. This leaves the plugin highly susceptible to Cross-Site Scripting (XSS) vulnerabilities, where user-supplied data, if present, could be injected into the page and executed by the user's browser. The absence of nonce checks and capability checks on the identified entry point (a single shortcode) is also a notable concern, potentially allowing unauthorized users to trigger plugin functionality.

Key Concerns

  • Unescaped output on all identified outputs
  • Taint flows with unsanitized paths
  • Missing nonce checks
  • Missing capability checks
Vulnerabilities
None known

Simple On/Off Switch Security Vulnerabilities

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

Simple On/Off Switch Code Analysis

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

Output Escaping

0% escaped6 total outputs
Data Flows
5 unsanitized

Data Flow Analysis

5 flows5 with unsanitized paths
simpleonoffswitch_form (simple-on-off-switch.php:33)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface

Simple On/Off Switch Attack Surface

Entry Points1
Unprotected0

Shortcodes 1

[simpleswitch] simple-on-off-switch.php:92
WordPress Hooks 1
actionwp_dashboard_setupsimple-on-off-switch.php:100
Maintenance & Trust

Simple On/Off Switch Maintenance & Trust

Maintenance Signals

WordPress version tested3.5.2
Last updatedApr 16, 2013
PHP min version
Downloads3K

Community Trust

Rating100/100
Number of ratings1
Active installs10
Developer Profile

Simple On/Off Switch Developer Profile

mattbeekler

1 plugin · 10 total installs

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

How We Detect Simple On/Off Switch

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

Asset Fingerprints

HTML / DOM Fingerprints

CSS Classes
button-primary
Shortcode Output
[simpleswitch]
FAQ

Frequently Asked Questions about Simple On/Off Switch