84% bottom-admin-toolbar

Code Review | Bottom Admin Toolbar

WordPress plugin Bottom Admin Toolbar scored84%from 54 tests.

About plugin

  • Plugin page: bottom-admin-toolbar
  • Plugin version: 1.5.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0 or higher-6.2.1
  • WordPress version: 6.3.1
  • First release: Jul 22, 2020
  • Latest release: May 19, 2023
  • Number of updates: 148
  • Update frequency: every 7.0 days
  • Top authors: devloper00 (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /8,354 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼10.43ms] 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 /3.48 ▲0.0234.60 ▼4.23
Dashboard /wp-admin3.33 ▼0.0142.27 ▼18.23
Posts /wp-admin/edit.php3.38 ▲0.0347.85 ▼1.52
Add New Post /wp-admin/post-new.php5.91 ▲0.0379.10 ▼17.75
Media Library /wp-admin/upload.php3.26 ▲0.0335.32 ▼0.19
Bottom Admin Toolbar /wp-admin/options-general.php?page=bab-settings3.2227.89

Server storage [IO: ▲0.01MB] [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, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded

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 /2,819 ▲5814.23 ▼0.331.79 ▲0.2736.77 ▼3.61
Dashboard /wp-admin2,199 ▲225.63 ▲0.1195.16 ▲9.2442.30 ▼0.57
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0934.23 ▼4.8930.35 ▼5.39
Add New Post /wp-admin/post-new.php1,529 ▼223.67 ▲0.58691.11 ▲43.4854.29 ▲1.78
Media Library /wp-admin/upload.php1,404 ▲44.17 ▼0.2594.44 ▼5.4339.85 ▼5.41
Bottom Admin Toolbar /wp-admin/options-general.php?page=bab-settings8082.0024.7029.18

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

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:28

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

Optimizations

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.5.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 plugin136 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1114688
JavaScript161528
CSS10020

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.19
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ 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