84% adminimal-bar

Code Review | AdMinimal Bar - Minimize the Admin Bar

WordPress plugin AdMinimal Bar - Minimize the Admin Bar scored84%from 54 tests.

About plugin

  • Plugin page: adminimal-bar
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Jun 3, 2023
  • Latest release: Jun 8, 2023
  • Number of updates: 12
  • Update frequency: every 0.4 days
  • Top authors: dcodeddev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /158 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.51ms] Passed 4 tests

A check of server-side resources used by AdMinimal Bar - Minimize the Admin Bar
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.92 ▼1.32
Dashboard /wp-admin3.33 ▲0.0349.96 ▲2.02
Posts /wp-admin/edit.php3.38 ▲0.0353.97 ▲4.17
Add New Post /wp-admin/post-new.php5.91 ▲0.0389.23 ▼16.58
Media Library /wp-admin/upload.php3.25 ▲0.0338.11 ▲1.85
AdMinimal Bar /wp-admin/options-general.php?page=adminimal-bar-settings3.2229.84

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 10 new options
New WordPress options

Browser metrics Passed 4 tests

AdMinimal Bar - Minimize the Admin Bar: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲8713.38 ▼1.189.15 ▲7.4643.86 ▲0.56
Dashboard /wp-admin2,199 ▲255.62 ▲0.0985.88 ▼10.5438.91 ▼1.61
Posts /wp-admin/edit.php2,104 ▲42.00 ▲0.0139.47 ▲2.7637.21 ▼1.25
Add New Post /wp-admin/post-new.php1,531 ▲323.23 ▲0.11669.38 ▲5.5151.52 ▼1.66
Media Library /wp-admin/upload.php1,401 ▲44.16 ▼0.0798.47 ▲1.8642.88 ▲2.90
AdMinimal Bar /wp-admin/options-general.php?page=adminimal-bar-settings8621.9922.9632.09

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/adminimal-bar/adminimal-bar.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/adminimal-bar/adminimal-bar-settings.php:146

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found


Plugin configuration Passed 29 tests

readme.txt Passed 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
4 plugin tags: workflow, admin bar, productivity, frontend

adminimal-bar/adminimal-bar.php Passed 13 tests

The primary PHP file in "AdMinimal Bar - Minimize the Admin Bar" version 1.0.3 is used by WordPress to initiate all plugin functionality
80 characters long description:
Minimize the WordPress admin bar on the frontend to keep focus on your workflow.

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
No dangerous file extensions were detected252 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.09
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 functions1392.86%
▷ Anonymous functions17.14%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin