ShortPixel Adaptive Images – WebP, AVIF, CDN, Image Optimization

Start serving properly sized, smart cropped & optimized images, plus CSS, JS and fonts from our CDN with a click; Automatic AVIF & WebP support.

v3.11.5ShortPixelUpdated Added 10k+ installs96% rating
24
Score
926
Errors
322
Warnings
+0
Change

Category Scores

Security0
Repo94
Performance100
Maintainability0

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

1,248 findings

Maintainability

577

13 issue groups

Security

552

8 issue groups

I18n

74

4 issue groups

ERRORSecurityOutput Not EscapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$api_key'.382
Category
Security
Occurrences
382
Severity
error

Sample message

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

ERRORMaintainabilityEcho FoundShort PHP opening tag used with echo; expected "<?php echo ! ..." but found "<?= ! ..."378
Category
Maintainability
Occurrences
378
Severity
error

Sample message

Short PHP opening tag used with echo; expected "<?php echo ! ..." but found "<?= ! ..."

WARNINGMaintainabilityNon Prefixed Variable FoundGlobal variables defined by a theme/plugin should start with the theme/plugin prefix. Found: &quot;$account&quot;.107
Category
Maintainability
Occurrences
107
Severity
warning

Sample message

Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: &quot;$account&quot;.

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.44
Category
I18n
Occurrences
44
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.

WARNINGSecurityInput Not SanitizedDetected usage of a non-sanitized input variable: $_COOKIE[&#039;shortpixel-ai-front-worker&#039;]38
Category
Security
Occurrences
38
Severity
warning

Sample message

Detected usage of a non-sanitized input variable: $_COOKIE[&#039;shortpixel-ai-front-worker&#039;]

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

Sample message

Processing form data without nonce verification.

ERRORMaintainabilityparse url parse urlparse_url() is discouraged because of inconsistency in the output across PHP versions; use wp_parse_url() instead.33
Category
Maintainability
Occurrences
33
Severity
error

Sample message

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

WARNINGSecurityMissing Unslash$_COOKIE[&#039;shortpixel-ai-front-worker&#039;] not unslashed before sanitization. Use wp_unslash() or similar32
Category
Security
Occurrences
32
Severity
warning

Sample message

$_COOKIE[&#039;shortpixel-ai-front-worker&#039;] not unslashed before sanitization. Use wp_unslash() or similar

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

Sample message

Processing form data without nonce verification.

WARNINGSecurityInput Not ValidatedDetected usage of a possibly undefined superglobal array index: $_FILES[&#039;import_settings_file&#039;][&quot;tmp_name&quot;]. Check that the array index exists before using it.24
Category
Security
Occurrences
24
Severity
warning

Sample message

Detected usage of a possibly undefined superglobal array index: $_FILES[&#039;import_settings_file&#039;][&quot;tmp_name&quot;]. Check that the array index exists before using it.

Show 15 more
ERRORI18nUnordered Placeholders Text18
Category
I18n
Occurrences
18
Severity
error

Sample message

Multiple placeholders in translatable strings should be ordered. Expected "%1$s, %2$s", but got "%s, %s" in '%s I\'ve just instantly optimized all of the images from my website with the ShortPixel Adaptive Images plugin. Truly a magical experience! Check it out %s'.

ERRORMaintainabilitybadly named files12
Category
Maintainability
Occurrences
12
Severity
error

Sample message

File and folder names must not contain spaces or special characters.

WARNINGMaintainabilityNon Prefixed Class Found9
Category
Maintainability
Occurrences
9
Severity
warning

Sample message

Classes declared by a theme/plugin should start with the theme/plugin prefix. Found: &quot;ShortPixelCLI&quot;.

WARNINGMaintainabilityNon Prefixed Hookname Found7
Category
Maintainability
Occurrences
7
Severity
warning

Sample message

Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: &quot;active_plugins&quot;.

WARNINGSecurityInput Not Validated Not Sanitized6
Category
Security
Occurrences
6
Severity
warning

Sample message

Detected usage of a non-sanitized, non-validated input variable _SERVER: &quot;://{$_SERVER[&#039;HTTP_HOST&#039;]}{$_SERVER[&#039;REQUEST_URI&#039;]}&quot;

ERRORMaintainabilityfile system operations rmdir6
Category
Maintainability
Occurrences
6
Severity
error

Sample message

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

ERRORI18nMissing Arg Domain6
Category
I18n
Occurrences
6
Severity
error

Sample message

Missing $domain parameter in function call to __().

ERRORI18nNon Singular String Literal Text6
Category
I18n
Occurrences
6
Severity
error

Sample message

The $text parameter must be a single text string literal. Found: 'Error occurred: ' . $response->get_error_message()

ERRORMaintainabilitymissing direct file access protection6
Category
Maintainability
Occurrences
6
Severity
error

Sample message

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

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.

WARNINGMaintainabilityerror log var export4
Category
Maintainability
Occurrences
4
Severity
warning

Sample message

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

ERRORSecurityException Not Escaped4
Category
Security
Occurrences
4
Severity
error

Sample message

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

ERRORMaintainabilityfile system operations fclose4
Category
Maintainability
Occurrences
4
Severity
error

Sample message

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

ERRORMaintainabilityfile system operations fopen4
Category
Maintainability
Occurrences
4
Severity
error

Sample message

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

WARNINGMaintainabilityDiscouraged3
Category
Maintainability
Occurrences
3
Severity
warning

Sample message

The use of function ini_set() is discouraged

Score History

First score snapshot

v3.11.5

24

Latest

Findings
1,248
Errors
926
Warnings
322
Check
2.0.0

Related Plugins

Disable Lazy Load

10k+ active installs

100
Modern Image Formats

100k+ active installs

100
99
Lazy Load for Comments

2k+ active installs

99
Add class to Elementor Image

1k+ active installs

98
Lazy Load

10k+ active installs

98