84% acf-rgba-color-picker

Code Review | ACF RGBA Color Picker

WordPress plugin ACF RGBA Color Picker scored84%from 54 tests.

About plugin

  • Plugin page: acf-rgba-color-pi...
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.5
  • WordPress version: 6.3.1
  • First release: Mar 19, 2017
  • Latest release: Aug 22, 2020
  • Number of updates: 22
  • Update frequency: every 56.9 days
  • Top authors: tmconnect (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

9,000+ active /40,189 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼12.27ms] Passed 4 tests

This is a short check of server-side resources used by ACF RGBA Color Picker
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.94 ▼2.13
Dashboard /wp-admin3.31 ▼0.0454.26 ▼15.28
Posts /wp-admin/edit.php3.36 ▲0.0050.99 ▼5.53
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.42 ▼26.14
Media Library /wp-admin/upload.php3.23 ▲0.0041.49 ▲4.84

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by ACF RGBA Color Picker
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.18 ▼0.382.07 ▲0.1943.85 ▲1.00
Dashboard /wp-admin2,195 ▲155.56 ▼0.1194.80 ▲1.7642.86 ▲0.01
Posts /wp-admin/edit.php2,097 ▼31.98 ▼0.0536.77 ▼3.7334.66 ▼7.77
Add New Post /wp-admin/post-new.php1,526 ▼223.15 ▲0.05694.60 ▲38.4355.60 ▲3.36
Media Library /wp-admin/upload.php1,391 ▼34.17 ▲0.04104.14 ▲3.2545.11 ▼0.34

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/acf-rgba-color-picker/fields/acf-rgba-color-picker-v5.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: color picker, acf, advanced custom fields, rgba color picker, color...

acf-rgba-color-picker/acf-rgba-color-picker.php 92% from 13 tests

The main PHP script in "ACF RGBA Color Picker" version 1.2.2 is automatically included on every request by WordPress
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
Good job! No executable or dangerous file extensions detected487 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PO File24242149

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity9.00
▷ Minimum class complexity6.00
▷ Maximum class complexity12.00
Average method complexity2.23
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants1100.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 were not PNG files found in your plugin