89% synchronize-editor-and-acf-color-pickers

Code Review | Synchronize Editor and ACF Color Pickers 🎨

WordPress plugin Synchronize Editor and ACF Color Pickers 🎨 scored89%from 54 tests.

About plugin

  • Plugin page: synchronize-edito...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 6.3.1
  • First release: Feb 23, 2021
  • Latest release: Feb 23, 2021
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: Chaton666 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /418 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

This is a short check of server-side resources used by Synchronize Editor and ACF Color Pickers 🎨
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.41 ▼14.52
Dashboard /wp-admin3.32 ▲0.0250.33 ▼2.37
Posts /wp-admin/edit.php3.37 ▲0.0147.73 ▼7.07
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.03 ▼10.26
Media Library /wp-admin/upload.php3.25 ▲0.0137.66 ▼1.91

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Synchronize Editor and ACF Color Pickers 🎨
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.85 ▲0.881.58 ▼0.2541.61 ▼2.11
Dashboard /wp-admin2,206 ▲214.86 ▼1.01122.86 ▼0.4347.55 ▼10.24
Posts /wp-admin/edit.php2,089 ▼32.01 ▲0.0141.04 ▼3.2236.52 ▼0.67
Add New Post /wp-admin/post-new.php1,513 ▼617.60 ▼5.70653.43 ▼64.1153.00 ▼21.47
Media Library /wp-admin/upload.php1,382 ▼34.21 ▼0.01101.00 ▼7.0743.17 ▼4.68

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

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
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 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
6 plugin tags: color palette, acf, advanced custom fields, editor, gutenberg...

synchronize-editor-and-acf-color-pickers/sync-editor-acf-color-pickers.php 77% from 13 tests

The main file in "Synchronize Editor and ACF Color Pickers 🎨" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Domain Path: The domain path folder was not found ("/languages/")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("synchronize-editor-and-acf-color-pickers.php" instead of "sync-editor-acf-color-pickers.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected72 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1294372

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.65
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG images were found in this plugin