89% woo-checkout-field-editor-pro

Code Review | Checkout Field Editor (Checkout Manager) for WooCommerce

WordPress plugin Checkout Field Editor (Checkout Manager) for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: woo-checkout-fiel...
  • Plugin version: 2.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.4
  • WordPress version: 6.3.1
  • First release: Oct 23, 2015
  • Latest release: Nov 7, 2023
  • Number of updates: 212
  • Update frequency: every 13.9 days
  • Top authors: ThemeHigh (100%)

Code review

54 tests

User reviews

847 reviews

Install metrics

400,000+ active /6,145,928 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.38ms] Passed 4 tests

An overview of server-side resources used by Checkout Field Editor (Checkout Manager) for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.99 ▼5.91
Dashboard /wp-admin3.31 ▲0.0147.88 ▼4.21
Posts /wp-admin/edit.php3.36 ▲0.0149.08 ▼7.50
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.22 ▼15.81
Media Library /wp-admin/upload.php3.23 ▲0.0134.44 ▼4.31

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 60 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Checkout Field Editor (Checkout Manager) for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.27 ▲0.111.64 ▼0.0842.72 ▲0.52
Dashboard /wp-admin2,195 ▲155.53 ▼0.2984.00 ▼12.1239.25 ▼1.30
Posts /wp-admin/edit.php2,097 ▼61.94 ▼0.0039.19 ▼8.8734.48 ▼6.57
Add New Post /wp-admin/post-new.php1,526 ▼023.20 ▼0.23684.01 ▼16.4955.33 ▼0.12
Media Library /wp-admin/upload.php1,397 ▼64.21 ▼0.08102.62 ▼5.5843.66 ▼3.63

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

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 everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

woo-checkout-field-editor-pro/checkout-form-designer.php 85% from 13 tests

Analyzing the main PHP file in "Checkout Field Editor (Checkout Manager) for WooCommerce" version 2.0.0
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("woo-checkout-field-editor-pro.php" instead of "checkout-form-designer.php")
  • Requires at least: Required version must match the one declared in readme.txt ("4.9" instead of "3.0.0")

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 plugin5,675 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
PHP137673684,444
JavaScript3202531,036
SVG1600193
CSS2002

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity64.08
▷ Minimum class complexity1.00
▷ Maximum class complexity232.00
Average method complexity4.28
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes216.67%
▷ Concrete classes1083.33%
▷ Final classes00.00%
Methods224
▷ Static methods3917.41%
▷ Public methods15167.41%
▷ Protected methods00.00%
▷ Private methods7332.59%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.00%
Constants11
▷ Global constants654.55%
▷ Class constants545.45%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
23 compressed PNG files occupy 0.27MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/images/wp-plugins/extra-product-options.png2.41KB2.46KB0.00%
admin/assets/css/review-tab.png16.35KB17.02KB0.00%
admin/assets/images/wp-plugins/wishlist-compare.png2.38KB2.41KB0.00%
admin/assets/css/review-left.png8.22KB4.15KB▼ 49.47%
admin/assets/images/wp-plugins/job-manager.png2.62KB2.68KB0.00%