Turn Off REST API Security & Risk Analysis

wordpress.org/plugins/turn-off-rest-api

Prevents unauthorized requests from using the WP REST API.

100 active installs v1.0.4 PHP + WP 4.7+ Updated Jul 1, 2020
adminapidisable-rest-apijsonrest
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Turn Off REST API Safe to Use in 2026?

Generally Safe

Score 85/100

Turn Off REST API has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 5yr ago
Risk Assessment

The "turn-off-rest-api" plugin v1.0.4 demonstrates a strong security posture based on the provided static analysis. There are no identified entry points that are unprotected, meaning common web attack vectors like SQL injection or cross-site scripting through direct access points are not immediately apparent. The code signals are generally positive, with all SQL queries using prepared statements, a robust nonce check, and a capability check in place. Furthermore, the absence of dangerous functions, file operations, and external HTTP requests significantly reduces the potential attack surface. The taint analysis shows no flows with unsanitized paths, indicating a good effort to handle data securely within the analyzed code paths.

However, it's important to note that the analysis does not cover every possible execution path or interaction with other plugins or the WordPress core. While the reported metrics are excellent, the small number of analyzed taint flows (2) and outputs (7) might suggest a limited scope of the analysis or a very simple plugin. The lack of any recorded vulnerabilities in its history is a significant strength, suggesting a well-maintained and secure plugin over time. Overall, this plugin appears to be very secure based on the provided data, with no immediate red flags or exploitable issues.

Vulnerabilities
None known

Turn Off REST API Security Vulnerabilities

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

Turn Off REST API Code Analysis

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

Output Escaping

71% escaped7 total outputs
Data Flows
All sanitized

Data Flow Analysis

2 flows
admin_save_settings (turn-off-rest-api.php:236)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface

Turn Off REST API Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 8
actioninitturn-off-rest-api.php:80
actionadmin_menuturn-off-rest-api.php:81
actionadmin_enqueue_scriptsturn-off-rest-api.php:82
filterrest_authentication_errorsturn-off-rest-api.php:102
filterjson_enabledturn-off-rest-api.php:105
filterjson_jsonp_enabledturn-off-rest-api.php:106
filterrest_enabledturn-off-rest-api.php:108
filterrest_jsonp_enabledturn-off-rest-api.php:109
Maintenance & Trust

Turn Off REST API Maintenance & Trust

Maintenance Signals

WordPress version tested5.4.19
Last updatedJul 1, 2020
PHP min version
Downloads2K

Community Trust

Rating0/100
Number of ratings0
Active installs100
Developer Profile

Turn Off REST API Developer Profile

ksym04

3 plugins · 1K total installs

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

How We Detect Turn Off REST API

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/turn-off-rest-api/assets/css/style.css/wp-content/plugins/turn-off-rest-api/assets/js/script.js
Script Paths
/wp-content/plugins/turn-off-rest-api/assets/js/script.js
Version Parameters
turn-off-rest-api/assets/css/style.css?ver=turn-off-rest-api/assets/js/script.js?ver=

HTML / DOM Fingerprints

FAQ

Frequently Asked Questions about Turn Off REST API