84% pbc-bottom-admin-bar

Code Review | Bottom Admin Bar

WordPress plugin Bottom Admin Bar scored84%from 54 tests.

About plugin

  • Plugin page: pbc-bottom-admin-bar
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 5, 2017
  • Latest release: Oct 5, 2017
  • Number of updates: 8
  • Update frequency: every 0.6 days
  • Top authors: stewarty (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /754 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Bottom Admin Bar
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.10 ▼5.00
Dashboard /wp-admin3.31 ▲0.0144.40 ▼9.93
Posts /wp-admin/edit.php3.36 ▲0.0046.99 ▼12.66
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.32 ▼18.41
Media Library /wp-admin/upload.php3.24 ▲0.0034.99 ▼0.20

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Bottom Admin Bar
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲7014.44 ▲0.052.20 ▲0.3042.47 ▼4.78
Dashboard /wp-admin2,206 ▲184.86 ▼0.05111.96 ▼24.9240.42 ▼12.08
Posts /wp-admin/edit.php2,092 ▼02.01 ▲0.0041.96 ▼1.7439.49 ▲5.77
Add New Post /wp-admin/post-new.php1,533 ▼023.49 ▲0.12672.80 ▲2.4557.05 ▲6.79
Media Library /wp-admin/upload.php1,388 ▼04.23 ▲0.0698.45 ▼4.5742.92 ▲0.06

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/pbc-bottom-admin-bar/pbc-bottom-admin-bar.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Requires at least: Invalid version format
The official readme.txt might help

pbc-bottom-admin-bar/pbc-bottom-admin-bar.php Passed 13 tests

"Bottom Admin Bar" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
52 characters long description:
Reposition the admin bar to the bottom of each page.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin123 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
Bourne Shell1191158
CSS12039
PHP17914
Markdown18012

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin