90% ha-background-color-customizer

Code Review | HA Background Color Customizer

WordPress plugin HA Background Color Customizer scored90%from 54 tests.

About plugin

  • Plugin page: ha-background-col...
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.6.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3.1
  • WordPress version: 6.3.1
  • First release: Nov 1, 2022
  • Latest release: Oct 3, 2023
  • Number of updates: 21
  • Update frequency: every 16.0 days
  • Top authors: hiraansari (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active /1,035 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
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼8.73ms] Passed 4 tests

An overview of server-side resources used by HA Background Color Customizer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0736.78 ▼2.67
Dashboard /wp-admin3.36 ▲0.0242.91 ▼18.41
Posts /wp-admin/edit.php3.42 ▲0.0640.69 ▼6.59
Add New Post /wp-admin/post-new.php5.95 ▲0.0684.93 ▼7.24
Media Library /wp-admin/upload.php3.29 ▲0.0634.22 ▼1.07

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for HA Background Color Customizer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲5014.25 ▼0.031.78 ▲0.2743.58 ▲0.09
Dashboard /wp-admin2,217 ▲405.58 ▼0.0885.92 ▼2.9440.36 ▲2.19
Posts /wp-admin/edit.php2,119 ▲192.04 ▲0.0938.43 ▼0.9936.60 ▼2.75
Add New Post /wp-admin/post-new.php1,540 ▲1423.04 ▼0.04602.22 ▼16.0846.44 ▼26.98
Media Library /wp-admin/upload.php1,419 ▲164.26 ▲0.0299.34 ▼6.2643.05 ▼2.45

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: custom background colors, change nav background color, change body background color, change background colors, change dropdown background color...

ha-background-color-customizer/ha-background-color-customizer.php Passed 13 tests

The main file in "HA Background Color Customizer" v. 1.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
127 characters long description:
Customize Background color of page body, header, footer, nav/nav:hover, button/button:hover, dropdown menu, dropdown tab hover.

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
Everything looks great! No dangerous files found in this plugin387 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP312353320
CSS114067

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG files were detected