Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.13MB] [CPU: ▼3.87ms] Passed 4 tests
Analyzing server-side resources used by a3 Lazy Load
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 46.67 ▲4.87 |
Dashboard /wp-admin | 3.47 ▲0.13 | 48.05 ▼16.68 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 47.84 ▲2.85 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 85.29 ▼3.97 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 34.31 ▲2.32 |
a3 Lazy Load /wp-admin/options-general.php?page=a3-lazy-load | 3.38 | 48.05 |
Server storage [IO: ▲2.20MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 162 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
a3_lazy_load_clean_on_deletion |
a3_lazy_load_global_settings |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
a3_lazy_load_version |
Browser metrics Passed 4 tests
Checking browser requirements for a3 Lazy Load
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,898 ▲147 | 13.50 ▼1.21 | 14.78 ▲12.75 | 42.05 ▼1.71 |
Dashboard /wp-admin | 2,200 ▲23 | 5.65 ▼0.01 | 96.79 ▼1.82 | 41.31 ▼5.71 |
Posts /wp-admin/edit.php | 2,105 ▲2 | 1.95 ▼0.05 | 40.66 ▲2.09 | 36.94 ▼0.04 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.49 ▲0.31 | 680.78 ▲36.82 | 55.88 ▲0.69 |
Media Library /wp-admin/upload.php | 1,408 ▲5 | 4.18 ▼0.02 | 94.58 ▼7.37 | 42.61 ▲0.74 |
a3 Lazy Load /wp-admin/options-general.php?page=a3-lazy-load | 3,506 | 4.70 | 124.68 | 124.42 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 9 options
- a3_lazy_load_global_settings
- widget_recent-comments
- a3_lazy_load_version
- can_compress_scripts
- a3_lazy_load_clean_on_deletion
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/a3-lazy-load/includes/customized_style.php
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/a3-lazy-load/a3-lazy-load.php:24
- > PHP Notice
Undefined index: A3_LAZY_LOAD_PREFIXadmin_init in wp-content/plugins/a3-lazy-load/admin/a3-lazy-load-admin.php on line 28
- > PHP Warning
Use of undefined constant A3_LAZY_LOAD_PREFIX - assumed 'A3_LAZY_LOAD_PREFIX' (this will throw an Error in a future version of PHP) in wp-content/plugins/a3-lazy-load/admin/a3-lazy-load-admin.php on line 28
- > PHP Fatal error
Uncaught Error: Call to a member function init() on null in wp-content/plugins/a3-lazy-load/admin/a3-lazy-load-admin.php:28
- > 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)
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: a3 lazy load, lazyload, image lazy load, lazy loading
a3-lazy-load/a3-lazy-load.php Passed 13 tests
This is the main PHP file of "a3 Lazy Load" version 2.7.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
111 characters long description:
Speed up your site and enhance frontend user's visual experience in PC's, Tablets and mobile with a3 Lazy Load.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected40,220 lines of code in 99 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 1 | 0 | 0 | 13,203 |
JavaScript | 31 | 2,110 | 1,584 | 12,774 |
PHP | 29 | 2,292 | 1,811 | 9,441 |
CSS | 25 | 297 | 155 | 3,289 |
LESS | 7 | 88 | 26 | 734 |
SVG | 4 | 3 | 1 | 430 |
PO File | 1 | 131 | 171 | 320 |
HTML | 1 | 2 | 0 | 29 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
These items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 410)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 81.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 801.00 |
Average method complexity | 6.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 410.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 25 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 25 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 401 | |
▷ Static methods | 53 | 13.22% |
▷ Public methods | 228 | 56.86% |
▷ Protected methods | 145 | 36.16% |
▷ Private methods | 28 | 6.98% |
Functions | 14 | |
▷ Named functions | 13 | 92.86% |
▷ Anonymous functions | 1 | 7.14% |
Constants | 20 | |
▷ Global constants | 13 | 65.00% |
▷ Class constants | 7 | 35.00% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
32 PNG files occupy 0.26MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/follow-facebook.png | 1.56KB | 0.43KB | ▼ 72.77% |
admin/assets/images/slider-handle1.png | 1.14KB | 1.17KB | 0.00% |
admin/assets/images/slider-bg-disable.png | 1.04KB | 0.14KB | ▼ 86.45% |
assets/banner-772x250.png | 24.02KB | 9.75KB | ▼ 59.39% |
admin/assets/images/slider-container-end-disable.png | 1.59KB | 0.55KB | ▼ 65.24% |