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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.44ms] Passed 4 tests
This is a short check of server-side resources used by LH CSS Lazy Load
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.61 ▼2.75 |
Dashboard /wp-admin | 3.33 ▲0.03 | 47.12 ▼0.78 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 47.25 ▼4.59 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 94.80 ▼8.94 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.25 ▼1.48 |
CSS Lazy Load /wp-admin/options-general.php?page=lh-css-lazy-load/lh-css-lazy-load.php | 3.22 | 30.75 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for LH CSS Lazy Load
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲73 | 13.32 ▼1.26 | 4.44 ▲2.55 | 41.24 ▲1.56 |
Dashboard /wp-admin | 2,210 ▲22 | 4.86 ▼0.19 | 107.55 ▼9.75 | 37.12 ▼4.93 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.00 | 40.66 ▼2.25 | 35.98 ▲0.49 |
Add New Post /wp-admin/post-new.php | 1,517 ▼17 | 17.68 ▼5.46 | 662.08 ▼20.93 | 51.25 ▼25.90 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.15 ▼0.16 | 99.19 ▼0.75 | 43.41 ▼0.09 |
CSS Lazy Load /wp-admin/options-general.php?page=lh-css-lazy-load/lh-css-lazy-load.php | 773 | 2.05 | 24.29 | 26.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=lh-css-lazy-load/lh-css-lazy-load.php
- > Notice in wp-content/plugins/lh-css-lazy-load/partials/options-general.php+8
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=lh-css-lazy-load/lh-css-lazy-load.php
- > Warning in wp-content/plugins/lh-css-lazy-load/partials/options-general.php+8
implode(): Invalid arguments passed
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/lh-css-lazy-load/partials/settings.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/lh-css-lazy-load/partials/options-general.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: lazy load, css, defer, async, javascript
lh-css-lazy-load/lh-css-lazy-load.php 92% from 13 tests
The main file in "LH CSS Lazy Load" v. 1.02 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin156 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 137 | 38 | 144 |
JavaScript | 1 | 20 | 0 | 12 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 24.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 1 | 9.09% |
▷ Public methods | 8 | 72.73% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 27.27% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
There were not PNG files found in your plugin