84% admin-bar-color

Code Review | Admin Bar Color

WordPress plugin Admin Bar Color scored84%from 54 tests.

About plugin

  • Plugin page: admin-bar-color
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.3.1
  • WordPress version: 6.3.1
  • First release: Dec 16, 2013
  • Latest release: Oct 27, 2015
  • Number of updates: 9
  • Update frequency: every 75.7 days
  • Top authors: eduardozulian (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

100+ active /6,276 total downloads


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.01MB] [CPU: ▼10.72ms] Passed 4 tests

This is a short check of server-side resources used by Admin Bar Color
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.0632.21 ▼7.80
Dashboard /wp-admin3.31 ▲0.0150.68 ▼4.27
Posts /wp-admin/edit.php3.36 ▲0.0148.05 ▼12.85
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.50 ▼17.97
Media Library /wp-admin/upload.php3.23 ▲0.0136.47 ▼0.30

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Admin Bar Color
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.40 ▲0.221.87 ▲0.3041.55 ▼1.72
Dashboard /wp-admin2,203 ▲154.87 ▼1.0198.79 ▼11.7743.45 ▼2.17
Posts /wp-admin/edit.php2,086 ▼62.01 ▲0.0432.89 ▼7.8139.09 ▲0.14
Add New Post /wp-admin/post-new.php1,535 ▲723.09 ▼0.01649.22 ▲39.3853.09 ▼0.56
Media Library /wp-admin/upload.php1,385 ▼64.25 ▲0.0196.33 ▼3.6142.95 ▼2.96

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • wp_admin_color_schemes
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/admin-bar-color/admin-bar-color.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: color scheme, toolbar, admin bar

admin-bar-color/admin-bar-color.php 92% from 13 tests

The primary PHP file in "Admin Bar Color" version 1.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin52 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ 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
There were not PNG files found in your plugin