83% wp-jump-menu

Code Review | WP Jump Menu

WordPress plugin WP Jump Menu scored 83% from 54 tests.

About plugin

  • Plugin page: wp-jump-menu
  • Plugin version: 3.6.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.3.2
  • WordPress version: 5.8.1
  • First release: Aug 31, 2010
  • Latest release: Apr 3, 2021
  • Number of updates: 123
  • Update frequency: every 31.5 days
  • Top authors: jkrill (100%)

Code review

54 tests

User reviews

29 reviews

Install metrics

3,000+ active / 76,522 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /2.91 ▲0.0736.39 ▲3.86
Dashboard /wp-admin3.12 ▲0.0741.20 ▼3.43
Posts /wp-admin/edit.php3.18 ▲0.0744.77 ▲3.01
Add New Post /wp-admin/post-new.php5.49 ▲0.0688.48 ▼563.40
Media Library /wp-admin/upload.php3.07 ▲0.0630.29 ▼7.62
Jump Menu Options /wp-admin/options-general.php?page=wpjm-options3.0429.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

Browser metrics Passed 4 tests

A check of browser resources used by WP Jump Menu
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,035 ▲43916.66 ▲1.0432.72 ▲23.2346.78 ▲2.56
Dashboard /wp-admin3,106 ▲1766.32 ▲0.41148.65 ▲3.06117.61 ▲1.08
Posts /wp-admin/edit.php2,871 ▲1322.72 ▲0.0172.93 ▲9.8294.87 ▲9.26
Add New Post /wp-admin/post-new.php1,777 ▲8415.27 ▼3.63381.82 ▲17.48119.85 ▲4.73
Media Library /wp-admin/upload.php1,936 ▲1265.20 ▲0.18134.45 ▼21.77124.28 ▲0.04
Jump Menu Options /wp-admin/options-general.php?page=wpjm-options4,0863.2796.37137.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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found


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 === )
You can look at the official readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PO File13325

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 code0.53
Average class complexity66.50
▷ Minimum class complexity22.00
▷ Maximum class complexity111.00
Average method complexity5.43
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions24100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/js/chosen/chosen-sprite@2x.png0.85KB0.83KB▼ 3.10%
assets/js/colorpicker/images/colorpicker_hsb_s.png1.14KB0.80KB▼ 29.97%
assets/js/colorpicker/images/select.png0.49KB0.33KB▼ 33.40%