94% admin-bar-plus

Code Review | Front-end Toolbar

WordPress plugin Front-end Toolbar scored 94% from 54 tests.

About plugin

  • Plugin page: admin-bar-plus
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.8
  • WordPress version: 5.9.2
  • First release: Jun 5, 2015
  • Latest release: Dec 9, 2021
  • Number of updates: 17
  • Update frequency: every 139.9 days
  • Top authors: kosvrouvas (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

70+ active / 1,835 total downloads

Benchmarks

Plugin footprint Passed 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.00MB] [CPU: ▼297.19ms] Passed 4 tests

Analyzing server-side resources used by Front-end Toolbar
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.0961.56 ▲0.64
Dashboard /wp-admin3.44 ▲0.0334.96 ▼4.56
Posts /wp-admin/edit.php3.67 ▲0.0338.63 ▼1.48
Add New Post /wp-admin/post-new.php6.91 ▼0.07104.35 ▼1,183.36
Media Library /wp-admin/upload.php3.32 ▲0.0230.96 ▲6.14

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Front-end Toolbar
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,916 ▲16215.78 ▼0.146.12 ▼0.062.58 ▼0.66
Dashboard /wp-admin2,885 ▲246.16 ▼0.03120.47 ▼18.40163.89 ▲1.03
Posts /wp-admin/edit.php2,694 ▲33.23 ▼0.0162.56 ▼2.90138.23 ▼8.69
Add New Post /wp-admin/post-new.php1,711 ▲5020.79 ▼2.02432.71 ▼19.92166.53 ▲9.73
Media Library /wp-admin/upload.php1,698 ▲35.50 ▼0.05140.09 ▼13.13191.30 ▼0.29

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means 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× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/admin-bar-plus/admin-bar-plus.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: site-name, front, admin, front-end, logged in...

admin-bar-plus/admin-bar-plus.php Passed 13 tests

The main PHP file in "Front-end Toolbar" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
121 characters long description:
This plugin adds the WordPress menu from the admin sidebar under the {site-name} menu on the front-end WordPress toolbar.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin196 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23426196

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.12
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin