Media Sweep – WordPress Media Cleaner

Clean up your WordPress Media Library by finding and removing unused files. Safely scan, preview, and sweep away orphaned media to keep your site fast …

v1.0.6WPCreatixUpdated Added 1k+ installs74% rating
37
Score
56
Errors
137
Warnings
+0
Change

Category Scores

Security0
Repo97
Performance100
Maintainability61

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

193 findings

Maintainability

98

13 issue groups

Security

90

6 issue groups

I18n

4

1 issue group

Repo Compliance

1

1 issue group

WARNINGSecurityInterpolated SQL is not preparedUse placeholders and $wpdb->prepare(); found interpolated variable $table at "SHOW TABLES LIKE '$table'"41
Category
Security
Occurrences
41
Severity
warning

Sample message

Use placeholders and $wpdb->prepare(); found interpolated variable $table at "SHOW TABLES LIKE '$table'"

WARNINGMaintainabilityDirect QueryUse of a direct database call is discouraged.39
Category
Maintainability
Occurrences
39
Severity
warning

Sample message

Use of a direct database call is discouraged.

WARNINGMaintainabilityNo CachingDirect database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().37
Category
Maintainability
Occurrences
37
Severity
warning

Sample message

Direct database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().

ERRORSecuritySQL query is not preparedUse placeholders and $wpdb->prepare(); found $query18
Category
Security
Occurrences
18
Severity
error

Sample message

Use placeholders and $wpdb->prepare(); found $query

ERRORSecurityDatabase parameter is not escapedUnescaped parameter $query used in $wpdb->get_results()\n$query used without escaping.14
Category
Security
Occurrences
14
Severity
error

Sample message

Unescaped parameter $query used in $wpdb->get_results()\n$query used without escaping.

WARNINGSecurityDatabase parameter is not escapedUnescaped parameter $table used in $wpdb->get_col()8
Category
Security
Occurrences
8
Severity
warning

Sample message

Unescaped parameter $table used in $wpdb->get_col()

ERRORSecurityException output is not escapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"Cannot resolve dependency '{$type_name}' for class '{$class}'. Make sure it's registered as a service or bound to an interface."'.7
Category
Security
Occurrences
7
Severity
error

Sample message

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"Cannot resolve dependency '{$type_name}' for class '{$class}'. Make sure it's registered as a service or bound to an interface."'.

ERRORMaintainabilityunlink unlinkunlink() is discouraged. Use wp_delete_file() to delete a file.5
Category
Maintainability
Occurrences
5
Severity
error

Sample message

unlink() is discouraged. Use wp_delete_file() to delete a file.

ERRORI18nMissing Translators CommentA function call to __() with texts containing placeholders was found, but was not accompanied by a "translators:" comment on the line above to clarify the meaning of the placeholders.4
Category
I18n
Occurrences
4
Severity
error

Sample message

A function call to __() with texts containing placeholders was found, but was not accompanied by a "translators:" comment on the line above to clarify the meaning of the placeholders.

ERRORMaintainabilitydate datedate() is affected by runtime timezone changes which can cause date/time to be incorrectly displayed. Use gmdate() instead.3
Category
Maintainability
Occurrences
3
Severity
error

Sample message

date() is affected by runtime timezone changes which can cause date/time to be incorrectly displayed. Use gmdate() instead.

Show 11 more
WARNINGMaintainabilityerror log error log3
Category
Maintainability
Occurrences
3
Severity
warning

Sample message

error_log() found. Debug code should not normally be used in production.

WARNINGSecurityUnfinished Prepare2
Category
Security
Occurrences
2
Severity
warning

Sample message

Replacement variables found, but no valid placeholders found in the query.

WARNINGMaintainabilityNon-prefixed global variable2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$site_id".

ERRORMaintainabilityfile system operations rmdir2
Category
Maintainability
Occurrences
2
Severity
error

Sample message

File operations should use WP_Filesystem methods instead of direct PHP filesystem calls. Found: rmdir().

ERRORMaintainabilityrename rename2
Category
Maintainability
Occurrences
2
Severity
error

Sample message

rename() is discouraged. Use WP_Filesystem::move() to rename a file.

WARNINGMaintainabilityDiscouraged PHP function1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

The use of function ini_set() is discouraged

ERRORMaintainabilityparse url parse url1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

parse_url() is discouraged because of inconsistency in the output across PHP versions; use wp_parse_url() instead.

WARNINGMaintainabilityNot In Footer1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

In footer ($in_footer) is not set explicitly wp_register_script; It is recommended to load scripts in the footer. Please set this value to `true` to load it in the footer, or explicitly `false` if it should be loaded in the header.

WARNINGMaintainabilitymismatched plugin name1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Plugin name "Media Sweep – WordPress Media Cleaner" is different from the name declared in plugin header "Media Sweep".

WARNINGRepo Compliancereadme parser warnings trimmed short description1
Category
Repo Compliance
Occurrences
1
Severity
warning

Sample message

The "Short Description" section is too long and was truncated. A maximum of 150 characters is supported.

WARNINGMaintainabilitytrademarked term1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

The plugin name includes a restricted term. Your chosen plugin name - "Media Sweep – WordPress Media Cleaner" - contains the restricted term "wordpress" which cannot be used at all in your plugin name.

External Connections

Potential connections found in static code analysis.

8 domains

Outbound calls

20

External assets

0

Incoming endpoints

1

Notable Domains

json-schema.org4 · outbound
wpcreatix.com2 · outbound
reactrouter.com1 · outbound

Platform / Reference Domains

w3.org7 · platform/reference
wordpress.org3 · platform/reference
github.com1 · platform/reference
gnu.org1 · platform/reference

External Asset Domains

No external asset domains detected.

Incoming Endpoints

No public endpoints detected.

Admin AJAX endpoints1
wp_ajax_mswp_dismiss_review_noticeauthenticated

wp_ajax

Score History

2 score snapshots

+0
1007550250Jun 24, 2026, 11:56 PM UTC Score 37/100 Plugin v1.0.5 Plugin Check 2.0.0 54 errors, 134 warningsJun 28, 2026, 02:28 PM UTC Score 37/100 Plugin v1.0.6 Plugin Check 2.0.0 56 errors, 137 warningsJun 24, 2026Jun 28, 2026

v1.0.6

37

Latest

Findings
193
Errors
56
Warnings
137
Check
2.0.0

v1.0.5

37

Score

Findings
188
Errors
54
Warnings
134
Check
2.0.0

Relationship Map

Author, categories, issues, domains, and nearby plugins.

32 nodes

Related Plugins

DietPress

2k+ active installs

100
Disable Lazy Load

10k+ active installs

100
Image Placeholders

60k+ active installs

100
Modern Image Formats

100k+ active installs

100
Simple Block Gallery

1k+ active installs

100