83% blue-admin-bar

Code Review | Blue Admin Bar

WordPress plugin Blue Admin Bar scored83%from 54 tests.

About plugin

  • Plugin page: blue-admin-bar
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1+
  • WordPress version: 6.3.1
  • First release: Nov 10, 2011
  • Latest release: Dec 14, 2012
  • Number of updates: 15
  • Update frequency: every 26.7 days
  • Top authors: helenyhou (93.33%)helen (13.33%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /4,852 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.75ms] Passed 4 tests

Server-side resources used by Blue Admin Bar
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.04 ▼0.41
Dashboard /wp-admin3.31 ▲0.0145.43 ▼3.20
Posts /wp-admin/edit.php3.36 ▲0.0146.19 ▼8.79
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.41 ▼10.60
Media Library /wp-admin/upload.php3.23 ▲0.0035.94 ▲3.17

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Blue Admin Bar
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4714.80 ▲0.621.83 ▼0.1144.69 ▲3.69
Dashboard /wp-admin2,208 ▲175.80 ▲0.9297.93 ▼8.1339.61 ▼0.70
Posts /wp-admin/edit.php2,091 ▲22.18 ▲0.1236.13 ▼1.6533.17 ▲1.07
Add New Post /wp-admin/post-new.php1,516 ▼2123.18 ▲0.15676.89 ▲3.4454.72 ▼3.85
Media Library /wp-admin/upload.php1,387 ▲24.17 ▼0.0699.65 ▲0.9643.29 ▲0.00

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • 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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blue-admin-bar/blue-admin-bar.php:11

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (3.2.1, Twenty Ten) image required
  • Tested up to: Version not formatted correctly
You can look at the official readme.txt

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

The principal PHP file in "Blue Admin Bar" v. 1.3 is loaded by WordPress automatically on each request
124 characters long description:
A pretty WordPress blue version of the admin bar. Supports BuddyPress when BP_USE_WP_ADMIN_BAR is true. RTL support for 3.3.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin170 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS23411158
PHP111012

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.60
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 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
12 PNG files occupy 0.81MB with 0.48MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-7.png57.51KB21.69KB▼ 62.28%
images/admin-bar-sprite.png1.93KB1.13KB▼ 41.44%
screenshot-10.png96.85KB33.71KB▼ 65.19%
screenshot-8.png110.84KB42.09KB▼ 62.03%
screenshot-4.png51.84KB17.77KB▼ 65.72%