Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼6.72ms] Passed 4 tests
An overview of server-side resources used by The Mojo Admin Toolbox
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 40.82 ▲1.26 |
Dashboard /wp-admin | 3.40 ▲0.06 | 51.64 ▼15.77 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 51.83 ▲3.76 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 92.97 ▼6.11 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 33.34 ▼6.26 |
Mojo Toolbox /wp-admin/options-general.php?page=mojoToolbox-options | 3.32 | 38.52 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for The Mojo Admin Toolbox
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲52 | 13.29 ▼0.68 | 1.88 ▲0.13 | 44.33 ▼3.62 |
Dashboard /wp-admin | 2,216 ▲13 | 5.79 ▲0.88 | 104.60 ▼2.70 | 35.21 ▼14.13 |
Posts /wp-admin/edit.php | 2,095 ▼8 | 2.05 ▲0.03 | 39.30 ▲1.58 | 32.36 ▼5.96 |
Add New Post /wp-admin/post-new.php | 1,546 ▲15 | 18.27 ▼4.78 | 625.98 ▼7.53 | 56.54 ▲6.69 |
Media Library /wp-admin/upload.php | 1,395 ▼5 | 4.25 ▲0.02 | 93.43 ▼15.09 | 37.07 ▼9.77 |
Mojo Toolbox /wp-admin/options-general.php?page=mojoToolbox-options | 1,287 | 3.05 | 43.78 | 66.86 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/the-mojo-admin-toolbox/includes/remove-comments.class.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/the-mojo-admin-toolbox/mojo-toolbox.php:33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/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
2 plugin tags: admin, tools
the-mojo-admin-toolbox/mojo-toolbox.php 92% from 13 tests
The main PHP script in "The Mojo Admin Toolbox" version 1.3.4 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("the-mojo-admin-toolbox.php" instead of "mojo-toolbox.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin405 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 155 | 381 | 380 |
JavaScript | 1 | 9 | 13 | 25 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 3.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 1 | 3.45% |
▷ Public methods | 29 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected