Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲2.80MB] [CPU: ▼279.53ms] 75% from 4 tests
A check of server-side resources used by LiteSpeed Cache
Please have a look at the following items
- CPU: Try to keep total CPU usage under 500.00ms (currently 624.24ms on /wp-admin/admin.php?page=litespeed-toolbox)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.94 ▲2.43 | 90.77 ▲26.56 |
Dashboard /wp-admin | 6.31 ▲2.90 | 50.82 ▲6.81 |
Posts /wp-admin/edit.php | 6.51 ▲2.86 | 62.41 ▲9.77 |
Add New Post /wp-admin/post-new.php | 10.11 ▲3.14 | 110.89 ▼1,152.66 |
Media Library /wp-admin/upload.php | 6.32 ▲3.02 | 50.28 ▲17.97 |
Toolbox /wp-admin/admin.php?page=litespeed-toolbox | 6.91 | 624.24 |
CDN /wp-admin/admin.php?page=litespeed-cdn | 6.41 | 44.65 |
Dashboard /wp-admin/admin.php?page=litespeed | 7.05 | 51.51 |
Cache /wp-admin/admin.php?page=litespeed-cache | 6.53 | 51.93 |
LiteSpeed Cache /wp-admin/options-general.php?page=litespeed-cache-options | 6.52 | 50.77 |
Page Optimization /wp-admin/admin.php?page=litespeed-page_optm | 6.61 | 53.87 |
Database /wp-admin/admin.php?page=litespeed-db_optm | 6.45 | 58.42 |
Image Optimization /wp-admin/admin.php?page=litespeed-img_optm | 6.79 | 61.77 |
Crawler /wp-admin/admin.php?page=litespeed-crawler | 6.63 | 68.36 |
General /wp-admin/admin.php?page=litespeed-general | 6.43 | 44.97 |
Server storage [IO: ▲2.81MB] [DB: ▲0.02MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
These are issues you should consider
- There were 3 files (6.18KB) illegally modified outside of "wp-content/plugins/litespeed-cache/" and "wp-content/uploads/"
- (modified) .htaccess
- (new file) .htaccess.bk
- (modified) wp-config.php
Filesystem: 271 new files
Database: 2 new tables, 196 new options
New tables |
---|
wp_litespeed_url_file |
wp_litespeed_url |
New WordPress options |
---|
litespeed.conf.img_optm-webp_attr |
litespeed.conf.debug-ips |
litespeed.conf.discuss-avatar_cache |
litespeed.conf.object-transients |
litespeed.conf.object-user |
litespeed.conf.hash |
litespeed.conf.cache-exc_cat |
litespeed.conf.media-iframe_lazy |
litespeed.conf.media-lqip_min_w |
litespeed.conf.img_optm-webp_replace_srcset |
... |
Browser metrics Passed 4 tests
Checking browser requirements for LiteSpeed Cache
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,035 ▲281 | 15.83 ▲0.32 | 8.10 ▲0.05 | 2.83 ▼0.92 |
Dashboard /wp-admin | 3,073 ▲154 | 6.48 ▲0.10 | 194.11 ▼10.02 | 202.38 ▼12.70 |
Posts /wp-admin/edit.php | 2,844 ▲123 | 3.45 ▲0.03 | 106.98 ▲13.46 | 172.79 ▼8.66 |
Add New Post /wp-admin/post-new.php | 1,746 ▲85 | 17.04 ▲1.31 | 788.78 ▲147.33 | 203.39 ▲6.35 |
Media Library /wp-admin/upload.php | 1,919 ▲189 | 5.76 ▲0.03 | 182.41 ▼7.89 | 278.12 ▲13.94 |
Toolbox /wp-admin/admin.php?page=litespeed-toolbox | 3,371 | 3.13 | 79.62 | 276.91 |
CDN /wp-admin/admin.php?page=litespeed-cdn | 1,932 | 8.93 | 449.26 | 185.50 |
Dashboard /wp-admin/admin.php?page=litespeed | 1,983 | 2.91 | 80.00 | 303.68 |
Cache /wp-admin/admin.php?page=litespeed-cache | 4,319 | 3.13 | 82.51 | 223.83 |
LiteSpeed Cache /wp-admin/options-general.php?page=litespeed-cache-options | 4,323 | 3.14 | 77.53 | 238.05 |
Page Optimization /wp-admin/admin.php?page=litespeed-page_optm | 4,046 | 3.12 | 101.47 | 248.37 |
Database /wp-admin/admin.php?page=litespeed-db_optm | 2,591 | 2.96 | 81.18 | 178.63 |
Image Optimization /wp-admin/admin.php?page=litespeed-img_optm | 2,183 | 3.09 | 77.23 | 257.48 |
Crawler /wp-admin/admin.php?page=litespeed-crawler | 2,311 | 10.85 | 374.95 | 204.74 |
General /wp-admin/admin.php?page=litespeed-general | 1,710 | 3.05 | 91.43 | 206.07 |
Uninstaller [IO: ▲0.01MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 197 options in the database
- litespeed.conf.purge-timed_urls_time
- litespeed.conf.cache-page_login
- litespeed.conf.guest_uas
- litespeed.conf.object
- litespeed.conf.optm-noscript_rm
- litespeed.conf.cdn-attr
- litespeed.conf.optm-ucss_whitelist
- litespeed.conf.media-lazy_cls_exc
- litespeed.conf.optm-js_exc
- litespeed.conf.purge-post_m
- ...
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/litespeed-cache/guest.vary.php
- > /wp-content/plugins/litespeed-cache/tpl/inc/modal.footer.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
file_get_contents(wp-content/.litespeed_conf.dat): failed to open stream: No such file or directory in /var/www/wordpress/wp-content/plugins/litespeed-cache/lib/guest.cls.php on line 31
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=litespeed-crawler
- > Console-api (warning) in wp-content/plugins/litespeed-cache/assets/js/babel.min.js?ver=4.6+23:30829
You are using the in-browser Babel transformer. Be sure to precompile your scripts for production - https://babeljs.io/docs/setup/
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
litespeed-cache/litespeed-cache.php Passed 13 tests
The main file in "LiteSpeed Cache" v. 4.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
66 characters long description:
High-performance page caching and site optimization from LiteSpeed
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected32,898 lines of code in 248 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 185 | 6,118 | 9,846 | 26,570 |
CSS | 3 | 695 | 126 | 2,800 |
JavaScript | 21 | 249 | 182 | 1,820 |
SVG | 30 | 14 | 29 | 1,253 |
INI | 2 | 275 | 189 | 395 |
SQL | 7 | 0 | 0 | 60 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 45.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 209.00 |
Average method complexity | 4.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 63.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 86 | |
▷ Abstract classes | 2 | 2.33% |
▷ Concrete classes | 84 | 97.67% |
▷ Final classes | 0 | 0.00% |
Methods | 1,016 | |
▷ Static methods | 291 | 28.64% |
▷ Public methods | 735 | 72.34% |
▷ Protected methods | 42 | 4.13% |
▷ Private methods | 239 | 23.52% |
Functions | 49 | |
▷ Named functions | 30 | 61.22% |
▷ Anonymous functions | 19 | 38.78% |
Constants | 617 | |
▷ Global constants | 80 | 12.97% |
▷ Class constants | 537 | 87.03% |
▷ Public constants | 537 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/slack-logo.png | 1.18KB | 1.21KB | 0.00% |
assets/img/lscwp-logo_90x90.png | 1.64KB | 1.70KB | 0.00% |