88% adminbar-manager

Code Review | Adminbar Default Menu Manager

WordPress plugin Adminbar Default Menu Manager scored 88% from 54 tests.

About plugin

  • Plugin page: adminbar-manager
  • Plugin version: 1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-5.4.1
  • WordPress version: 5.9.2
  • First release: May 12, 2014
  • Latest release: May 11, 2020
  • Number of updates: 24
  • Update frequency: every 91.3 days
  • Top authors: sarankumar (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active / 2,940 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.00MB] [CPU: ▼306.90ms] Passed 4 tests

An overview of server-side resources used by Adminbar Default Menu Manager
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▼0.0248.87 ▼2.28
Dashboard /wp-admin3.45 ▲0.0435.98 ▲2.95
Posts /wp-admin/edit.php3.68 ▲0.0435.36 ▼31.31
Add New Post /wp-admin/post-new.php6.92 ▼0.0694.18 ▼1,194.15
Media Library /wp-admin/upload.php3.33 ▲0.0426.49 ▲0.13
Adminbar Manager /wp-admin/options-general.php?page=adminbar-manager/index.php3.2822.67

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Adminbar Default Menu Manager
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,790 ▲4615.84 ▲0.226.28 ▲0.002.20 ▼0.08
Dashboard /wp-admin2,897 ▲396.12 ▼0.09120.87 ▼26.02154.49 ▼14.45
Posts /wp-admin/edit.php2,696 ▲113.23 ▼0.0163.31 ▼33.57138.47 ▼8.90
Add New Post /wp-admin/post-new.php1,755 ▼1821.63 ▲0.62439.14 ▼26.36159.49 ▲2.99
Media Library /wp-admin/upload.php1,703 ▲55.50 ▲0.00140.73 ▼1.54184.75 ▼2.87
Adminbar Manager /wp-admin/options-general.php?page=adminbar-manager/index.php1,0422.3852.36121.65

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=adminbar-manager/index.php
    • > Notice in wp-content/plugins/adminbar-manager/index.php+110
    Trying to access array offset on value of type bool

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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/adminbar-manager/index.php:123

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: adminbar menu, admin bar, remove admin bar menuchange adminbar color, toolbar

adminbar-manager/index.php 92% from 13 tests

This is the main PHP file of "Adminbar Default Menu Manager" version 1.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("adminbar-manager.php" instead of "index.php")

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
Success! There were no dangerous files found in this plugin133 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity1.92
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods215.38%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions4100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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 were not PNG files found in your plugin