Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.08MB] [CPU: ▼309.31ms] Passed 4 tests
Analyzing server-side resources used by Advanced lazy load
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.20 ▼0.32 | 6.81 ▼45.31 |
Dashboard /wp-admin | 3.45 ▲0.04 | 64.31 ▲15.35 |
Posts /wp-admin/edit.php | 3.68 ▲0.04 | 36.39 ▼3.39 |
Add New Post /wp-admin/post-new.php | 6.92 ▼0.06 | 104.17 ▼1,180.53 |
Media Library /wp-admin/upload.php | 3.33 ▲0.03 | 25.49 ▼8.01 |
Advanced lazy load /wp-admin/options-general.php?page=Advanced-lazy-load | 3.30 | 24.39 |
Server storage [IO: ▲0.64MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 3 new options
New WordPress options |
---|
ifd_pixel |
ifd_duration |
cb_adlzylad_mobile |
Browser metrics Passed 4 tests
Checking browser requirements for Advanced lazy load
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,962 ▲240 | 16.30 ▲0.58 | 18.66 ▲12.91 | 3.20 ▲0.98 |
Dashboard /wp-admin | 2,894 ▲33 | 6.14 ▼0.22 | 119.72 ▼27.99 | 155.53 ▼18.37 |
Posts /wp-admin/edit.php | 2,675 ▼9 | 3.26 ▲0.22 | 69.43 ▼19.81 | 190.21 ▲25.89 |
Add New Post /wp-admin/post-new.php | 1,664 ▼88 | 17.10 ▼4.69 | 443.44 ▼24.23 | 160.48 ▲0.38 |
Media Library /wp-admin/upload.php | 1,697 ▲2 | 5.52 ▲0.04 | 163.01 ▲18.63 | 189.88 ▼5.99 |
Advanced lazy load /wp-admin/options-general.php?page=Advanced-lazy-load | 1,348 | 2.36 | 52.71 | 128.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 3 options in the database
- ifd_pixel
- ifd_duration
- cb_adlzylad_mobile
Smoke tests 75% 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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-lazy-load/advanced_lazyload.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Donate link: Invalid URI ("")
- Screenshots: These screenshots do not have images: #1 (/screenshot-1.jpg), #2 (/screenshot-2.jpg), #3 (/screenshot-3.jpg)
advanced-lazy-load/advanced_lazyload.php 85% from 13 tests
This is the main PHP file of "Advanced lazy load" version 1.6.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 183 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("advanced-lazy-load.php" instead of "advanced_lazyload.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin6,737 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 136 | 2,080 | 6,731 |
JavaScript | 1 | 4 | 0 | 6 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 55.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 555.00 |
Average method complexity | 4.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 80.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 28 | |
▷ Abstract classes | 2 | 7.14% |
▷ Concrete classes | 26 | 92.86% |
▷ Final classes | 0 | 0.00% |
Methods | 493 | |
▷ Static methods | 75 | 15.21% |
▷ Public methods | 384 | 77.89% |
▷ Protected methods | 107 | 21.70% |
▷ Private methods | 2 | 0.41% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 55 | |
▷ Global constants | 4 | 7.27% |
▷ Class constants | 51 | 92.73% |
▷ Public constants | 51 | 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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
imgs/star.png | 9.27KB | 4.68KB | ▼ 49.50% |