Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼142.86ms] Passed 4 tests
A check of server-side resources used by WP Jump Menu
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.07 | 36.39 ▲3.86 |
Dashboard /wp-admin | 3.12 ▲0.07 | 41.20 ▼3.43 |
Posts /wp-admin/edit.php | 3.18 ▲0.07 | 44.77 ▲3.01 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.06 | 88.48 ▼563.40 |
Media Library /wp-admin/upload.php | 3.07 ▲0.06 | 30.29 ▼7.62 |
Jump Menu Options /wp-admin/options-general.php?page=wpjm-options | 3.04 | 29.68 |
Server storage [IO: ▲0.91MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 54 new files
Database: no new tables, 2 new options
New WordPress options |
---|
wpjm_version |
wpjm_options |
Browser metrics Passed 4 tests
A check of browser resources used by WP Jump Menu
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,035 ▲439 | 16.66 ▲1.04 | 32.72 ▲23.23 | 46.78 ▲2.56 |
Dashboard /wp-admin | 3,106 ▲176 | 6.32 ▲0.41 | 148.65 ▲3.06 | 117.61 ▲1.08 |
Posts /wp-admin/edit.php | 2,871 ▲132 | 2.72 ▲0.01 | 72.93 ▲9.82 | 94.87 ▲9.26 |
Add New Post /wp-admin/post-new.php | 1,777 ▲84 | 15.27 ▼3.63 | 381.82 ▲17.48 | 119.85 ▲4.73 |
Media Library /wp-admin/upload.php | 1,936 ▲126 | 5.20 ▲0.18 | 134.45 ▼21.77 | 124.28 ▲0.04 |
Jump Menu Options /wp-admin/options-general.php?page=wpjm-options | 4,086 | 3.27 | 96.37 | 137.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 2 options in the database
- wpjm_options
- wpjm_version
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-jump-menu/settings.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function is_network_admin() in wp-content/plugins/wp-jump-menu/wp-jump-menu.php:1237
- > PHP Fatal error
Uncaught Error: Class 'Walker_PageDropDown' not found in wp-content/plugins/wp-jump-menu/assets/WpjmWalkerClass.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (The Jump Menu in the WordPress Admin Bar), #2 (The Options Page - Here you can edit the drop-down list of custom post types (as well as built in post types) and their order, change the colors of the WP Jump Menu, and specify a few other options!), #3 (The Jump Menu - Just a drop down, but one POWERFUL drop down!)
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== wp-jump-menu ===
)
wp-jump-menu/wp-jump-menu.php 92% from 13 tests
"WP Jump Menu" version 3.6.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 181 characters long)
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
No dangerous file extensions were detected6,355 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 10 | 251 | 147 | 3,407 |
PHP | 3 | 273 | 301 | 1,610 |
CSS | 6 | 26 | 59 | 1,313 |
PO File | 1 | 3 | 3 | 25 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 66.50 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 111.00 |
Average method complexity | 5.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 24 | |
▷ Named functions | 24 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
26 compressed PNG files occupy 0.61MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/js/chosen/chosen-sprite@2x.png | 0.85KB | 0.83KB | ▼ 3.10% |
assets/js/colorpicker/images/colorpicker_hsb_s.png | 1.14KB | 0.80KB | ▼ 29.97% |
assets/js/colorpicker/images/slider.png | 0.31KB | 1.51KB | 0.00% |
assets/js/colorpicker/images/select.png | 0.49KB | 0.33KB | ▼ 33.40% |
assets/js/chosen/chosen-sprite.png | 0.63KB | 0.88KB | 0.00% |