Smush – Image Optimization, Compression, Lazy Load, WebP & CDN

Compress and optimize images, enable lazy load, serve WebP & AVIF, and speed up your site with a global image CDN.

v4.1.1WPMU DEV - Your All-in-One WordPress PlatformUpdated Added 1m+ installs96% rating100% support resolved
25
Score
252
Errors
566
Warnings
+0
Change

Category Scores

Security0
Repo100
Performance100
Maintainability0

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

818 findings

Maintainability

396

13 issue groups

Security

250

10 issue groups

I18n

124

2 issue groups

WARNINGMaintainabilityNon Prefixed Hookname FoundHook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "'wp_smush_localize_ui_script_data_' . str_replace( '-', '_', $page_slug )".159
Category
Maintainability
Occurrences
159
Severity
warning

Sample message

Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "'wp_smush_localize_ui_script_data_' . str_replace( '-', '_', $page_slug )".

ERRORI18nText Domain MismatchMismatched text domain. Expected 'wp-smushit' but got 'plugin-cross-sell-textdomain'.113
Category
I18n
Occurrences
113
Severity
error

Sample message

Mismatched text domain. Expected 'wp-smushit' but got 'plugin-cross-sell-textdomain'.

WARNINGSecurityInterpolated Not PreparedUse placeholders and $wpdb->prepare(); found interpolated variable $column at \t\t\t\tSET `$column` = '$option_key',\n85
Category
Security
Occurrences
85
Severity
warning

Sample message

Use placeholders and $wpdb->prepare(); found interpolated variable $column at \t\t\t\tSET `$column` = '$option_key',\n

WARNINGMaintainabilityDirect QueryUse of a direct database call is discouraged.57
Category
Maintainability
Occurrences
57
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().53
Category
Maintainability
Occurrences
53
Severity
warning

Sample message

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

WARNINGMaintainabilityNon Prefixed Variable FoundGlobal variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$_tests_dir".40
Category
Maintainability
Occurrences
40
Severity
warning

Sample message

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

WARNINGSecurityRecommendedProcessing form data without nonce verification.36
Category
Security
Occurrences
36
Severity
warning

Sample message

Processing form data without nonce verification.

ERRORSecurityNot PreparedUse placeholders and $wpdb->prepare(); found $mime_types29
Category
Security
Occurrences
29
Severity
error

Sample message

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

WARNINGSecurityMissingProcessing form data without nonce verification.27
Category
Security
Occurrences
27
Severity
warning

Sample message

Processing form data without nonce verification.

WARNINGSecurityInput Not SanitizedDetected usage of a non-sanitized input variable: $_GET['instance_id']22
Category
Security
Occurrences
22
Severity
warning

Sample message

Detected usage of a non-sanitized input variable: $_GET['instance_id']

Show 15 more
WARNINGMaintainabilityNon Prefixed Constant Found21
Category
Maintainability
Occurrences
21
Severity
warning

Sample message

Global constants defined by a theme/plugin should start with the theme/plugin prefix. Found: "WP_SHARED_UI_VERSION".

ERRORMaintainabilitymissing direct file access protection20
Category
Maintainability
Occurrences
20
Severity
error

Sample message

PHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;

WARNINGMaintainabilityDynamic Hookname Found16
Category
Maintainability
Occurrences
16
Severity
warning

Sample message

Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "$old_hook".

ERRORSecurityUnescaped DBParameter13
Category
Security
Occurrences
13
Severity
error

Sample message

Unescaped parameter $column used in $wpdb->query()\n$column assigned unsafely at line 154.

WARNINGSecurityUnescaped DBParameter12
Category
Security
Occurrences
12
Severity
warning

Sample message

Unescaped parameter $ignored_query used in $wpdb->get_col()\n$ignored_query assigned unsafely at line 943.

ERRORI18nMissing Translators Comment11
Category
I18n
Occurrences
11
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.

ERRORSecurityException Not Escaped10
Category
Security
Occurrences
10
Severity
error

Sample message

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$file['error']'.

ERRORSecurityOutput Not Escaped10
Category
Security
Occurrences
10
Severity
error

Sample message

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"Could not find $_tests_dir/includes/functions.php, have you run bin/install-wp-tests.sh ?"'.

WARNINGSecurityMissing Unslash6
Category
Security
Occurrences
6
Severity
warning

Sample message

$_GET['page'] not unslashed before sanitization. Use wp_unslash() or similar

ERRORMaintainabilityparse url parse url6
Category
Maintainability
Occurrences
6
Severity
error

Sample message

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

ERRORMaintainabilityfive star reviews detected6
Category
Maintainability
Occurrences
6
Severity
error

Sample message

Linking directly to 5 stars reviews is not allowed.

WARNINGMaintainabilityerror log error log5
Category
Maintainability
Occurrences
5
Severity
warning

Sample message

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

ERRORMaintainabilityunlink unlink5
Category
Maintainability
Occurrences
5
Severity
error

Sample message

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

ERRORMaintainabilityOffloaded Content4
Category
Maintainability
Occurrences
4
Severity
error

Sample message

Offloading images, js, css, and other scripts to your servers or any remote service is disallowed.

WARNINGMaintainabilityslow db query meta query4
Category
Maintainability
Occurrences
4
Severity
warning

Sample message

Detected usage of meta_query, possible slow query.

Score History

First score snapshot

v4.1.1

25

Latest

Findings
818
Errors
252
Warnings
566
Check
2.0.0

Related Plugins