90% ha-font-color-customizer

Code Review | HA Font Color Customizer

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

About plugin

  • Plugin page: ha-font-color-cus...
  • Plugin version: 1.1.0
  • 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: 20
  • Update frequency: every 16.8 days
  • Top authors: hiraansari (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

200+ active /1,220 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by HA Font Color Customizer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0241.07 ▲1.81
Dashboard /wp-admin3.31 ▲0.0052.09 ▼0.03
Posts /wp-admin/edit.php3.36 ▲0.0047.25 ▼0.73
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.02 ▼12.07
Media Library /wp-admin/upload.php3.23 ▲0.0040.07 ▲1.75

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for HA Font Color Customizer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲7514.26 ▼0.082.21 ▲0.4645.88 ▲1.69
Dashboard /wp-admin2,217 ▲375.60 ▼0.0192.30 ▲3.9444.67 ▲5.13
Posts /wp-admin/edit.php2,119 ▲192.02 ▲0.0336.28 ▼6.2038.57 ▲1.02
Add New Post /wp-admin/post-new.php1,540 ▲1223.08 ▼0.08678.04 ▼7.7757.73 ▲11.70
Media Library /wp-admin/upload.php1,416 ▲194.16 ▼0.10104.71 ▼8.1044.81 ▼6.36

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: change font colors, change body font color, wp color customizer, change hover color, change heading color...

ha-font-color-customizer/ha-font-color-customizer.php 92% from 13 tests

The principal PHP file in "HA Font Color Customizer" v. 1.1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 167 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin596 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP318475566
CSS15030

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.19
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected