100% address-bar-colorizer

Code Review | Address Bar Colorizer

WordPress plugin Address Bar Colorizer scored 100% from 54 tests.

About plugin

  • Plugin page: address-bar-color...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.7
  • WordPress version: 5.9.2
  • First release: Sep 8, 2016
  • Latest release: Dec 20, 2016
  • Number of updates: 4
  • Update frequency: every 25.8 days
  • Top authors: ParitoshBh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 1,001 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

Analyzing server-side resources used by Address Bar Colorizer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0556.75 ▲7.92
Dashboard /wp-admin3.44 ▲0.0332.98 ▼1.84
Posts /wp-admin/edit.php3.66 ▲0.0336.93 ▲0.16
Add New Post /wp-admin/post-new.php6.90 ▼0.0794.31 ▼1,164.65
Media Library /wp-admin/upload.php3.32 ▲0.0223.89 ▲0.25
Address Bar Colorizer /wp-admin/options-general.php?page=address-bar-colorizer-settings3.2923.02

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Address Bar Colorizer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,768 ▲2615.88 ▲0.276.75 ▲0.722.08 ▼0.14
Dashboard /wp-admin2,897 ▲436.14 ▲0.05118.77 ▼17.41154.23 ▼10.49
Posts /wp-admin/edit.php2,693 ▲23.23 ▲0.0162.00 ▼4.62140.62 ▼4.37
Add New Post /wp-admin/post-new.php1,787 ▲12619.22 ▲2.85387.18 ▼54.90171.34 ▲21.88
Media Library /wp-admin/upload.php1,706 ▲85.53 ▼0.02138.81 ▼3.14180.40 ▼9.29
Address Bar Colorizer /wp-admin/options-general.php?page=address-bar-colorizer-settings1,4143.0775.22119.75

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: url bar, google chrome, theme, mobile, color...

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

This is the main PHP file of "Address Bar Colorizer" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
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 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin169 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

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.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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions10100.00%
▷ Anonymous functions00.00%
▷ 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
PNG images were not found in this plugin