icon-128x128
  • 83% woo-checkout-regsiter-field-editor

    Code Review | WooCommerce Checkout Field Editor (Checkout Manager)

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

    About plugin

    • Plugin page: woo-checkout-regs...
    • Plugin version: 2.0.12
    • PHP compatiblity: 5.6+
    • PHP version: 7.4.16
    • WordPress compatibility: 3.0.0-6.3.1
    • WordPress version: 6.3.1
    • First release: Aug 28, 2018
    • Latest release: Nov 15, 2023
    • Number of updates: 282
    • Update frequency: every 6.8 days
    • Top authors: jcodex (100%)

    Code review

    54 tests

    User reviews

    23 reviews

    Install metrics

    3,000+ active /62,464 total downloads

    Benchmarks

    Plugin footprint 83% from 16 tests

    Installer Passed 1 test

    🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
    This plugin's installer ran successfully

    Server metrics [RAM: ▲0.11MB] [CPU: ▲3.02ms] Passed 4 tests

    This is a short check of server-side resources used by WooCommerce Checkout Field Editor (Checkout Manager)
    This plugin has minimal impact on server resources
    PageMemory (MB)CPU Time (ms)
    Home /3.58 ▲0.1140.04 ▲3.24
    Dashboard /wp-admin3.42 ▲0.1252.90 ▲4.75
    Posts /wp-admin/edit.php3.53 ▲0.1855.91 ▲4.28
    Add New Post /wp-admin/post-new.php6.00 ▲0.1196.05 ▼0.20
    Media Library /wp-admin/upload.php3.34 ▲0.1138.00 ▲6.07

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

    Filesystem and database footprint
    There were no storage issued detected upon installing this plugin
    Filesystem: 21 new files
    Database: no new tables, 7 new options
    New WordPress options
    db_upgraded
    theysaidso_admin_options
    widget_recent-posts
    can_compress_scripts
    jwcfe_activation_redirect
    widget_theysaidso_widget
    widget_recent-comments

    Browser metrics Passed 4 tests

    This is an overview of browser requirements for WooCommerce Checkout Field Editor (Checkout Manager)
    This plugin has a minimal impact on browser resources
    PageNodesMemory (MB)Script (ms)Layout (ms)
    Home /2,790 ▲2814.07 ▼0.282.13 ▲0.3641.32 ▼1.77
    Dashboard /wp-admin2,192 ▲125.56 ▼0.05108.17 ▲15.8947.55 ▲3.99
    Posts /wp-admin/edit.php2,106 ▲61.98 ▼0.0548.69 ▲5.8042.34 ▲2.89
    Add New Post /wp-admin/post-new.php1,526 ▼021.10 ▼2.29776.99 ▲62.1763.50 ▲12.18
    Media Library /wp-admin/upload.php1,397 ▼64.22 ▲0.08110.10 ▲2.8146.00 ▲4.36

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

    🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
    You still need to fix the following
    • This plugin does not fully uninstall, leaving 7 options in the database
      • can_compress_scripts
      • widget_theysaidso_widget
      • widget_recent-posts
      • jwcfe_activation_redirect
      • db_upgraded
      • theysaidso_admin_options
      • widget_recent-comments

    Smoke tests 75% from 4 tests

    Server-side errors Passed 1 test

    🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
    Good news, no errors were detected

    SRP 50% from 2 tests

    🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
    Almost there! Just fix the following items
    • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
      • > /wp-content/plugins/woo-checkout-regsiter-field-editor/classes/class-jwcfe-wc-checkout-field-editor-export-handler.php
      • > /wp-content/plugins/woo-checkout-regsiter-field-editor/main.php
      • > /wp-content/plugins/woo-checkout-regsiter-field-editor/classes/class-jwcfe-wc-checkout-field-editor.php

    User-side errors Passed 1 test

    🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
    No browser errors were detected

    Optimizations

    Plugin configuration 83% 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
    Attributes that require attention:
    • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
    The official readme.txt might help

    woo-checkout-regsiter-field-editor/main.php 69% from 13 tests

    Analyzing the main PHP file in "WooCommerce Checkout Field Editor (Checkout Manager)" version 2.0.12
    The following require your attention:
    • Requires at least: Required version must be the same as the one declared in readme.txt ("4.9" instead of "3.0.0")
    • Description: The description should be shorter than 140 characters (currently 178 characters long)
    • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
    • Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-checkout-regsiter-field-editor.php" instead of "main.php")

    Code Analysis Passed 3 tests

    File types Passed 1 test

    🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
    Everything looks great! No dangerous files found in this plugin3,695 lines of code in 8 files:
    LanguageFilesBlank linesComment linesLines of code
    JavaScript3523561,656
    PHP35951971,639
    CSS2423400

    PHP code Passed 2 tests

    A brief analysis of cyclomatic complexity and code structure for this plugin
    There were no cyclomatic complexity issued detected
    Cyclomatic complexity
    Average complexity per logical line of code0.57
    Average class complexity92.50
    ▷ Minimum class complexity10.00
    ▷ Maximum class complexity175.00
    Average method complexity6.38
    ▷ Minimum method complexity1.00
    ▷ Maximum method complexity51.00
    Code structure
    Namespaces0
    Interfaces0
    Traits0
    Classes2
    ▷ Abstract classes00.00%
    ▷ Concrete classes2100.00%
    ▷ Final classes00.00%
    Methods36
    ▷ Static methods12.78%
    ▷ Public methods3597.22%
    ▷ Protected methods00.00%
    ▷ Private methods12.78%
    Functions28
    ▷ Named functions2692.86%
    ▷ Anonymous functions27.14%
    Constants4
    ▷ Global constants4100.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
    6 PNG files occupy 0.05MB with 0.03MB in potential savings
    Potential savings
    Compression of 5 random PNG files using pngquant
    FileSize - originalSize - compressedSavings
    assets/css/upgrade-btn.png7.61KB2.20KB▼ 71.09%
    assets/css/update_notify.png26.08KB4.34KB▼ 83.36%
    assets/docicon.png0.54KB0.47KB▼ 14.52%
    assets/css/tick.png3.05KB0.27KB▼ 91.20%
    assets/css/Upgrade-to-premium-version.png13.78KB5.22KB▼ 62.15%