Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.24MB] [CPU: ▼7.04ms] Passed 4 tests
A check of server-side resources used by LWS Cleaner
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 39.70 ▼0.80 |
Dashboard /wp-admin | 3.54 ▲0.24 | 47.57 ▲0.26 |
Posts /wp-admin/edit.php | 3.65 ▲0.30 | 44.13 ▼9.12 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.24 | 84.48 ▼18.49 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 36.34 ▲2.56 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 98 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_lws_cl_ignore |
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for LWS Cleaner
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,860 ▲125 | 13.36 ▼1.22 | 4.80 ▲2.99 | 40.27 ▼4.70 |
Dashboard /wp-admin | 2,269 ▲78 | 5.85 ▲0.95 | 97.82 ▼2.52 | 73.77 ▲31.56 |
Posts /wp-admin/edit.php | 2,149 ▲57 | 2.01 ▼0.04 | 34.60 ▼8.92 | 37.45 ▲2.49 |
Add New Post /wp-admin/post-new.php | 1,573 ▲59 | 23.04 ▲5.35 | 685.42 ▲74.00 | 59.95 ▲11.71 |
Media Library /wp-admin/upload.php | 1,451 ▲69 | 4.09 ▼0.15 | 98.11 ▼1.88 | 88.22 ▲46.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/lws-cleaner/views/lws_cl_main_pages.php
- 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/lws-cleaner/views/lws_cl_form_ignore_media.php:3
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/lws-cleaner/views/lws_cl_main_pages.php on line 2
- > PHP Notice
Undefined variable: plugin_lists in wp-content/plugins/lws-cleaner/views/lws_cl_main_pages.php on line 2
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/lws-cleaner/views/lws_cl_main_pages.php on line 82
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/lws-cleaner/views/lws_cl_tabs.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/lws-cleaner/views/lws_cl_form_delete_media.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/lws-cleaner/views/lws_cl_files.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/lws-cleaner/views/lws_cl_medias.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/lws-cleaner/views/lws_cl_form_unignore_media.php:2
- > PHP Notice
Undefined variable: plugin_lists in wp-content/plugins/lws-cleaner/views/lws_cl_main_pages.php on line 82
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
3 plugin tags: optimisation, lws, cleaning
lws-cleaner/lws-cleaner.php Passed 13 tests
Analyzing the main PHP file in "LWS Cleaner" version 2.4
138 characters long description:
With LWS Cleaner, clean your website, it's fast and easy. Clean your posts, comments, terms, users or even unused medias with this plugin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin5,038 lines of code in 83 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 247 | 212 | 2,163 |
SVG | 71 | 4 | 66 | 1,393 |
CSS | 2 | 187 | 72 | 1,116 |
PO File | 1 | 177 | 183 | 366 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 8.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 82.61% |
▷ Protected methods | 4 | 17.39% |
▷ Private methods | 0 | 0.00% |
Functions | 29 | |
▷ Named functions | 29 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon-256x256.png | 36.35KB | 9.15KB | ▼ 74.82% |
images/logo.png | 1.66KB | 1.64KB | ▼ 1.18% |
images/logo_lws.png | 7.05KB | 3.16KB | ▼ 55.23% |