77% checkout-field-editor-checkoutify

Code Review | Checkout Field Editor - Checkoutify

WordPress plugin Checkout Field Editor - Checkoutify scored 77% from 54 tests.

About plugin

  • Plugin page: checkout-field-ed...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8.1
  • WordPress version: 5.8.1
  • First release: Sep 24, 2021
  • Latest release: Sep 24, 2021
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: rextheme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 82 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
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼146.32ms] Passed 4 tests

Analyzing server-side resources used by Checkout Field Editor - Checkoutify
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0033.83 ▲3.55
Dashboard /wp-admin3.06 ▲0.0042.61 ▼4.08
Posts /wp-admin/edit.php3.11 ▲0.0041.41 ▼5.73
Add New Post /wp-admin/post-new.php5.42 ▼0.0286.95 ▼568.95
Media Library /wp-admin/upload.php3.00 ▲0.0032.16 ▼6.51

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 60 new files
Database: no new tables, 1 new option
New WordPress options
cfe_do_activation_redirect

Browser metrics Passed 4 tests

Checking browser requirements for Checkout Field Editor - Checkoutify
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲9715.86 ▲0.239.54 ▼0.0846.00 ▼1.46
Dashboard /wp-admin2,973 ▲425.86 ▼0.20138.68 ▼8.71102.18 ▼16.99
Posts /wp-admin/edit.php2,739 ▼02.70 ▼0.0265.04 ▲0.1094.19 ▲5.91
Add New Post /wp-admin/post-new.php1,502 ▲418.54 ▼0.26351.93 ▼13.71114.40 ▲6.77
Media Library /wp-admin/upload.php1,810 ▲35.01 ▼0.04149.25 ▲9.67124.78 ▲7.78

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 1 option in the database
    • cfe_do_activation_redirect

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 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
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/checkout-field-editor-checkoutify/public/partials/checkout-field-editor-public-display.php
  • 11× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/checkout-field-editor-checkoutify/admin/partials/add-checkout-field-drawer.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/checkout-field-editor-checkoutify/admin/partials/confirmation-alert.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/checkout-field-editor-checkoutify/admin/partials/checkout-field-editor-admin-display.php:41
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/checkout-field-editor-checkoutify/admin/partials/confirmation-alert-restore.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/checkout-field-editor-checkoutify/admin/partials/edit-field-additional-tab.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/checkout-field-editor-checkoutify/admin/partials/confirmation-alert-restore.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/checkout-field-editor-checkoutify/admin/partials/edit-field-billing-tab.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/checkout-field-editor-checkoutify/admin/partials/edit-field-shipping-tab.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/checkout-field-editor-checkoutify/admin/partials/confirmation-alert-restore.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/checkout-field-editor-checkoutify/admin/partials/confirmation-alert-restore.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
You can take inspiration from this readme.txt

checkout-field-editor-checkoutify/checkout-fields-editor.php 77% from 13 tests

The entry point to "Checkout Field Editor - Checkoutify" version 1.0.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Description: Please don't use more than 140 characters for the plugin description (currently 148 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("checkout-field-editor-checkoutify.php" instead of "checkout-fields-editor.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected9,399 lines of code in 53 files:
LanguageFilesBlank linesComment linesLines of code
PHP371,0381,6224,456
CSS330153,106
Sass614121951
JavaScript3163141622
Markdown2670188
JSON20076

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity30.69
▷ Minimum class complexity1.00
▷ Maximum class complexity115.00
Average method complexity3.60
▷ Minimum method complexity1.00
▷ Maximum method complexity47.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods184
▷ Static methods189.78%
▷ Public methods13774.46%
▷ Protected methods63.26%
▷ Private methods4122.28%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin