10% easy-admin-menu-manager

Code Review | Easy Admin Menu Manager

WordPress plugin Easy Admin Menu Manager scored10%from 54 tests.

About plugin

  • Plugin page: easy-admin-menu-m...
  • Plugin version: 2.1.1
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.4.1
  • WordPress version: 6.3.1
  • First release: Oct 30, 2022
  • Latest release: Nov 20, 2023
  • Number of updates: 27
  • Update frequency: every 14.3 days
  • Top authors: creatorseo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,164 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0743.27 ▲1.21
Dashboard /wp-admin2.18 ▼1.126.89 ▼45.51
Posts /wp-admin/edit.php2.18 ▼1.186.37 ▼44.92
Add New Post /wp-admin/post-new.php2.18 ▼3.718.80 ▼86.26
Media Library /wp-admin/upload.php2.18 ▼1.056.83 ▼28.24
Easy Admin Menu /wp-admin/options-general.php?page=eamm_menu_page2.196.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,963 ▲21613.81 ▼0.538.33 ▲6.6642.98 ▲4.69
Dashboard /wp-admin2,261 ▲805.59 ▼0.15100.96 ▼9.3389.17 ▲48.14
Posts /wp-admin/edit.php2,133 ▲332.05 ▲0.1046.13 ▲6.2636.25 ▼0.68
Add New Post /wp-admin/post-new.php1,549 ▲2023.59 ▼0.18611.26 ▼35.4465.40 ▲19.84
Media Library /wp-admin/upload.php1,433 ▲334.30 ▲0.1298.96 ▲3.7740.95 ▼0.24
Easy Admin Menu /wp-admin/options-general.php?page=eamm_menu_page9192.0830.6129.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

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.)
You can take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP429132272
CSS22210102
JavaScript27964

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 code0.49
Average class complexity38.00
▷ Minimum class complexity38.00
▷ Maximum class complexity38.00
Average method complexity3.31
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
img/eamm.png1.37KB0.81KB▼ 41.18%
css/collapse.png1.42KB0.49KB▼ 65.68%
css/eamm-expand.png1.52KB0.71KB▼ 53.44%
img/eamm-r.png1.63KB0.92KB▼ 43.62%
img/eamm-g.png1.61KB0.92KB▼ 43.13%