Cleanup Orphan Images Security & Risk Analysis

wordpress.org/plugins/cleanup-orphan-images

Finds and deletes orphan media files from the uploads directory that are not registered in WordPress.

20 active installs v1.8.0 PHP 7.4+ WP 5.0+ Updated Jan 7, 2026
cleanupfilesimagesmediaorphan
100
A · Safe
CVEs total0
Unpatched0
Last CVENever
Download
Safety Verdict

Is Cleanup Orphan Images Safe to Use in 2026?

Generally Safe

Score 100/100

Cleanup Orphan Images 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 cleanup-orphan-images plugin v1.8.0 exhibits a generally good security posture, adhering to several best practices. The static analysis reveals no critical vulnerabilities such as dangerous functions, unsanitized paths in taint analysis, or file operations that could be exploited. The plugin also correctly escapes all output and implements nonce and capability checks on its entry points, indicating a deliberate effort to prevent common WordPress security issues. The absence of any recorded CVEs in its history further suggests a commitment to security or simply a lack of past exploitation. However, a significant concern arises from the plugin's handling of SQL queries, where 100% are executed without prepared statements. This is a substantial risk that could lead to SQL injection vulnerabilities, especially if user input is directly incorporated into these queries without proper sanitization. While the plugin demonstrates strengths in output escaping and authorization checks, the lack of prepared statements for all SQL queries is a critical weakness that requires immediate attention.

Key Concerns

  • 100% of SQL queries use raw SQL
Vulnerabilities
None known

Cleanup Orphan Images Security Vulnerabilities

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

Cleanup Orphan Images Code Analysis

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

SQL Query Safety

0% prepared2 total queries

Output Escaping

100% escaped23 total outputs
Data Flows
All sanitized

Data Flow Analysis

2 flows
display_admin_page (cleanup-orphan-images.php:151)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface

Cleanup Orphan Images Attack Surface

Entry Points1
Unprotected0

AJAX Handlers 1

authwp_ajax_cleanup_images_delete_orphans_ajaxcleanup-orphan-images.php:61
WordPress Hooks 3
actionadmin_menucleanup-orphan-images.php:59
actionadmin_post_cleanup_images_delete_orphanscleanup-orphan-images.php:60
actionadmin_enqueue_scriptscleanup-orphan-images.php:62
Maintenance & Trust

Cleanup Orphan Images Maintenance & Trust

Maintenance Signals

WordPress version tested6.9.4
Last updatedJan 7, 2026
PHP min version7.4
Downloads294

Community Trust

Rating100/100
Number of ratings1
Active installs20
Developer Profile

Cleanup Orphan Images Developer Profile

DimitriAus

2 plugins · 20 total installs

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

How We Detect Cleanup Orphan Images

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/cleanup-orphan-images/admin.js
Script Paths
admin.js

HTML / DOM Fingerprints

CSS Classes
orphan-scanner-wrap
HTML Comments
<!-- phpcs:ignore WordPress.Files.FileName.InvalidClassFileName --><!-- Exit if accessed directly. --><!-- Add Settings link on Plugins page. --><!-- phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Read-only notice display, no state change. -->+5 more
Data Attributes
name="orphan_files_to_delete[]"id="cb-select-all-orphans"
JS Globals
cleanup_images
FAQ

Frequently Asked Questions about Cleanup Orphan Images