68% cartflows

Code Review | WooCommerce Checkout & Funnel Builder by CartFlows – Create High Converting Stores For WooCommerce

WordPress plugin WooCommerce Checkout & Funnel Builder by CartFlows – Create High Converting Stores For WooCommerce scored68%from 54 tests.

About plugin

  • Plugin page: cartflows
  • Plugin version: 2.0.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.4
  • WordPress version: 6.3.1
  • First release: Nov 30, 2018
  • Latest release: Nov 10, 2023
  • Number of updates: 135
  • Update frequency: every 13.4 days
  • Top authors: sandesh055 (54.07%)cartflowswp (37.04%)Nikschavan (10.37%)

Code review

54 tests

User reviews

330 reviews

Install metrics

200,000+ active /6,032,433 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲4.29MB] [CPU: ▲45.18ms] 75% from 4 tests

An overview of server-side resources used by WooCommerce Checkout & Funnel Builder by CartFlows – Create High Converting Stores For WooCommerce
Please fix the following
  • RAM: You should keep total memory usage under 10MB (currently 10.93MB on /wp-admin/admin.php?page=cartflows&path=store-checkout)
PageMemory (MB)CPU Time (ms)
Home /6.69 ▲3.2360.27 ▲20.71
Dashboard /wp-admin7.95 ▲4.6493.16 ▲47.36
Posts /wp-admin/edit.php7.99 ▲4.63103.54 ▲58.54
Add New Post /wp-admin/post-new.php23.74 ▲17.85178.52 ▲75.50
Media Library /wp-admin/upload.php7.88 ▲4.6587.43 ▲54.10
Dashboard /wp-admin/admin.php?page=cartflows10.93100.61
Funnels /wp-admin/admin.php?page=cartflows&path=flows10.9395.10
Scheduled Actions /wp-admin/tools.php?page=action-scheduler8.06114.38
Store Checkout /wp-admin/admin.php?page=cartflows&path=store-checkout10.93115.50

Server storage [IO: ▲17.64MB] [DB: ▲0.21MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 634 new files
Database: 4 new tables, 11 new options
New tables
wp_actionscheduler_logs
wp_actionscheduler_claims
wp_actionscheduler_groups
wp_actionscheduler_actions
New WordPress options
can_compress_scripts
widget_recent-posts
cartflows-assets-version
schema-ActionScheduler_LoggerSchema
db_upgraded
action_scheduler_hybrid_store_demarkation
widget_theysaidso_widget
schema-ActionScheduler_StoreSchema
widget_recent-comments
theysaidso_admin_options
...

Browser metrics Passed 4 tests

An overview of browser requirements for WooCommerce Checkout & Funnel Builder by CartFlows – Create High Converting Stores For WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,886 ▲12414.35 ▼0.011.62 ▼0.0338.51 ▼7.91
Dashboard /wp-admin2,291 ▲1105.53 ▼0.1898.66 ▼2.1242.33 ▲4.41
Posts /wp-admin/edit.php2,171 ▲711.99 ▲0.0539.55 ▲3.4136.04 ▲1.62
Add New Post /wp-admin/post-new.php1,558 ▲3222.93 ▼0.20629.28 ▲31.5049.64 ▼6.62
Media Library /wp-admin/upload.php1,538 ▲1354.16 ▼0.0498.16 ▼2.2641.15 ▼2.12
Dashboard /wp-admin/admin.php?page=cartflows1,3517.88184.2481.47
Funnels /wp-admin/admin.php?page=cartflows&path=flows1,63317.35429.4966.58
Scheduled Actions /wp-admin/tools.php?page=action-scheduler1,4301.8031.2734.43
Store Checkout /wp-admin/admin.php?page=cartflows&path=store-checkout1,2146.9995.2136.93

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure failed, leaving 4 tables in the database
    • wp_actionscheduler_logs
    • wp_actionscheduler_actions
    • wp_actionscheduler_claims
    • wp_actionscheduler_groups
  • This plugin does not fully uninstall, leaving 11 options in the database
    • schema-ActionScheduler_StoreSchema
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • cartflows-version
    • db_upgraded
    • widget_recent-posts
    • action_scheduler_hybrid_store_demarkation
    • schema-ActionScheduler_LoggerSchema
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/cartflows/modules/beaver-builder/cartflows-bb-checkout-form/js/settings-js.php
  • 90× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/cartflows/libraries/action-scheduler/classes/WP_CLI/Migration_Command.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_QueueRunner' not found in wp-content/plugins/cartflows/libraries/action-scheduler/classes/ActionScheduler_QueueRunner.php:6
    • > PHP Fatal error
      Uncaught Error: Call to a member function dynamic_option_filters() on null in wp-content/plugins/cartflows/modules/beaver-builder/cartflows-bb-optin-form/includes/frontend.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Logger' not found in wp-content/plugins/cartflows/libraries/action-scheduler/classes/data-stores/ActionScheduler_DBLogger.php:10
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/cartflows/modules/beaver-builder/cartflows-bb-checkout-form/includes/frontend.css.php on line 19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/cartflows/modules/woo-dynamic-flow/classes/class-cartflows-wd-flow-shortcodes.php:52
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/cartflows/modules/beaver-builder/cartflows-bb-order-details/includes/frontend.php on line 14
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Store_Deprecated' not found in wp-content/plugins/cartflows/libraries/action-scheduler/classes/abstracts/ActionScheduler_Store.php:7
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/cartflows/modules/beaver-builder/cartflows-bb-order-details/includes/frontend.css.php on line 18
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Logger' not found in wp-content/plugins/cartflows/libraries/action-scheduler/classes/data-stores/ActionScheduler_wpCommentLogger.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: beaver builder, woocommerce, elementor, funnel builder, sales funnels

cartflows/cartflows.php 92% from 13 tests

"WooCommerce Checkout & Funnel Builder by CartFlows – Create High Converting Stores For WooCommerce" version 2.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.8" instead of "3.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin89,268 lines of code in 566 files:
LanguageFilesBlank linesComment linesLines of code
PHP28910,08817,78445,657
CSS692,2021,90314,706
JavaScript1191,42575913,702
JSON61010,816
Sass346661163,253
SVG49261,134

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity20.40
▷ Minimum class complexity1.00
▷ Maximum class complexity206.00
Average method complexity3.38
▷ Minimum method complexity1.00
▷ Maximum method complexity69.00
Code structure
Namespaces11
Interfaces5
Traits0
Classes216
▷ Abstract classes2310.65%
▷ Concrete classes19389.35%
▷ Final classes42.07%
Methods1,822
▷ Static methods31517.29%
▷ Public methods1,55085.07%
▷ Protected methods21811.96%
▷ Private methods542.96%
Functions97
▷ Named functions6061.86%
▷ Anonymous functions3738.14%
Constants88
▷ Global constants4753.41%
▷ Class constants4146.59%
▷ Public constants41100.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
19 PNG files occupy 0.13MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin-core/assets/build/images/google.5cbe6a96.png0.92KB0.90KB▼ 1.38%
wizard/assets/build/images/block-editor.e2b7f39c.png24.42KB5.73KB▼ 76.52%
assets/images/cartflows-email-logo.png13.00KB8.11KB▼ 37.57%
admin-core/assets/images/arrow.png1.60KB0.10KB▼ 93.65%
wizard/assets/images/block-editor.png24.42KB5.73KB▼ 76.52%