68% qodax-checkout-manager

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

WordPress plugin WooCommerce Checkout Field Editor (Qodax Checkout Manager) scored68%from 54 tests.

About plugin

  • Plugin page: qodax-checkout-ma...
  • Plugin version: 1.1.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.0
  • WordPress version: 6.3.1
  • First release: Nov 5, 2021
  • Latest release: Oct 25, 2022
  • Number of updates: 8
  • Update frequency: every 44.4 days
  • Top authors: kirillbdev (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active /1,344 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.63ms] Passed 4 tests

Analyzing server-side resources used by WooCommerce Checkout Field Editor (Qodax Checkout Manager)
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.91 ▼2.63
Dashboard /wp-admin3.34 ▲0.0446.57 ▼4.91
Posts /wp-admin/edit.php3.45 ▲0.1048.78 ▼0.92
Add New Post /wp-admin/post-new.php5.94 ▲0.0581.31 ▼18.07
Media Library /wp-admin/upload.php3.26 ▲0.0333.18 ▼0.19
Qodax Checkout Manager /wp-admin/admin.php?page=qodax_checkout_manager3.2730.41

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 47 new files
Database: 1 new table, 7 new options
New tables
wp_qodax_checkout_manager_fields
New WordPress options
db_upgraded
theysaidso_admin_options
qodax_checkout_manager_migrations
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommerce Checkout Field Editor (Qodax Checkout Manager)
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,863 ▲12814.89 ▲0.221.86 ▲0.0539.70 ▼9.70
Dashboard /wp-admin2,266 ▲785.85 ▲0.93125.47 ▲20.3140.97 ▼0.23
Posts /wp-admin/edit.php2,155 ▲632.59 ▲0.5453.08 ▲12.7035.65 ▼2.72
Add New Post /wp-admin/post-new.php1,572 ▲3923.79 ▲0.46672.32 ▲10.1844.95 ▼28.98
Media Library /wp-admin/upload.php1,454 ▲635.11 ▲0.81110.79 ▲9.0942.13 ▼8.34
Qodax Checkout Manager /wp-admin/admin.php?page=qodax_checkout_manager8402.5248.3739.98

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_qodax_checkout_manager_fields
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • widget_recent-posts
    • qodax_checkout_manager_migrations
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
    • > GET request to /wp-admin/admin.php?page=qodax_checkout_manager
    • > POST request to /wp-admin/admin-ajax.php
    • > Error in wp-content/plugins/qodax-checkout-manager/src/Services/FieldService.php+35
    Uncaught Error: Call to undefined function Qodax\CheckoutManager\Services\wc() in wp-content/plugins/qodax-checkout-manager/src/Services/FieldService.php:35
    Stack trace:
    #0 wp-content/plugins/qodax-checkout-manager/src/Http/Controllers/FieldsController.php(30): Qodax\CheckoutManager\Services\FieldService->getCheckoutFields()
    #1 [internal function]: Qodax\CheckoutManager\Http\Controllers\FieldsController->getFields()
    #2 wp-content/plugins/qodax-checkout-manager/src/Foundation/Routing/Route.php(74): call_user_func()
    #3 wp-content/plugins/qodax-checkout-manager/src/Foundation/Routing/Router.php(35): Qodax\CheckoutManager\Foundation\Routing\Route->dispatch()
    #4 wp-includes/class-wp-hook.php(310): Qodax\CheckoutManager\Foundation\Routing\Router->dispatchAction()
    #5 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #6 wp-includes/plugin.php(517): WP_Hook->do_action()
    #7 /va

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=qodax_checkout_manager
    • > Network (severe)
    wp-admin/admin-ajax.php - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
    • > GET request to /wp-admin/admin.php?page=qodax_checkout_manager
    • > Console-api (severe) in unknown
    /wp-content/plugins/qodax-checkout-manager/assets/js/checkout-editor.min.js?ver=1666719426 1:11795 Object

Optimizations

Plugin configuration 97% 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
These attributes need to be fixed: You can look at the official readme.txt

qodax-checkout-manager/qodax-checkout-manager.php Passed 13 tests

The primary PHP file in "WooCommerce Checkout Field Editor (Qodax Checkout Manager)" version 1.1.1 is used by WordPress to initiate all plugin functionality
105 characters long description:
Customize and manage checkout fields in your WooCommerce store with a simple and user-friendly interface.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,605 lines of code in 43 files:
LanguageFilesBlank linesComment linesLines of code
PHP404105981,598
JSON1005
CSS1001
JavaScript1011

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity4.84
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity1.90
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces18
Interfaces2
Traits0
Classes30
▷ Abstract classes310.00%
▷ Concrete classes2790.00%
▷ Final classes27.41%
Methods150
▷ Static methods2617.33%
▷ Public methods14093.33%
▷ Protected methods00.00%
▷ Private methods106.67%
Functions5
▷ Named functions240.00%
▷ Anonymous functions360.00%
Constants7
▷ Global constants457.14%
▷ Class constants342.86%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin