90% address-bar-colorizer

Code Review | Address Bar Colorizer

WordPress plugin Address Bar Colorizer scored90%from 54 tests.

About plugin

  • Plugin page: address-bar-color...
  • Plugin version: 1.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0.1
  • WordPress version: 6.3.1
  • First release: Sep 8, 2016
  • Latest release: Aug 11, 2022
  • Number of updates: 5
  • Update frequency: every 432.6 days
  • Top authors: ParitoshBh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,763 total downloads

Benchmarks

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: ▼7.87ms] Passed 4 tests

A check of server-side resources used by Address Bar Colorizer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.03 ▼5.54
Dashboard /wp-admin3.33 ▼0.0244.41 ▼12.05
Posts /wp-admin/edit.php3.38 ▲0.0245.41 ▼1.31
Add New Post /wp-admin/post-new.php5.91 ▲0.0289.08 ▼7.03
Media Library /wp-admin/upload.php3.25 ▲0.0235.35 ▼6.87
Address Bar Colorizer /wp-admin/options-general.php?page=address-bar-colorizer-settings3.2231.60

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Address Bar Colorizer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.20 ▲0.081.79 ▲0.1339.73 ▼7.36
Dashboard /wp-admin2,199 ▲195.65 ▼0.0182.67 ▼13.4036.63 ▼2.41
Posts /wp-admin/edit.php2,104 ▲42.02 ▲0.0734.88 ▼2.6530.74 ▼5.50
Add New Post /wp-admin/post-new.php6,222 ▲4,69326.10 ▲3.04849.29 ▲223.8260.43 ▼3.69
Media Library /wp-admin/upload.php1,401 ▼24.25 ▼0.0296.68 ▼9.2843.75 ▼2.27
Address Bar Colorizer /wp-admin/options-general.php?page=address-bar-colorizer-settings1,0502.3547.7629.05

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 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)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
9 plugin tags: browser, address bar, color, theme, chrome...

address-bar-colorizer/address-bar-colorizer.php Passed 13 tests

The main PHP script in "Address Bar Colorizer" version 1.3 is automatically included on every request by WordPress
113 characters long description:
Sets color for each post (or sitewide) of website to colorize address bar of Google Chrome web browser on mobile.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin169 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP32682109
HTML1301257
JavaScript1023

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions10
▷ Named functions10100.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