94% admin-bar-menu-packer

Code Review | Admin Bar Menu Packer

WordPress plugin Admin Bar Menu Packer scored 94% from 54 tests.

About plugin

  • Plugin page: admin-bar-menu-pa...
  • Plugin version: 0.7.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.9
  • WordPress version: 5.9.2
  • First release: Nov 1, 2017
  • Latest release: Nov 15, 2017
  • Number of updates: 13
  • Update frequency: every 1.1 days
  • Top authors: kazuyk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,325 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼289.54ms] Passed 4 tests

An overview of server-side resources used by Admin Bar Menu Packer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1160.51 ▲9.53
Dashboard /wp-admin3.48 ▲0.0740.09 ▲4.72
Posts /wp-admin/edit.php3.71 ▲0.0739.88 ▼2.31
Add New Post /wp-admin/post-new.php6.97 ▼0.0299.08 ▼1,163.49
Media Library /wp-admin/upload.php3.36 ▲0.0728.09 ▲2.93

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Admin Bar Menu Packer
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,027 ▲27316.22 ▲0.536.23 ▼0.032.09 ▼0.83
Dashboard /wp-admin3,033 ▲1796.17 ▼0.07119.22 ▼15.70154.54 ▼3.36
Posts /wp-admin/edit.php2,830 ▲1423.27 ▲0.0365.06 ▲1.90138.39 ▼3.93
Add New Post /wp-admin/post-new.php1,771 ▲11020.57 ▲4.32410.42 ▼14.45167.07 ▲9.38
Media Library /wp-admin/upload.php1,836 ▲1355.57 ▲0.04141.63 ▲1.16181.31 ▼4.85

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/admin-bar-menu-packer/admin-bar-menu-packer.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
Please take inspiration from this readme.txt

admin-bar-menu-packer/admin-bar-menu-packer.php Passed 13 tests

The primary PHP file in "Admin Bar Menu Packer" version 0.7.4 is used by WordPress to initiate all plugin functionality
97 characters long description:
Gather menu items on toolbar (admin bar) into one menu to prevent toolbar from getting cluttered.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin183 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PO File171149

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions6100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.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
No PNG images were found in this plugin