Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/admin-menu-creator/class.function.php+10
Undefined index: page
Server metrics [RAM: ▼1.81MB] [CPU: ▼184.82ms] Passed 4 tests
This is a short check of server-side resources used by Admin Menu
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.01 | 31.31 ▼3.17 |
Dashboard /wp-admin | 1.84 ▼1.22 | 6.58 ▼35.27 |
Posts /wp-admin/edit.php | 1.84 ▼1.27 | 6.08 ▼36.08 |
Add New Post /wp-admin/post-new.php | 1.84 ▼3.59 | 5.52 ▼643.68 |
Media Library /wp-admin/upload.php | 1.84 ▼1.16 | 5.78 ▼24.23 |
Wp Admin Help /wp-admin/admin.php?page=admin-menu-help | 2.79 | 20.35 |
Wp Admin Menu /wp-admin/admin.php?page=admin-menu-listing | 2.79 | 20.75 |
Server storage [IO: ▲0.74MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Admin Menu
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,795 ▲200 | 15.81 ▲0.32 | 10.30 ▲0.60 | 46.79 ▼1.52 |
Dashboard /wp-admin | 3,047 ▲113 | 6.20 ▲0.23 | 140.32 ▲0.62 | 113.24 ▲1.97 |
Posts /wp-admin/edit.php | 2,842 ▲103 | 2.72 ▲0.00 | 66.31 ▲4.69 | 98.10 ▲13.50 |
Add New Post /wp-admin/post-new.php | 1,668 ▲64 | 21.03 ▲2.59 | 274.37 ▼102.86 | 159.95 ▲44.89 |
Media Library /wp-admin/upload.php | 1,909 ▲99 | 5.05 ▲0.03 | 125.41 ▼22.89 | 107.25 ▼11.40 |
Wp Admin Help /wp-admin/admin.php?page=admin-menu-help | 1,619 | 2.10 | 53.13 | 118.77 |
Wp Admin Menu /wp-admin/admin.php?page=admin-menu-listing | 1,336 | 2.08 | 57.09 | 78.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/admin-menu-creator/class.function.php+10
Undefined index: page
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=admin-menu-listing
- > Deprecated in wp-includes/class-wp-hook.php+303
Non-static method AMC_Function::wcamc_custom_admin_menu() should not be called statically
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=admin-menu-listing
- > Deprecated in wp-includes/class-wp-hook.php+303
Non-static method AMC_Function::wcamc_menu_adminscripts() should not be called statically
- > GET request to /wp-admin/admin.php?page=admin-menu-help
- > Deprecated in wp-includes/class-wp-hook.php+303
Non-static method AMC_Function::wcamc_menuHelp() should not be called statically
- > GET request to /wp-admin/admin.php?page=admin-menu-listing
- > Deprecated in wp-includes/class-wp-hook.php+303
Non-static method AMC_Function::wcamc_menu_listing() should not be called statically
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=admin-menu-listing
- > Notice in wp-content/plugins/admin-menu-creator/class.function.php+172
Undefined index: original_publish
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=admin-menu-listing
- > Notice in wp-content/plugins/admin-menu-creator/class.function.php+203
Undefined index: action
- > GET request to /wp-admin/admin.php?page=admin-menu-listing
- > Notice in wp-content/plugins/admin-menu-creator/class.function.php+192
Undefined index: action2
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=admin-menu-listing
- > Notice in wp-content/plugins/admin-menu-creator/admin/admin_menu_listing_details.php+32
Undefined variable: adminMenuArray
- > GET request to /wp-admin/admin.php?page=admin-menu-listing
- > Warning in wp-content/plugins/admin-menu-creator/admin/admin_menu_listing_details.php+119
usort() expects parameter 1 to be array, null given
- > GET request to /wp-admin/admin.php?page=admin-menu-listing
- > Warning in wp-content/plugins/admin-menu-creator/admin/admin_menu_listing_details.php+121
count(): Parameter must be an array or an object that implements Countable
- > GET request to /wp-admin/admin.php?page=admin-menu-listing
- > Warning in wp-content/plugins/admin-menu-creator/admin/admin_menu_listing_details.php+122
array_slice() expects parameter 1 to be array, null given
- > GET request to /wp-admin/admin.php?page=admin-menu-listing
- > Notice in wp-content/plugins/admin-menu-creator/admin/admin_menu_listing_details.php+137
Undefined variable: message
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/admin-menu-creator/help.php
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/admin-menu-creator/admin/admin_menu_listing_details.php:8
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/admin-menu-creator/class.function.php:10
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/admin-menu-creator/admin/edit_menu.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/admin-menu-creator/help.php:137
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/admin-menu-creator/adminmenucreator.php:15
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=admin-menu-help
- > Network (severe)
wp-content/plugins/AdminMenuCreator/screenshots/Admin_Menu_Add_New.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=admin-menu-help
- > Network (severe)
wp-content/plugins/AdminMenuCreator/screenshots/Admin_Select_Option.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=admin-menu-help
- > Network (severe)
wp-content/plugins/AdminMenuCreator/screenshots/Admin_Menu_With_Data.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=admin-menu-help
- > Network (severe)
wp-content/plugins/AdminMenuCreator/screenshots/Admin_Menu_Listing.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=admin-menu-help
- > Network (severe)
wp-content/plugins/AdminMenuCreator/screenshots/Admin_Menu_Display.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=admin-menu-help
- > Network (severe)
wp-content/plugins/AdminMenuCreator/screenshots/Admin_Menu_Help.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: Screenshot #6 (Admin_Menu_Help) image not found
admin-menu-creator/adminmenucreator.php 92% from 13 tests
The entry point to "Admin Menu" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("admin-menu-creator.php" instead of "adminmenucreator.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin905 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 49 | 49 | 708 |
JavaScript | 1 | 12 | 8 | 99 |
CSS | 2 | 3 | 4 | 98 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 4 | 14.81% |
▷ Public methods | 25 | 92.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 7.41% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.69MB with 0.47MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshots/Admin_Select_Option.png | 136.84KB | 43.03KB | ▼ 68.56% |
screenshots/Admin_Menu_With_Data.png | 102.20KB | 30.34KB | ▼ 70.31% |
screenshots/Admin_Menu_Help.png | 196.94KB | 87.09KB | ▼ 55.78% |
screenshots/Admin_Menu_Display.png | 94.73KB | 28.40KB | ▼ 70.02% |
screenshots/Admin_Menu_Listing.png | 94.37KB | 26.88KB | ▼ 71.52% |