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

Code Review | Checkout Field Editor and Manager for WooCommerce

WordPress plugin Checkout Field Editor and Manager for WooCommerce scored 84% from 54 tests.

About plugin

  • Plugin page: checkout-field-ed...
  • Plugin version: 2.1.17
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8
  • WordPress version: 5.8.1
  • First release: Aug 2, 2019
  • Latest release: Oct 4, 2021
  • Number of updates: 60
  • Update frequency: every 13.2 days
  • Top authors: acowebs (91.67%)acowebscd (10%)Otto42 (3.33%)

Code review

54 tests

User reviews

62 reviews

Install metrics

10,000+ active / 73,462 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.22MB] [CPU: ▼147.25ms] Passed 4 tests

An overview of server-side resources used by Checkout Field Editor and Manager for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.96 ▲0.2445.22 ▲17.78
Dashboard /wp-admin3.31 ▲0.2552.40 ▼11.64
Posts /wp-admin/edit.php3.36 ▲0.2555.82 ▲9.69
Add New Post /wp-admin/post-new.php5.61 ▲0.1895.88 ▼583.41
Media Library /wp-admin/upload.php3.19 ▲0.1931.55 ▼3.65

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 2 new options
New WordPress options
awcfe_version
awcfe_install_date

Browser metrics Passed 4 tests

A check of browser resources used by Checkout Field Editor and Manager for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲8816.06 ▲0.4412.93 ▼1.7346.26 ▼6.36
Dashboard /wp-admin2,974 ▲436.15 ▲0.17163.21 ▲8.20117.88 ▼10.16
Posts /wp-admin/edit.php2,741 ▲22.72 ▲0.0283.19 ▲14.0789.55 ▼0.80
Add New Post /wp-admin/post-new.php1,617 ▲3621.44 ▲1.17324.59 ▼95.93113.65 ▼3.92
Media Library /wp-admin/upload.php1,809 ▲24.97 ▼0.09164.37 ▲0.70114.46 ▼1.85

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 2 options in the database
    • awcfe_install_date
    • awcfe_version

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
  • 2× 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:25

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 93% from 29 tests

readme.txt 94% 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:
  • 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 and Manager for WooCommerce" version 2.1.17 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 detected1,827 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP84514781,561
CSS21313173
SVG40091
JavaScript2002

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 complexity78.00
▷ Minimum class complexity4.00
▷ Maximum class complexity167.00
Average method complexity5.77
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods73
▷ Static methods56.85%
▷ Public methods7298.63%
▷ Protected methods00.00%
▷ Private methods11.37%
Functions8
▷ Named functions450.00%
▷ Anonymous functions450.00%
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%