78% fluid-checkout

Code Review | Fluid Checkout for WooCommerce - Lite

WordPress plugin Fluid Checkout for WooCommerce - Lite scored78%from 54 tests.

About plugin

  • Plugin page: fluid-checkout
  • Plugin version: 3.0.6
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Jun 25, 2021
  • Latest release: Nov 16, 2023
  • Number of updates: 128
  • Update frequency: every 6.8 days
  • Top authors: diegoversiani (100%)

Code review

54 tests

User reviews

112 reviews

Install metrics

10,000+ active /206,397 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.03ms] Passed 4 tests

This is a short check of server-side resources used by Fluid Checkout for WooCommerce - Lite
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0635.11 ▼6.04
Dashboard /wp-admin3.36 ▲0.0646.97 ▼3.44
Posts /wp-admin/edit.php3.48 ▲0.1249.51 ▲4.09
Add New Post /wp-admin/post-new.php5.94 ▲0.0593.33 ▼7.83
Media Library /wp-admin/upload.php3.29 ▲0.0536.04 ▲1.18

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

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

Browser metrics Passed 4 tests

Fluid Checkout for WooCommerce - Lite: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲3314.67 ▲0.401.57 ▼0.4737.99 ▼7.23
Dashboard /wp-admin2,222 ▲455.61 ▼0.0690.13 ▲0.8442.05 ▲2.45
Posts /wp-admin/edit.php2,131 ▲312.15 ▲0.1940.59 ▲0.2238.40 ▲2.66
Add New Post /wp-admin/post-new.php1,556 ▲3023.30 ▲0.21697.72 ▲34.1261.79 ▲10.82
Media Library /wp-admin/upload.php1,427 ▲274.20 ▲0.00103.86 ▲1.0544.39 ▼0.09

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • fc_plugin_activation_time
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/fluid-checkout/templates/compat/plugins/lp-express-shipping-method-for-woocommerce/checkout/lpexpress_terminals.php
  • 7× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/fluid-checkout/templates/compat/plugins/curiero-plugin/templates/checkout-dpd-boxes-select.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/fluid-checkout/templates/compat/plugins/curiero-plugin/templates/checkout-lockers-select.php:4
    • > PHP Notice
      Undefined variable: field_id in wp-content/plugins/fluid-checkout/templates/compat/plugins/woo-shipping-dpd-baltic/checkout/form-shipping-dpd-terminals-with-map.php on line 15
    • > PHP Notice
      Undefined variable: field_id in wp-content/plugins/fluid-checkout/templates/compat/plugins/woo-shipping-dpd-baltic/checkout/form-shipping-dpd-terminals.php on line 15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/fluid-checkout/templates/compat/plugins/curiero-plugin/templates/checkout-collectpoint-select.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/fluid-checkout/templates/compat/plugins/woo-shipping-dpd-baltic/checkout/form-shipping-dpd-terminals.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/fluid-checkout/templates/compat/plugins/woo-shipping-dpd-baltic/checkout/form-shipping-dpd-terminals-with-map.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
5 plugin tags: multi-step, conversion, checkout, woocommerce, one-page

fluid-checkout/fluid-checkout.php 92% from 13 tests

The main PHP file in "Fluid Checkout for WooCommerce - Lite" ver. 3.0.6 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 260 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected49,588 lines of code in 964 files:
LanguageFilesBlank linesComment linesLines of code
PHP1695,3627,47412,643
CSS2601,5252411,653
PO File93,5644,66711,488
JavaScript652,0202,5206,676
Sass4552,8122,3316,084
Markdown11190584
JSON4110426
SVG122034

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity16.11
▷ Minimum class complexity1.00
▷ Maximum class complexity545.00
Average method complexity2.98
▷ Minimum method complexity1.00
▷ Maximum method complexity65.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes134
▷ Abstract classes00.00%
▷ Concrete classes134100.00%
▷ Final classes00.00%
Methods1,025
▷ Static methods60.59%
▷ Public methods1,01899.32%
▷ Protected methods20.20%
▷ Private methods50.49%
Functions9
▷ Named functions00.00%
▷ Anonymous functions9100.00%
Constants8
▷ Global constants225.00%
▷ Class constants675.00%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
12 PNG files occupy 0.09MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/admin/fc-layout-multi-step.png0.37KB0.38KB0.00%
images/admin/fc-template-minimalist.png2.21KB0.75KB▼ 65.96%
images/admin/addons/fc-google-address-autocomplete-icon.png22.06KB21.25KB▼ 3.68%
images/admin/fc-template-split.png2.24KB0.77KB▼ 65.54%
images/admin/addons/fluid-checkout-pro-icon.png3.39KB3.38KB0.09%