84% admin-bar-plus

Code Review | Front-end Toolbar

WordPress plugin Front-end Toolbar scored84%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: 6.3.1
  • 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

60+ active /2,216 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.53ms] 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.53 ▲0.0742.18 ▲0.01
Dashboard /wp-admin3.33 ▲0.0356.17 ▲5.41
Posts /wp-admin/edit.php3.38 ▲0.0251.74 ▲3.15
Add New Post /wp-admin/post-new.php5.91 ▲0.0291.29 ▼7.81
Media Library /wp-admin/upload.php3.25 ▲0.0235.58 ▼5.46

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Front-end Toolbar
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,885 ▲9914.28 ▼0.011.87 ▼0.4043.84 ▲1.78
Dashboard /wp-admin2,195 ▲185.57 ▼0.0494.94 ▼7.8642.62 ▼1.31
Posts /wp-admin/edit.php2,100 ▲32.02 ▲0.0134.71 ▼1.7634.69 ▼2.42
Add New Post /wp-admin/post-new.php1,528 ▼023.33 ▲0.33650.83 ▼13.5758.12 ▲5.09
Media Library /wp-admin/upload.php1,394 ▼64.17 ▲0.0698.25 ▼21.2942.47 ▼5.48

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • 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)
Good news, no errors were detected

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 task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/admin-bar-plus/admin-bar-plus.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: front-end, admin, admin bar, site-name, toolbar...

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

The main PHP script in "Front-end Toolbar" version 1.1 is automatically included on every request by WordPress
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 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin196 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23426196

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin