84% browser-address-bar-color

Code Review | Browser Address Bar Color

WordPress plugin Browser Address Bar Color scored 84% from 54 tests.

About plugin

  • Plugin page: browser-address-b...
  • Plugin version: 3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Apr 6, 2021
  • Latest release: Aug 23, 2023
  • Number of updates: 22
  • Update frequency: every 39.6 days
  • Top authors: mendibass (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active / 1,174 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
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Browser Address Bar Color
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.81 ▲3.21
Dashboard /wp-admin3.31 ▲0.0141.27 ▼7.33
Posts /wp-admin/edit.php3.36 ▲0.0146.56 ▲2.33
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.06 ▼12.26
Media Library /wp-admin/upload.php3.23 ▲0.0134.34 ▼0.39
Address Bar Color /wp-admin/themes.php?page=babc-options3.2733.92

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
babc_pages_list
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Browser Address Bar Color
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.60 ▲0.011.78 ▲0.0243.12 ▼1.56
Dashboard /wp-admin2,204 ▲135.78 ▼0.1094.87 ▼7.6338.16 ▼6.44
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0134.23 ▼8.6530.01 ▼4.75
Add New Post /wp-admin/post-new.php1,517 ▼217.64 ▼5.56699.15 ▲47.8551.73 ▼14.27
Media Library /wp-admin/upload.php1,392 ▲14.25 ▲0.0697.51 ▼4.4442.09 ▼4.24
Address Bar Color /wp-admin/themes.php?page=babc-options8552.0624.5231.57

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
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • babc_pages_list
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_user_locale() in wp-content/plugins/browser-address-bar-color/babcSettingsPage.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

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
8 plugin tags: address bar, address bar color, browser, meta tag, theme color...

browser-address-bar-color/browserAddressBarColor.php 92% from 13 tests

This is the main PHP file of "Browser Address Bar Color" version 3.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("browser-address-bar-color.php" instead of "browserAddressBarColor.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin348 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP45419252
JavaScript112196

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin