94% bottom-admin-toolbar

Code Review | Bottom Admin Toolbar

WordPress plugin Bottom Admin Toolbar scored 94% from 54 tests.

About plugin

  • Plugin page: bottom-admin-toolbar
  • Plugin version: 1.4.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0 or higher-5.8
  • WordPress version: 5.8.1
  • First release: Jul 22, 2020
  • Latest release: Oct 28, 2021
  • Number of updates: 140
  • Update frequency: every 3.3 days
  • Top authors: devloper00 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active / 2,921 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

Analyzing server-side resources used by Bottom Admin Toolbar
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1334.26 ▲10.70
Dashboard /wp-admin3.07 ▲0.0147.62 ▲3.10
Posts /wp-admin/edit.php3.12 ▲0.0135.38 ▼6.52
Add New Post /wp-admin/post-new.php5.43 ▼0.0090.53 ▼560.03
Media Library /wp-admin/upload.php3.01 ▼0.0032.61 ▼3.69

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Bottom Admin Toolbar
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,832 ▲23616.27 ▲0.3811.33 ▲3.6246.92 ▼0.50
Dashboard /wp-admin2,970 ▲395.90 ▼0.03129.75 ▼14.30101.84 ▼6.09
Posts /wp-admin/edit.php2,739 ▼02.69 ▼0.0069.54 ▲7.1992.81 ▲6.92
Add New Post /wp-admin/post-new.php1,672 ▲219.09 ▲2.02379.78 ▲36.58109.37 ▲3.04
Media Library /wp-admin/upload.php1,807 ▼35.00 ▲0.00148.60 ▼2.52116.22 ▼6.42

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
Uninstaller ran successfully

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)
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/bottom-admin-toolbar/bottom-admin-toolbar.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found


Plugin configuration 93% 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
These attributes need your attention:
  • Requires at least: The plugin version is formatted incorrectly
The official readme.txt is a good inspiration

bottom-admin-toolbar/bottom-admin-toolbar.php 92% from 13 tests

"Bottom Admin Toolbar" version 1.4.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Requires at least: Please use periods and digits for the required version (ex. "7.0" instead of "3.0 or higher")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin56 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants3100.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
There were not PNG files found in your plugin