Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.14MB] [CPU: ▼5.41ms] Passed 4 tests
Server-side resources used by Multitool
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 40.00 ▲0.12 |
Dashboard /wp-admin | 3.49 ▲0.19 | 50.36 ▲1.21 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 55.69 ▲3.79 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.25 | 79.09 ▼22.33 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 37.48 ▼0.62 |
Config Tools /wp-admin/tools.php?page=multitool-config | 3.37 | 36.56 |
Quick Tools /wp-admin/tools.php?page=multitool-quick | 3.37 | 39.13 |
Server storage [IO: ▲1.31MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 124 new files
Database: no new tables, 18 new options
New WordPress options |
---|
multitool_main_listener_switch |
adminaccountscap_activate |
adminaccountscap_limit |
widget_recent-comments |
multitool_maintenancemode_activate |
widget_recent-posts |
multitool_db_version |
adminaccountscap_alerttype |
multitool_public_listener_switch |
db_upgraded |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Multitool
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.24 ▼1.04 | 1.68 ▼0.07 | 43.15 ▼0.65 |
Dashboard /wp-admin | 2,228 ▲40 | 5.85 ▲0.99 | 101.28 ▼4.24 | 42.01 ▲0.16 |
Posts /wp-admin/edit.php | 2,114 ▲22 | 2.05 ▲0.00 | 35.28 ▼5.54 | 34.28 ▼1.87 |
Add New Post /wp-admin/post-new.php | 1,537 ▲4 | 23.24 ▼0.12 | 673.53 ▲32.98 | 48.50 ▼6.66 |
Media Library /wp-admin/upload.php | 1,410 ▲22 | 4.30 ▼0.02 | 101.06 ▼15.50 | 44.86 ▼6.66 |
Config Tools /wp-admin/tools.php?page=multitool-config | 1,395 | 2.78 | 53.93 | 26.75 |
Quick Tools /wp-admin/tools.php?page=multitool-quick | 1,451 | 2.69 | 50.98 | 24.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 18 options
- adminaccountscap_alerttype
- can_compress_scripts
- multitool_db_version
- adminaccountscap_activate
- multitool_public_listener_switch
- theysaidso_admin_options
- widget_theysaidso_widget
- multitool_main_listener_switch
- multitool_admin_listener_switch
- adminaccountscap_limit
- ...
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/multitool/includes/widgets/functions.multitool-widget-example.php:6
- > PHP Fatal error
Uncaught Error: Class 'Multitool_Async_Request' not found in wp-content/plugins/multitool/includes/libraries/library.background-process.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/multitool/includes/libraries/TGM-Plugin-Activation-2.6.1/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/multitool/includes/libraries/TGM-Plugin-Activation-2.6.1/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== multitool ===
)
multitool/multitool.php 92% from 13 tests
The principal PHP file in "Multitool" v. 1.2.1 is loaded by WordPress automatically on each request
The following require your attention:
- Requires at least: The required version number must match the one declared in readme.txt ("4.2" instead of "4.4")
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
There were no executable files found in this plugin15,185 lines of code in 96 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 61 | 1,614 | 4,195 | 6,114 |
PO File | 17 | 1,449 | 1,993 | 4,842 |
JavaScript | 9 | 624 | 421 | 2,913 |
Markdown | 4 | 185 | 0 | 778 |
Sass | 2 | 25 | 0 | 532 |
INI | 1 | 1 | 0 | 4 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 17.84 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 3.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 48 | |
▷ Abstract classes | 4 | 8.33% |
▷ Concrete classes | 44 | 91.67% |
▷ Final classes | 1 | 2.27% |
Methods | 375 | |
▷ Static methods | 89 | 23.73% |
▷ Public methods | 304 | 81.07% |
▷ Protected methods | 50 | 13.33% |
▷ Private methods | 21 | 5.60% |
Functions | 33 | |
▷ Named functions | 33 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 38 | |
▷ Global constants | 35 | 92.11% |
▷ Class constants | 3 | 7.89% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.08MB with 0.07MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/multitool_logo.png | 86.15KB | 12.18KB | ▼ 85.86% |