78% color-picker-for-contact-form-7

Code Review | Color Picker For Contact Form 7

WordPress plugin Color Picker For Contact Form 7 scored78%from 54 tests.

About plugin

  • Plugin page: color-picker-for-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.2.2
  • WordPress version: 6.3.1
  • First release: Jul 20, 2022
  • Latest release: Jul 3, 2023
  • Number of updates: 4
  • Update frequency: every 87.3 days
  • Top authors: howdytheme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /253 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
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼3.06ms] Passed 4 tests

Server-side resources used by Color Picker For Contact Form 7
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.92 ▼1.79
Dashboard /wp-admin3.36 ▲0.0656.58 ▲6.08
Posts /wp-admin/edit.php3.41 ▲0.0549.41 ▲3.01
Add New Post /wp-admin/post-new.php5.96 ▲0.0783.01 ▼11.01
Media Library /wp-admin/upload.php3.28 ▲0.0536.83 ▼2.44

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Color Picker For Contact Form 7: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,935 ▲18913.86 ▼0.667.43 ▲5.4443.49 ▲3.47
Dashboard /wp-admin2,231 ▲404.87 ▲0.01110.08 ▲1.9541.91 ▼4.23
Posts /wp-admin/edit.php2,117 ▲282.08 ▲0.0936.10 ▼3.4632.63 ▼1.81
Add New Post /wp-admin/post-new.php6,307 ▲4,78424.01 ▲0.66989.99 ▲359.3361.37 ▲9.94
Media Library /wp-admin/upload.php1,416 ▲314.25 ▲0.05102.69 ▼0.9244.72 ▲2.88

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

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

Smoke tests 50% 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)
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 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
Please fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/color-picker-for-contact-form-7/color-picker-for-contact-form-7.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/color-picker-for-contact-form-7/inc/tag.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/color-picker-for-contact-form-7/inc/form-tag.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Contributors: Plugin contributors not specified
The official readme.txt might help

color-picker-for-contact-form-7/color-picker-for-contact-form-7.php Passed 13 tests

The main file in "Color Picker For Contact Form 7" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
48 characters long description:
This plugin allows Enables adding a color field.

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
Good job! No executable or dangerous file extensions detected2,790 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript47203402,589
PHP44111193
CSS2008

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.07
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin