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.1
  • 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: Feb 8, 2022
  • Number of updates: 14
  • Update frequency: every 9.9 days
  • Top authors: rextheme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 286 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: ▼164.75ms] 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.0031.22 ▲1.57
Dashboard /wp-admin3.06 ▼0.0033.21 ▼9.96
Posts /wp-admin/edit.php3.11 ▲0.0037.43 ▼2.79
Add New Post /wp-admin/post-new.php5.42 ▼0.0275.66 ▼647.81
Media Library /wp-admin/upload.php3.00 ▲0.0031.33 ▲7.52

Server storage [IO: ▲0.45MB] [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: 62 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,666 ▲6515.80 ▼0.104.93 ▼0.6877.17 ▲3.73
Dashboard /wp-admin2,929 ▲336.04 ▼0.24115.08 ▼17.89167.49 ▼8.54
Posts /wp-admin/edit.php2,740 ▼03.24 ▲0.1465.50 ▼1.81136.91 ▼8.41
Add New Post /wp-admin/post-new.php3,917 ▲18719.11 ▲0.54406.58 ▼42.57168.91 ▼3.57
Media Library /wp-admin/upload.php1,755 ▲35.50 ▼0.05151.07 ▼0.60183.96 ▲0.18

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/confirmation-alert-restore.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/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
    • > 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/edit-checkout-field-drawer.php:11
    • > 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/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/edit-field-additional-tab.php:11

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.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 148 characters long)
  • 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 ("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,482 lines of code in 53 files:
LanguageFilesBlank linesComment linesLines of code
PHP379841,8434,529
CSS330153,106
Sass614121951
JavaScript3163141622
Markdown2670188
JSON10055
XML141231

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.41
Average class complexity32.56
▷ Minimum class complexity1.00
▷ Maximum class complexity115.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity47.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods190
▷ Static methods2312.11%
▷ Public methods14274.74%
▷ Protected methods63.16%
▷ Private methods4222.11%
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