Prevent Users From Deleting Post and Pages Security & Risk Analysis

wordpress.org/plugins/prevent-users-from-deleting-pages-posts-custom-post-types

This plugin prevents users from deleting pages, posts and custom post types.

30 active installs v0.3 PHP + WP 3.0+ Updated Aug 17, 2015
deletedisabledisable-deleterestrict-deleteusers
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Download
Safety Verdict

Is Prevent Users From Deleting Post and Pages Safe to Use in 2026?

Generally Safe

Score 85/100

Prevent Users From Deleting Post and Pages has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 10yr ago
Risk Assessment

The plugin 'prevent-users-from-deleting-pages-posts-custom-post-types' v0.3 demonstrates a strong adherence to several security best practices. The static analysis reveals a remarkably small attack surface, with no AJAX handlers, REST API routes, shortcodes, or cron events exposed. This significantly reduces the potential entry points for attackers. Furthermore, all observed SQL queries utilize prepared statements, mitigating the risk of SQL injection vulnerabilities. The plugin also correctly uses capability checks for its operations.

However, a significant concern arises from the complete lack of output escaping. With 15 total outputs analyzed and 0% properly escaped, this creates a high risk of Cross-Site Scripting (XSS) vulnerabilities. Attackers could potentially inject malicious scripts through user-controlled data that is then displayed on the site. The absence of nonce checks on any entry points, while the attack surface is zero, would be a concern if the attack surface were larger.

The plugin's vulnerability history is clean, with no recorded CVEs. This, combined with the generally good code practices observed, suggests a developer who is aware of security. Despite this positive history, the critical flaw in output escaping cannot be overlooked. In conclusion, while the plugin has a solid foundation in terms of attack surface and SQL security, the unescaped output presents a serious security risk that needs immediate attention.

Key Concerns

  • 0% of outputs properly escaped
  • No nonce checks found
Vulnerabilities
None known

Prevent Users From Deleting Post and Pages Security Vulnerabilities

No known vulnerabilities — this is a good sign.
Version History

Prevent Users From Deleting Post and Pages Release Timeline

v0.3Current
v0.2
v0.1
Code Analysis
Analyzed Mar 16, 2026

Prevent Users From Deleting Post and Pages Code Analysis

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

Output Escaping

0% escaped15 total outputs
Attack Surface

Prevent Users From Deleting Post and Pages Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 6
actionadmin_menuindex.php:11
actionadmin_initindex.php:19
actionwp_trash_postindex.php:243
actionbefore_delete_postindex.php:244
actionadmin_footerindex.php:363
actionadmin_noticesindex.php:405
Maintenance & Trust

Prevent Users From Deleting Post and Pages Maintenance & Trust

Maintenance Signals

WordPress version tested4.2.39
Last updatedAug 17, 2015
PHP min version
Downloads2K

Community Trust

Rating60/100
Number of ratings2
Active installs30
Developer Profile

Prevent Users From Deleting Post and Pages Developer Profile

Ravi Shakya

3 plugins · 50 total installs

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

How We Detect Prevent Users From Deleting Post and Pages

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

Asset Fingerprints

HTML / DOM Fingerprints

CSS Classes
admin_disable_noticeselect_allunselect_all
JS Globals
jQuery$
FAQ

Frequently Asked Questions about Prevent Users From Deleting Post and Pages