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.08MB] [CPU: ▼1.35ms] Passed 4 tests
A check of server-side resources used by Be Lazy
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 45.80 ▲3.67 |
Dashboard /wp-admin | 3.38 ▲0.08 | 44.93 ▼2.51 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 47.06 ▼2.18 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 93.40 ▼2.93 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.51 ▲2.21 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Be Lazy: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,892 ▲146 | 13.31 ▼1.28 | 2.63 ▲0.82 | 39.11 ▼3.84 |
Dashboard /wp-admin | 2,296 ▲114 | 5.88 ▼0.02 | 99.74 ▲0.87 | 70.79 ▲26.40 |
Posts /wp-admin/edit.php | 2,176 ▲90 | 2.05 ▲0.05 | 39.81 ▼0.06 | 34.95 ▼3.18 |
Add New Post /wp-admin/post-new.php | 1,762 ▲242 | 24.22 ▲1.09 | 711.24 ▲29.74 | 64.71 ▲8.27 |
Media Library /wp-admin/upload.php | 1,466 ▲78 | 4.15 ▼0.04 | 102.09 ▼7.24 | 73.42 ▲29.19 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- 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
The smoke test was a success, however most plugin functionality was not tested
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 output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/be-lazy/app/Views/radio.php
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Undefined variable: name in wp-content/plugins/be-lazy/app/Views/radio.php on line 2
- > PHP Notice
Undefined variable: value in wp-content/plugins/be-lazy/app/Views/radio.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/be-lazy/app/Config/Constants.php:7
- > PHP Notice
Undefined variable: checked in wp-content/plugins/be-lazy/app/Views/radio.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/be-lazy/app/Views/options_page.php:7
- > PHP Notice
Undefined variable: label in wp-content/plugins/be-lazy/app/Views/radio.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/be-lazy/app/Config/Constants.php:7
- > PHP Notice
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 issues were found
Optimizations
Plugin configuration 96% 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
7 plugin tags: lazy, loading, speed, performance, lazyload...
be-lazy/be-lazy.php 92% from 13 tests
The entry point to "Be Lazy" version 1.2.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Description: Please improve your description making it at least 10 characters long (currently 0 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin783 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 138 | 178 | 580 |
SVG | 1 | 0 | 0 | 111 |
JavaScript | 4 | 1 | 2 | 36 |
Sass | 2 | 7 | 0 | 32 |
JSON | 3 | 0 | 0 | 22 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 8.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 8 | 17.78% |
▷ Public methods | 44 | 97.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.22% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 9 | |
▷ Global constants | 2 | 22.22% |
▷ Class constants | 7 | 77.78% |
▷ 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
No PNG images were found in this plugin