Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.38MB] [CPU: ▲3.05ms] Passed 4 tests
An overview of server-side resources used by Lazy Loader
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.27 ▲0.81 | 43.85 ▲8.29 |
Dashboard /wp-admin | 3.72 ▲0.41 | 49.53 ▲3.54 |
Posts /wp-admin/edit.php | 3.77 ▲0.41 | 50.04 ▲4.34 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.35 | 88.22 ▼1.83 |
Media Library /wp-admin/upload.php | 3.58 ▲0.35 | 41.05 ▲6.13 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 48 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Lazy Loader
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲65 | 14.40 ▼0.13 | 5.34 ▲3.69 | 37.75 ▼6.82 |
Dashboard /wp-admin | 2,198 ▲18 | 5.51 ▼0.08 | 83.07 ▼8.84 | 71.88 ▲30.61 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 1.97 ▲0.02 | 36.21 ▼1.92 | 32.02 ▼3.27 |
Add New Post /wp-admin/post-new.php | 1,527 ▼1 | 23.15 ▲0.17 | 702.62 ▲38.50 | 63.66 ▲9.03 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.23 ▼0.00 | 98.60 ▲0.91 | 73.13 ▲28.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/lazy-loading-responsive-images/vendor/masterminds/html5/bin/entities.php
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Interface 'Masterminds\\HTML5\\Serializer\\RulesInterface' not found in wp-content/plugins/lazy-loading-responsive-images/vendor/masterminds/html5/src/HTML5/Serializer/OutputRules.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Masterminds\\HTML5\\Parser\\InputStream' not found in wp-content/plugins/lazy-loading-responsive-images/vendor/masterminds/html5/src/HTML5/Parser/StringInputStream.php:46
- > PHP Fatal error
Uncaught Error: Class 'Masterminds\\HTML5\\Parser\\StringInputStream' not found in wp-content/plugins/lazy-loading-responsive-images/vendor/masterminds/html5/src/HTML5/Parser/FileInputStream.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Masterminds\\HTML5\\Parser\\EventHandler' not found in wp-content/plugins/lazy-loading-responsive-images/vendor/masterminds/html5/src/HTML5/Parser/DOMTreeBuilder.php:26
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: performance, lazy loading, images, lazysizes
lazy-loading-responsive-images/lazy-load-responsive-images.php 85% from 13 tests
"Lazy Loader" version 8.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 210 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("lazy-loading-responsive-images.php" instead of "lazy-load-responsive-images.php")
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
No dangerous file extensions were detected8,191 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 36 | 1,045 | 2,968 | 7,987 |
Markdown | 2 | 47 | 0 | 122 |
JSON | 1 | 0 | 0 | 78 |
JavaScript | 4 | 3 | 3 | 4 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 23.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 140.00 |
Average method complexity | 3.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 62.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 23 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 271 | |
▷ Static methods | 35 | 12.92% |
▷ Public methods | 217 | 80.07% |
▷ Protected methods | 47 | 17.34% |
▷ Private methods | 7 | 2.58% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 60 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 60 | 100.00% |
▷ Public constants | 60 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected