84% admin-bar-menu-packer

Code Review | Admin Bar Menu Packer

WordPress plugin Admin Bar Menu Packer scored84%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: 6.3.1
  • 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

80+ active /1,799 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼8.35ms] Passed 4 tests

Analyzing server-side resources used by Admin Bar Menu Packer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.0842.21 ▼1.79
Dashboard /wp-admin3.42 ▲0.0348.70 ▼15.96
Posts /wp-admin/edit.php3.53 ▲0.1349.13 ▲2.25
Add New Post /wp-admin/post-new.php6.00 ▲0.0789.01 ▼17.90
Media Library /wp-admin/upload.php3.34 ▲0.0740.12 ▲4.23

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Admin Bar Menu Packer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,025 ▲26414.70 ▲0.121.83 ▲0.1837.42 ▼5.48
Dashboard /wp-admin2,311 ▲1345.66 ▲0.0489.57 ▼5.8544.58 ▼4.46
Posts /wp-admin/edit.php2,216 ▲1132.02 ▲0.0141.66 ▲2.9038.70 ▲1.88
Add New Post /wp-admin/post-new.php1,637 ▲10923.10 ▲0.11656.27 ▲17.3258.44 ▲8.18
Media Library /wp-admin/upload.php1,516 ▲1164.25 ▼0.1597.62 ▼4.1842.47 ▼3.00

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/admin-bar-menu-packer/admin-bar-menu-packer.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

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

The main file in "Admin Bar Menu Packer" v. 0.7.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
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 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected183 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PO File171149

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected