Optimize images & PDFs smartly. Create and compress next-gen WebP and AVIF formats. Smart crop and resize.
Category Scores
Issues to Review
Prioritized issue groups from the latest Plugin Check scan
Security
826
9 issue groups
Maintainability
572
11 issue groups
I18n
385
5 issue groups
WARNINGMaintainabilityNon Prefixed Variable FoundGlobal variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$actionName".290
- Category
- Maintainability
- Occurrences
- 290
- Severity
- warning
Sample message
Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$actionName".
ERRORSecurityUnsafe Printing FunctionAll output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'.184
- Category
- Security
- Occurrences
- 184
- Severity
- error
Sample message
All output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'.
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.168
- Category
- I18n
- Occurrences
- 168
- 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.
ERRORSecurityOutput Not EscapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"' $selected >"'.163
- Category
- Security
- Occurrences
- 163
- Severity
- error
Sample message
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"' $selected >"'.
ERRORSecurityNot PreparedUse placeholders and $wpdb->prepare(); found $delete_sql139
- Category
- Security
- Occurrences
- 139
- Severity
- error
Sample message
Use placeholders and $wpdb->prepare(); found $delete_sql
WARNINGSecurityMissingProcessing form data without nonce verification.120
- Category
- Security
- Occurrences
- 120
- Severity
- warning
Sample message
Processing form data without nonce verification.
ERRORI18nUnordered Placeholders TextMultiple placeholders in translatable strings should be ordered. Expected "%1$d, %2$d", but got "%d, %d" in 'Optimizing - Item has been sent to ShortPixel (%d/%d)'.98
- Category
- I18n
- Occurrences
- 98
- Severity
- error
Sample message
Multiple placeholders in translatable strings should be ordered. Expected "%1$d, %2$d", but got "%d, %d" in 'Optimizing - Item has been sent to ShortPixel (%d/%d)'.
WARNINGMaintainabilityDirect QueryUse of a direct database call is discouraged.96
- Category
- Maintainability
- Occurrences
- 96
- 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().92
- Category
- Maintainability
- Occurrences
- 92
- Severity
- warning
Sample message
Direct database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().
ERRORSecurityUnescaped DBParameterUnescaped parameter $delete_sql used in $wpdb->query()\n$delete_sql assigned unsafely at line 489.75
- Category
- Security
- Occurrences
- 75
- Severity
- error
Sample message
Unescaped parameter $delete_sql used in $wpdb->query()\n$delete_sql assigned unsafely at line 489.
Show 15 moreShow less
ERRORI18nMissing Arg Domain73
- Category
- I18n
- Occurrences
- 73
- Severity
- error
Sample message
Missing $domain parameter in function call to __().
WARNINGSecurityMissing Unslash71
- Category
- Security
- Occurrences
- 71
- Severity
- warning
Sample message
$_GET['SHORTPIXEL_DEBUG'] not unslashed before sanitization. Use wp_unslash() or similar
WARNINGSecurityRecommended39
- Category
- Security
- Occurrences
- 39
- Severity
- warning
Sample message
Processing form data without nonce verification.
ERRORI18nText Domain Mismatch33
- Category
- I18n
- Occurrences
- 33
- Severity
- error
Sample message
Mismatched text domain. Expected 'shortpixel-image-optimiser' but got 'enable-media-replace'.
WARNINGSecurityInput Not Validated22
- Category
- Security
- Occurrences
- 22
- Severity
- warning
Sample message
Detected usage of a possibly undefined superglobal array index: $_GET['SHORTPIXEL_DEBUG']. Check that the array index exists before using it.
WARNINGMaintainabilityerror log var export20
- Category
- Maintainability
- Occurrences
- 20
- Severity
- warning
Sample message
var_export() found. Debug code should not normally be used in production.
ERRORMaintainabilityparse url parse url19
- Category
- Maintainability
- Occurrences
- 19
- Severity
- error
Sample message
parse_url() is discouraged because of inconsistency in the output across PHP versions; use wp_parse_url() instead.
ERRORMaintainabilitybadly named files14
- Category
- Maintainability
- Occurrences
- 14
- Severity
- error
Sample message
File and folder names must not contain spaces or special characters.
WARNINGSecurityInput Not Sanitized13
- Category
- Security
- Occurrences
- 13
- Severity
- warning
Sample message
Detected usage of a non-sanitized input variable: $_GET["s"]
ERRORI18nNon Singular String Literal Text13
- Category
- I18n
- Occurrences
- 13
- Severity
- error
Sample message
The $text parameter must be a single text string literal. Found: "You add an average of %s %d images and thumbnails %s to your Media Library every month and you have <strong>a plan of %d images/month (and %d one-time images)</strong>.%s"\n . " You may need to upgrade your plan to have all your images optimized."
WARNINGMaintainabilityerror log print r10
- Category
- Maintainability
- Occurrences
- 10
- Severity
- warning
Sample message
print_r() found. Debug code should not normally be used in production.
ERRORMaintainabilitywp function not compatible with requires wp10
- Category
- Maintainability
- Occurrences
- 10
- Severity
- error
Sample message
Function "get_post_parent()" requires WordPress 5.7.0, but your plugin minimum supported version is WordPress 4.8.0.
ERRORMaintainabilitycurl curl setopt9
- Category
- Maintainability
- Occurrences
- 9
- Severity
- error
Sample message
Using cURL functions is highly discouraged. Use wp_remote_get() instead.
WARNINGMaintainabilityNon Prefixed Hookname Found8
- Category
- Maintainability
- Occurrences
- 8
- Severity
- warning
Sample message
Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "active_plugins".
ERRORMaintainabilitydate date4
- Category
- Maintainability
- Occurrences
- 4
- Severity
- error
Sample message
date() is affected by runtime timezone changes which can cause date/time to be incorrectly displayed. Use gmdate() instead.
Score History
First score snapshot
v6.5.2
22
Latest
- Findings
- 1,843
- Errors
- 1,044
- Warnings
- 799
- Check
- 2.0.0
| Scan | Score | Findings | Errors | Warnings | Plugin | Check |
|---|---|---|---|---|---|---|
| Latest | 22 | 1,843 | 1,044 | 799 | v6.5.2 | 2.0.0 |