83% checkout-field-editor-and-manager-for-woocommerce

Code Review | Checkout Field Editor for WooCommerce - Checkout Manager

WordPress plugin Checkout Field Editor for WooCommerce - Checkout Manager scored83%from 54 tests.

About plugin

  • Plugin page: checkout-field-ed...
  • Plugin version: 2.2.16
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Aug 2, 2019
  • Latest release: Oct 16, 2023
  • Number of updates: 90
  • Update frequency: every 17.1 days
  • Top authors: acowebs (61.11%)acowebscd (40%)Otto42 (2.22%)

Code review

54 tests

User reviews

127 reviews

Install metrics

20,000+ active /297,526 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 gracefully, with no errors

Server metrics [RAM: ▲0.24MB] [CPU: ▼4.87ms] Passed 4 tests

An overview of server-side resources used by Checkout Field Editor for WooCommerce - Checkout Manager
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.1940.78 ▲1.78
Dashboard /wp-admin3.57 ▲0.2352.01 ▼11.18
Posts /wp-admin/edit.php3.69 ▲0.3349.80 ▲2.96
Add New Post /wp-admin/post-new.php6.17 ▲0.2886.92 ▼11.98
Media Library /wp-admin/upload.php3.49 ▲0.2739.51 ▲1.90

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
awcfe_install_date
awcfe_version
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Checkout Field Editor for WooCommerce - Checkout Manager
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.27 ▼0.091.65 ▲0.1044.58 ▲6.66
Dashboard /wp-admin2,200 ▲265.57 ▲0.0084.20 ▼4.6041.02 ▲1.12
Posts /wp-admin/edit.php2,105 ▲82.03 ▲0.0434.21 ▼2.7534.47 ▲0.02
Add New Post /wp-admin/post-new.php1,531 ▲323.05 ▼0.11670.18 ▲10.3453.56 ▲0.17
Media Library /wp-admin/upload.php1,402 ▲84.17 ▲0.0292.34 ▼10.4742.67 ▼4.10

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 8 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • awcfe_version
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • awcfe_install_date

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'AWCFE_Ml' not found in wp-content/plugins/checkout-field-editor-and-manager-for-woocommerce/includes/views/admin-root.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/checkout-field-editor-and-manager-for-woocommerce/start.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'AWCFE_Ml' not found in wp-content/plugins/checkout-field-editor-and-manager-for-woocommerce/includes/views/admin-settings.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 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
  • Donate link: Please fix this invalid URI: ""
The official readme.txt might help

checkout-field-editor-and-manager-for-woocommerce/start.php 92% from 13 tests

The primary PHP file in "Checkout Field Editor for WooCommerce - Checkout Manager" version 2.2.16 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("checkout-field-editor-and-manager-for-woocommerce.php" instead of "start.php")

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
Good job! No executable or dangerous file extensions detected2,446 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP95215112,031
CSS2814167
JavaScript37193
SVG40091
Sass17064

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.72
Average class complexity103.20
▷ Minimum class complexity30.00
▷ Maximum class complexity255.00
Average method complexity6.32
▷ Minimum method complexity1.00
▷ Maximum method complexity73.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods88
▷ Static methods55.68%
▷ Public methods8798.86%
▷ Protected methods00.00%
▷ Private methods11.14%
Functions9
▷ Named functions444.44%
▷ Anonymous functions555.56%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/linesgp.png20.20KB7.58KB▼ 62.47%
assets/images/loading_ui.png2.07KB1.67KB▼ 19.42%