Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼0.95ms] Passed 4 tests
Analyzing server-side resources used by Lazyload, Preload, and More!
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.15 | 44.16 ▼7.54 |
Dashboard /wp-admin | 3.43 ▲0.13 | 53.22 ▲3.15 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 47.94 ▼0.12 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 86.04 ▲0.89 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 39.92 ▲2.96 |
Server storage [IO: ▲0.04MB] [DB: ▲0.64MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Lazyload, Preload, and More!
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,771 ▼15 | 14.30 ▼0.34 | 1.78 ▼0.73 | 47.15 ▲1.42 |
Dashboard /wp-admin | 2,192 ▲12 | 5.66 ▼0.03 | 109.47 ▲16.59 | 48.32 ▲5.64 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▼0.12 | 40.54 ▲1.40 | 38.40 ▲2.33 |
Add New Post /wp-admin/post-new.php | 1,554 ▲8 | 23.44 ▲0.22 | 655.57 ▼46.90 | 58.56 ▲5.30 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.22 ▲0.02 | 106.75 ▲5.73 | 46.99 ▼0.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.64MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 4× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/lazyload-preload-and-more/vendor/js/index.php
- > /wp-content/plugins/lazyload-preload-and-more/includes/index.php
- > /wp-content/plugins/lazyload-preload-and-more/vendor/index.php
- > /wp-content/plugins/lazyload-preload-and-more/index.php
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 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
lazyload-preload-and-more/plugin.php 85% from 13 tests
The main file in "Lazyload, Preload, and More!" v. 1.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Text Domain: The text domain should only use lowercase characters and dashes
- Main file name: It is recommended to name the main PHP file as the plugin slug ("lazyload-preload-and-more.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin510 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 225 | 64 | 509 |
JavaScript | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
An overview of 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.47 |
Average class complexity | 117.00 |
▷ Minimum class complexity | 117.00 |
▷ Maximum class complexity | 117.00 |
Average method complexity | 8.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 25.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 9 | |
▷ Global constants | 4 | 44.44% |
▷ Class constants | 5 | 55.56% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin