LWS Optimize – All-in-One Speed Booster & Cache Tools

All-in-one speed optimization: caching, WebP/AVIF, Critical CSS, lazy loading, CDN, and more. Instantly boost Core Web Vitals and site speed!

v4.0Aurélien LWSUpdated Added 20k+ installs92% rating
25
Score
430
Errors
764
Warnings
+0
Change

Category Scores

Security0
Repo100
Performance100
Maintainability0

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

1,194 findings

Maintainability

808

19 issue groups

Security

318

6 issue groups

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

Sample message

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

ERRORSecurityOutput Not EscapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"\n<style id=\"lwsop-critical-css\" data-hash=\"$hash\">"'.96
Category
Security
Occurrences
96
Severity
error

Sample message

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"\n<style id=\"lwsop-critical-css\" data-hash=\"$hash\">"'.

WARNINGSecurityMissing Unslash$_GET[&#039;page&#039;] not unslashed before sanitization. Use wp_unslash() or similar88
Category
Security
Occurrences
88
Severity
warning

Sample message

$_GET[&#039;page&#039;] not unslashed before sanitization. Use wp_unslash() or similar

ERRORMaintainabilityfile system operations fwriteFile operations should use WP_Filesystem methods instead of direct PHP filesystem calls. Found: fwrite().79
Category
Maintainability
Occurrences
79
Severity
error

Sample message

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

WARNINGSecurityInput Not SanitizedDetected usage of a non-sanitized input variable: $_ENV[&#039;lwscache&#039;]74
Category
Security
Occurrences
74
Severity
warning

Sample message

Detected usage of a non-sanitized input variable: $_ENV[&#039;lwscache&#039;]

WARNINGMaintainabilityerror log error logerror_log() found. Debug code should not normally be used in production.67
Category
Maintainability
Occurrences
67
Severity
warning

Sample message

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

ERRORMaintainabilityfile system operations fcloseFile operations should use WP_Filesystem methods instead of direct PHP filesystem calls. Found: fclose().61
Category
Maintainability
Occurrences
61
Severity
error

Sample message

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

ERRORMaintainabilityfile system operations fopenFile operations should use WP_Filesystem methods instead of direct PHP filesystem calls. Found: fopen().46
Category
Maintainability
Occurrences
46
Severity
error

Sample message

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

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

Sample message

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

WARNINGMaintainabilityNon Prefixed Hookname FoundHook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: &quot;active_plugins&quot;.22
Category
Maintainability
Occurrences
22
Severity
warning

Sample message

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

Show 15 more
WARNINGMaintainabilityNon Prefixed Namespace Found22
Category
Maintainability
Occurrences
22
Severity
warning

Sample message

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

WARNINGSecurityRecommended22
Category
Security
Occurrences
22
Severity
warning

Sample message

Processing form data without nonce verification.

ERRORMaintainabilityparse url parse url22
Category
Maintainability
Occurrences
22
Severity
error

Sample message

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

WARNINGMaintainabilityNon Prefixed Function Found17
Category
Maintainability
Occurrences
17
Severity
warning

Sample message

Functions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: &quot;lws_optimize_activation_callback&quot;.

ERRORMaintainabilitymissing direct file access protection16
Category
Maintainability
Occurrences
16
Severity
error

Sample message

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

ERRORMaintainabilityfile system operations mkdir11
Category
Maintainability
Occurrences
11
Severity
error

Sample message

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

ERRORMaintainabilityNon Enqueued Stylesheet10
Category
Maintainability
Occurrences
10
Severity
error

Sample message

Stylesheets must be registered/enqueued via wp_enqueue_style()

WARNINGMaintainabilityDirect Query9
Category
Maintainability
Occurrences
9
Severity
warning

Sample message

Use of a direct database call is discouraged.

WARNINGMaintainabilityNo Caching9
Category
Maintainability
Occurrences
9
Severity
warning

Sample message

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

ERRORSecurityUnsafe Printing Function9
Category
Security
Occurrences
9
Severity
error

Sample message

All output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'.

ERRORMaintainabilitycurl curl setopt9
Category
Maintainability
Occurrences
9
Severity
error

Sample message

Using cURL functions is highly discouraged. Use wp_remote_get() instead.

ERRORMaintainabilityfile system operations touch9
Category
Maintainability
Occurrences
9
Severity
error

Sample message

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

WARNINGMaintainabilityABSPATHDetected8
Category
Maintainability
Occurrences
8
Severity
warning

Sample message

Writing files using ABSPATH may be problematic. Consider using wp_upload_dir() instead if storing user data or generated files.

ERRORMaintainabilityfile system operations chmod8
Category
Maintainability
Occurrences
8
Severity
error

Sample message

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

WARNINGMaintainabilityMissing Version8
Category
Maintainability
Occurrences
8
Severity
warning

Sample message

Resource version not set in call to wp_enqueue_script(). This means new versions of the script may not always be loaded due to browser caching.

Score History

First score snapshot

v4.0

25

Latest

Findings
1,194
Errors
430
Warnings
764
Check
2.0.0

Related Plugins

Disable Lazy Load

10k+ active installs

100
Modern Image Formats

100k+ active installs

100
SQLite Object Cache

9k+ active installs

99
Cachebuster

1k+ active installs

98