Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- This plugin did not install gracefully
- > User notice in wp-includes/functions.php+5905
Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
Server metrics [RAM: ▼1.76MB] [CPU: ▼51.23ms] Passed 4 tests
Analyzing server-side resources used by Easy Admin Menu Manager
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 43.27 ▲1.21 |
Dashboard /wp-admin | 2.18 ▼1.12 | 6.89 ▼45.51 |
Posts /wp-admin/edit.php | 2.18 ▼1.18 | 6.37 ▼44.92 |
Add New Post /wp-admin/post-new.php | 2.18 ▼3.71 | 8.80 ▼86.26 |
Media Library /wp-admin/upload.php | 2.18 ▼1.05 | 6.83 ▼28.24 |
Easy Admin Menu /wp-admin/options-general.php?page=eamm_menu_page | 2.19 | 6.70 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 8 new options
New WordPress options |
---|
eamm_options |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
eamm_log |
Browser metrics Passed 4 tests
A check of browser resources used by Easy Admin Menu Manager
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,963 ▲216 | 13.81 ▼0.53 | 8.33 ▲6.66 | 42.98 ▲4.69 |
Dashboard /wp-admin | 2,261 ▲80 | 5.59 ▼0.15 | 100.96 ▼9.33 | 89.17 ▲48.14 |
Posts /wp-admin/edit.php | 2,133 ▲33 | 2.05 ▲0.10 | 46.13 ▲6.26 | 36.25 ▼0.68 |
Add New Post /wp-admin/post-new.php | 1,549 ▲20 | 23.59 ▼0.18 | 611.26 ▼35.44 | 65.40 ▲19.84 |
Media Library /wp-admin/upload.php | 1,433 ▲33 | 4.30 ▲0.12 | 98.96 ▲3.77 | 40.95 ▼0.24 |
Easy Admin Menu /wp-admin/options-general.php?page=eamm_menu_page | 919 | 2.08 | 30.61 | 29.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5905
Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=eamm_menu_page
- > POST request to /wp-admin/admin-ajax.php
- > User notice in wp-includes/functions.php+5905
Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 3× PHP files trigger server errors when accessed directly:
- > PHP Warning
require_once(EAMM_DIRinc/eamm-defines.php): failed to open stream: No such file or directory in wp-content/plugins/easy-admin-menu-manager/class.easy-admin-menu.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'EAMM_DIRinc/eamm-defines.php' (include_path='.:/usr/share/php') in wp-content/plugins/easy-admin-menu-manager/class.easy-admin-menu.php on line 3
- > PHP Warning
Use of undefined constant EAMM_DIR - assumed 'EAMM_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/easy-admin-menu-manager/class.easy-admin-menu.php on line 3
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (This shows a typical WordPress Admin menu before 'Easy Admin Menu' is activated. The number of available options in the menu on the left can be overwhelming if many plugins are installed.), #2 (Once Easy Menu Manager is activated the number of menu items can be reduced allowing users to focus on the important items.), #3 (Clicking on the Simplify Menu icon hides menu entries that are set to hide. Clicking again on 'Show Full Menu' returns the full menu.), #4 (Items that should be hidden for distraction free work can be set from the Settings > Easy Admin Menu of the Dashboard Widget.), #5 (Individual menu items can then be toggled on and off. Save changes after selecting the required menu configuration.), #6 (You need to press 'Save Changes' at the bottom of the 'Easy Menu Manager' page to implement the selections.), #7 (The Easy Admin Menu Widget can be switched on or off from the Settings menu. The default is ON.)
easy-admin-menu-manager/easy-admin-menu-manager.php Passed 13 tests
The principal PHP file in "Easy Admin Menu Manager" v. 2.1.1 is loaded by WordPress automatically on each request
69 characters long description:
Easily Remove the clutter from your admin menu without losing control
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected438 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 29 | 132 | 272 |
CSS | 2 | 22 | 10 | 102 |
JavaScript | 2 | 7 | 9 | 64 |
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.49 |
Average class complexity | 38.00 |
▷ Minimum class complexity | 38.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 3.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 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 | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
12 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/eamm.png | 1.37KB | 0.81KB | ▼ 41.18% |
css/collapse.png | 1.42KB | 0.49KB | ▼ 65.68% |
css/eamm-expand.png | 1.52KB | 0.71KB | ▼ 53.44% |
img/eamm-r.png | 1.63KB | 0.92KB | ▼ 43.62% |
img/eamm-g.png | 1.61KB | 0.92KB | ▼ 43.13% |