Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼1.76ms] Passed 4 tests
Server-side resources used by WP-HidenMenuItems
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 44.61 ▲2.82 |
Dashboard /wp-admin | 3.39 ▲0.08 | 46.78 ▼3.82 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 47.31 ▼0.81 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 86.81 ▼5.23 |
Media Library /wp-admin/upload.php | 3.32 ▲0.08 | 39.55 ▲5.79 |
Hiden menu items /wp-admin/themes.php?page=hiden-menu-items | 3.27 | 32.57 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
recovery_mode_email_last_sent |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for WP-HidenMenuItems
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 14.48 ▲0.09 | 1.94 ▼0.21 | 44.27 ▼4.04 |
Dashboard /wp-admin | 2,213 ▲28 | 5.89 ▲0.03 | 99.58 ▼6.79 | 41.11 ▼2.95 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.01 ▼0.01 | 40.06 ▼2.18 | 35.30 ▼4.55 |
Add New Post /wp-admin/post-new.php | 1,545 ▲3 | 18.27 ▼0.31 | 591.16 ▼48.69 | 54.67 ▲3.77 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.23 ▲0.05 | 95.43 ▼1.27 | 41.27 ▼1.02 |
Hiden menu items /wp-admin/themes.php?page=hiden-menu-items | 817 | 1.54 | 7.01 | 24.20 |
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
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/wp-hidenmenuitems/uninstall.php+23
Undefined offset: 0
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- recovery_mode_email_last_sent
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/themes.php?page=hiden-menu-items
- > Notice in wp-content/plugins/wp-hidenmenuitems/class-menu-items-hiden.php+283
Undefined offset: 0
- > GET request to /wp-admin/themes.php?page=hiden-menu-items
- > Notice in wp-content/plugins/wp-hidenmenuitems/class-menu-items-hiden.php+283
Trying to get property 'term_id' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/themes.php?page=hiden-menu-items
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-content/plugins/wp-hidenmenuitems/class-structure-menu.php+103
Invalid argument supplied for foreach()
- > GET request to /wp-admin/themes.php?page=hiden-menu-items
- > Error in wp-content/plugins/wp-hidenmenuitems/class-structure-menu.php+108
Uncaught TypeError: Return value of HMI_Structure_Menu::get_items_selected_menu() must be of the type array, bool returned in wp-content/plugins/wp-hidenmenuitems/class-structure-menu.php:108
Stack trace:
#0 wp-content/plugins/wp-hidenmenuitems/class-menu-items-hiden.php(283): HMI_Structure_Menu->get_items_selected_menu()
#1 wp-content/plugins/wp-hidenmenuitems/class-menu-items-hiden.php(243): HMI_Main->hmi_setting_field2()
#2 wp-includes/class-wp-hook.php(310): HMI_Main->hiden_menu_items()
#3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#4 wp-includes/plugin.php(517): WP_Hook->do_action()
#5 wp-admin/admin.php(259): do_action()
#6 wp-admin/themes.php(10): require_once('/var/www/wordpr...')
#7 {main}
thrown- > GET request to /wp-admin/themes.php?page=hiden-menu-items
- > POST request to /wp-admin/admin-ajax.php
- > Error in wp-content/plugins/wp-hidenmenuitems/class-structure-menu.php+108
Uncaught TypeError: Return value of HMI_Structure_Menu::get_items_selected_menu() must be of the type array, bool returned in wp-content/plugins/wp-hidenmenuitems/class-structure-menu.php:108
Stack trace:
#0 wp-content/plugins/wp-hidenmenuitems/includes/ajax-menu-items-hiden.php(58): HMI_Structure_Menu->get_items_selected_menu()
#1 wp-includes/class-wp-hook.php(310): hmi_menu_items_ajax()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin-ajax.php(188): do_action()
#5 {main}
thrown
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- > GET request to /wp-admin/themes.php?page=hiden-menu-items
- > Network (severe)
wp-admin/admin-ajax.php - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: items, menu, hide
wp-hidenmenuitems/wp-menu-items-hiden.php 77% from 13 tests
The main file in "WP-HidenMenuItems" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-hidenmenuitems.php" instead of "wp-menu-items-hiden.php")
- Domain Path: The domain path folder was not found ("/languages/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin730 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 54 | 178 | 472 |
JavaScript | 1 | 34 | 67 | 232 |
CSS | 1 | 1 | 11 | 26 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/banner-772x250.png | 44.73KB | 14.34KB | ▼ 67.93% |