Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.45MB] [CPU: ▲0.70ms] Passed 4 tests
An overview of server-side resources used by Performance Lab
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.43 | 43.25 ▲6.83 |
Dashboard /wp-admin | 3.81 ▲0.50 | 45.90 ▼2.01 |
Posts /wp-admin/edit.php | 3.86 ▲0.50 | 48.39 ▼1.73 |
Add New Post /wp-admin/post-new.php | 6.33 ▲0.43 | 85.25 ▲0.12 |
Media Library /wp-admin/upload.php | 3.67 ▲0.43 | 39.64 ▲6.42 |
Performance /wp-admin/options-general.php?page=perflab-modules | 3.65 | 35.94 |
Server-Timing /wp-admin/tools.php?page=perflab-server-timing | 3.64 | 33.53 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
It is recommended to fix the following issues
- The plugin illegally modified 1 file (3.28KB) outside of "wp-content/plugins/performance-lab/" and "wp-content/uploads/"
- (new file) wp-content/object-cache.php
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Performance Lab
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲85 | 14.73 ▲0.14 | 1.55 ▼0.08 | 49.36 ▲3.27 |
Dashboard /wp-admin | 2,250 ▲76 | 5.94 ▲0.28 | 89.67 ▲4.03 | 41.24 ▼1.20 |
Posts /wp-admin/edit.php | 2,105 ▲5 | 1.98 ▼0.02 | 34.18 ▼3.77 | 35.39 ▼3.88 |
Add New Post /wp-admin/post-new.php | 1,534 ▲6 | 23.22 ▲0.29 | 634.38 ▲3.72 | 66.79 ▲17.02 |
Media Library /wp-admin/upload.php | 1,405 ▲11 | 4.16 ▼0.09 | 95.98 ▼0.48 | 43.84 ▼0.04 |
Performance /wp-admin/options-general.php?page=perflab-modules | 908 | 2.03 | 23.73 | 26.77 |
Server-Timing /wp-admin/tools.php?page=perflab-server-timing | 876 | 2.12 | 21.72 | 35.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% 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 50% 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
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant PERFLAB_VERSION - assumed 'PERFLAB_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/performance-lab/modules/images/dominant-color-images/load.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function _x() in wp-content/plugins/performance-lab/module-i18n.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_Image_Editor_Imagick' not found in wp-content/plugins/performance-lab/modules/images/dominant-color-images/class-dominant-color-image-editor-imagick.php:20
- > PHP Warning
Use of undefined constant PERFLAB_VERSION - assumed 'PERFLAB_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/performance-lab/modules/images/webp-uploads/load.php on line 16
- > PHP Fatal error
Uncaught Error: Class 'WP_Image_Editor_GD' not found in wp-content/plugins/performance-lab/modules/images/dominant-color-images/class-dominant-color-image-editor-gd.php:20
- > PHP Warning
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)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: performance, javascript, site health, object caching, measurement...
performance-lab/load.php 92% from 13 tests
The entry point to "Performance Lab" version 2.7.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("performance-lab.php" instead of "load.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected3,070 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 32 | 608 | 1,914 | 2,965 |
JavaScript | 1 | 22 | 7 | 95 |
JSON | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 3.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 94.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.88% |
Functions | 145 | |
▷ Named functions | 105 | 72.41% |
▷ Anonymous functions | 40 | 27.59% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
No PNG files were detected