Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Warning in wp-content/plugins/custom-menu-wizard/include/class.walker.php+55
Declaration of Custom_Menu_Wizard_Walker::walk($elements, $max_depth) should be compatible with Walker::walk($elements, $max_depth, ...$args)
Server metrics [RAM: ▼0.98MB] [CPU: ▼48.17ms] Passed 4 tests
Analyzing server-side resources used by Custom Menu Wizard Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.01 ▼0.45 | 9.01 ▼32.44 |
Dashboard /wp-admin | 3.03 ▼0.27 | 10.54 ▼35.44 |
Posts /wp-admin/edit.php | 3.03 ▼0.33 | 9.92 ▼37.61 |
Add New Post /wp-admin/post-new.php | 3.03 ▼2.86 | 10.95 ▼87.19 |
Media Library /wp-admin/upload.php | 3.03 ▼0.20 | 11.31 ▼24.64 |
Server storage [IO: ▲0.64MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_custom-menu-wizard |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Custom Menu Wizard Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.28 ▼1.11 | 3.76 ▲2.04 | 37.84 ▼2.20 |
Dashboard /wp-admin | 2,200 ▲15 | 5.80 ▼0.08 | 102.98 ▼12.02 | 43.12 ▼1.95 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.97 ▼0.00 | 40.22 ▼0.87 | 36.07 ▼0.00 |
Add New Post /wp-admin/post-new.php | 1,542 ▼0 | 18.43 ▲0.31 | 634.46 ▲29.60 | 54.33 ▲0.75 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.18 ▼0.02 | 98.33 ▼0.18 | 44.09 ▲3.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/custom-menu-wizard/include/class.walker.php+55
Declaration of Custom_Menu_Wizard_Walker::walk($elements, $max_depth) should be compatible with Walker::walk($elements, $max_depth, ...$args)
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- widget_recent-comments
- widget_custom-menu-wizard
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 fix the following items
- 3× 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/custom-menu-wizard/include/class.widget.php:7
- > PHP Fatal error
Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/custom-menu-wizard/include/class.walker.php:9
- > PHP Fatal error
Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/custom-menu-wizard/include/class.sorter.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
custom-menu-wizard/custom-menu-wizard.php 92% from 13 tests
The entry point to "Custom Menu Wizard Widget" version 3.3.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 296 characters long)
Code Analysis 97% from 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 plugin6,606 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 492 | 1,373 | 3,067 |
HTML | 2 | 537 | 6 | 1,845 |
JavaScript | 2 | 87 | 460 | 1,527 |
CSS | 1 | 0 | 19 | 167 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
The following items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 132)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 191.25 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 304.00 |
Average method complexity | 14.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 132.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 | 56 | |
▷ Static methods | 4 | 7.14% |
▷ Public methods | 44 | 78.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 21.43% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
custom-menu-wizard-330.png | 4.85KB | 2.52KB | ▼ 48.18% |