90% admin-menu-manager

Code Review | Admin Menu Manager

WordPress plugin Admin Menu Manager scored90%from 54 tests.

About plugin

  • Plugin page: admin-menu-manager
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Apr 27, 2015
  • Latest release: Mar 27, 2023
  • Number of updates: 15
  • Update frequency: every 192.7 days
  • Top authors: wearerequired (86.67%)ocean90 (20%)

Code review

54 tests

User reviews

27 reviews

Install metrics

800+ active /15,885 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼4.43ms] Passed 4 tests

Server-side resources used by Admin Menu Manager
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0838.49 ▼4.37
Dashboard /wp-admin3.39 ▲0.0952.84 ▼1.48
Posts /wp-admin/edit.php3.51 ▲0.1549.31 ▲1.95
Add New Post /wp-admin/post-new.php5.99 ▲0.1086.79 ▼13.81
Media Library /wp-admin/upload.php3.32 ▲0.0840.73 ▲3.92

Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Admin Menu Manager
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲5214.17 ▲0.061.79 ▼0.0244.63 ▼1.21
Dashboard /wp-admin2,222 ▲455.65 ▼0.0389.79 ▼7.6943.68 ▼1.19
Posts /wp-admin/edit.php2,127 ▲242.25 ▲0.2534.68 ▼1.8934.84 ▼1.61
Add New Post /wp-admin/post-new.php1,548 ▲2223.26 ▼0.16672.60 ▼5.9560.88 ▲5.92
Media Library /wp-admin/upload.php1,424 ▲274.19 ▼0.23109.22 ▼2.5844.60 ▼3.62

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: admin, admin menus, dashboard, order, menu

admin-menu-manager/admin-menu-manager.php Passed 13 tests

The main file in "Admin Menu Manager" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
69 characters long description:
Manage the WordPress admin menu using a simple drag & drop interface.

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
Success! There were no dangerous files found in this plugin662 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PO File191237

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.42
Average class complexity21.67
▷ Minimum class complexity7.00
▷ Maximum class complexity50.00
Average method complexity3.14
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
▷ Static methods413.79%
▷ Public methods2172.41%
▷ Protected methods310.34%
▷ Private methods517.24%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin