Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.17ms] Passed 4 tests
An overview of server-side resources used by SlimFast - YouTube Lazyloader
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 44.02 ▲6.77 |
Dashboard /wp-admin | 3.32 ▲0.01 | 50.26 ▼6.03 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.40 ▼3.03 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 89.59 ▼13.37 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 40.60 ▲1.75 |
SlimFast YouTube LazyLoader /wp-admin/options-general.php?page=slimfast_fields | 3.21 | 30.77 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for SlimFast - YouTube Lazyloader
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.27 ▼0.15 | 1.69 ▼0.12 | 43.56 ▲3.27 |
Dashboard /wp-admin | 2,196 ▲22 | 5.57 ▼0.19 | 86.62 ▼9.32 | 36.87 ▼9.37 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.98 ▲0.03 | 36.16 ▼0.67 | 30.64 ▼9.19 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.16 ▼0.42 | 664.69 ▼14.94 | 54.21 ▲4.04 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.17 ▼0.05 | 104.85 ▼8.61 | 48.19 ▲1.35 |
SlimFast YouTube LazyLoader /wp-admin/options-general.php?page=slimfast_fields | 798 | 2.03 | 23.70 | 27.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/slimfast-youtube-lazyloader/slimfast-functions.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/slimfast-youtube-lazyloader/slimfast.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: lazyload, video, lazy load, iframe, youtube...
slimfast-youtube-lazyloader/slimfast.php 85% from 13 tests
The main PHP file in "SlimFast - YouTube Lazyloader" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 191 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("slimfast-youtube-lazyloader.php" instead of "slimfast.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin199 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 31 | 8 | 97 |
CSS | 1 | 13 | 1 | 72 |
JavaScript | 1 | 4 | 0 | 30 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin