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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼5.78ms] Passed 4 tests
A check of server-side resources used by WP Nav Plus
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.14 | 41.99 ▼6.51 |
Dashboard /wp-admin | 3.43 ▲0.12 | 44.16 ▼9.17 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 45.26 ▼3.11 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 93.07 ▼4.33 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 39.48 ▲6.22 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_nav_plus_widget |
Browser metrics Passed 4 tests
Checking browser requirements for WP Nav Plus
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.45 ▲0.22 | 1.63 ▼0.06 | 41.46 ▲2.12 |
Dashboard /wp-admin | 2,206 ▲21 | 4.81 ▼0.11 | 107.82 ▼3.75 | 37.84 ▼6.61 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.14 ▲0.14 | 37.81 ▼3.55 | 34.49 ▼1.31 |
Add New Post /wp-admin/post-new.php | 1,547 ▲28 | 18.46 ▼4.84 | 633.46 ▼22.96 | 82.90 ▲31.45 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.16 ▼0.03 | 96.51 ▲1.97 | 42.08 ▲1.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_nav_plus_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-nav-plus/feature_classes/limit_offset.php:109
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-nav-plus/wp-nav-plus.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-nav-plus/feature_classes/divided_menu.php:92
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-nav-plus/feature_classes/menu_segment.php:81
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-nav-plus/feature_classes/start_depth.php:342
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-nav-plus/widget.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: tertiary menu, start depth, divided menu, secondary menu, split menu
wp-nav-plus/wp-nav-plus.php 92% from 13 tests
The principal PHP file in "WP Nav Plus" v. 3.4.9 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 186 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,386 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 185 | 76 | 715 |
HTML | 1 | 80 | 2 | 344 |
CSS | 4 | 20 | 31 | 295 |
JavaScript | 1 | 9 | 0 | 32 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 28.80 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 5.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 1 | 3.23% |
▷ Public methods | 21 | 67.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 32.26% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.15MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
documentation/assets/images/wp_nav_plus_widget_split_menu.png | 21.01KB | 8.62KB | ▼ 58.97% |
documentation/assets/images/wp_nav_plus_widget_segment_menu.png | 28.31KB | 7.98KB | ▼ 71.80% |
documentation/assets/images/wp_nav_plus_widget_lo_menu.png | 19.11KB | 7.74KB | ▼ 59.50% |
documentation/assets/images/wp_nav_plus_widget_divided_menu.png | 30.13KB | 11.51KB | ▼ 61.80% |
documentation/assets/images/wp_nav_plus_multiple_widgets.png | 45.75KB | 13.12KB | ▼ 71.32% |