Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.14MB] [CPU: ▼5.29ms] Passed 4 tests
A check of server-side resources used by WP Lozad
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 40.52 ▲1.93 |
Dashboard /wp-admin | 3.45 ▲0.14 | 50.24 ▲5.29 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 48.31 ▼3.95 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 84.06 ▼15.94 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 33.41 ▼3.19 |
WP Lozad /wp-admin/options-general.php?page=lozad-setting-page | 3.33 | 31.46 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by WP Lozad
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.35 ▲0.00 | 2.70 ▲1.19 | 41.32 ▼2.30 |
Dashboard /wp-admin | 2,187 ▲10 | 5.56 ▼0.02 | 80.43 ▼6.05 | 75.79 ▲35.96 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.99 ▼0.01 | 33.98 ▼0.38 | 33.31 ▼1.02 |
Add New Post /wp-admin/post-new.php | 1,530 ▲4 | 23.21 ▲2.06 | 685.83 ▲35.70 | 57.84 ▼3.14 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.21 ▲0.02 | 99.98 ▼13.22 | 71.25 ▲23.43 |
WP Lozad /wp-admin/options-general.php?page=lozad-setting-page | 964 | 2.09 | 24.01 | 27.36 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function Lozad\\add_filter() in wp-content/plugins/wp-lozad/classes/FrontPageProcessing.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: image, front, posts, html processing, lazyload...
wp-lozad/lozad.php 92% from 13 tests
This is the main PHP file of "WP Lozad" version 1.8.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-lozad.php" instead of "lozad.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 plugin1,167 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 200 | 173 | 822 |
JavaScript | 2 | 63 | 20 | 340 |
CSS | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 17.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 3.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 50 | |
▷ Static methods | 7 | 14.00% |
▷ Public methods | 35 | 70.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 15 | 30.00% |
Functions | 11 | |
▷ Named functions | 1 | 9.09% |
▷ Anonymous functions | 10 | 90.91% |
Constants | 21 | |
▷ Global constants | 1 | 4.76% |
▷ Class constants | 20 | 95.24% |
▷ Public constants | 20 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/def@2x.png | 0.31KB | 0.20KB | ▼ 35.51% |
img/def.png | 0.31KB | 0.20KB | ▼ 35.51% |