Code Analysis: WooCommerce Cart Abandonment Recovery 1.3.1

Function Rating Maintainability Complexity Lines of code
Cartflows_Ca_Email_Templates::render_email_template_form()
D
13
59 357
Cartflows_Ca_Email_Schedule::send_email_templates()
B
31 19 102
Cartflows_Ca_Tracking::restore_cart_abandonment_data()
B
38 20 64
Cartflows_Ca_Settings::wcf_initialize_settings()
B
23
1 322
Cartflows_Ca_Email_Schedule::schedule_emails()
B
40 19 50
Cartflows_Ca_Tabs::wcf_display_reports()
A
40 15 58
Cartflows_Ca_Tracking::delete_cart_abandonment_data()
A
42 15 48
Cartflows_Ca_Email_Schedule::get_email_product_block()
A
40 14 55
Cartflows_Ca_Tabs::get_admin_product_block()
A
38 13 68
Cartflows_Ca_Tracking::update_order_status()
A
39 13 60
Cartflows_Ca_Tracking::wcf_ca_update_order_status()
A
46 14 33
BSF_Analytics::option_notice()
A
40 10 63
Cartflows_Ca_Database::template_table_seeder()
A
39 9 73
Cartflows_Ca_Email_Templates::sanitize_email_post_data()
A
40 9 68
Cartflows_Ca_Tabs::wcf_display_tabs()
A
40 8 77
Cartflows_Ca_Tracking::save_cart_abandonment_data()
A
44 10 46
Cartflows_Ca_Tracking::cart_abandonment_tracking_script()
A
44 10 40
BSF_Analytics_Loader::load_analytics()
A
50 10 27
Cartflows_Ca_Tracking::sanitize_post_data()
A
37 4 106
Cartflows_Ca_Order_Table::process_bulk_action()
A
49 9 30
Cartflows_Ca_Tabs::render_abandoned_cart_tracking()
A
45 8 39
Cartflows_Ca_Order_Table::prepare_items()
A
42 7 53
Astra_Notices::dismiss_notice()
A
52 9 22
Astra_Notices::show_notices()
A
48 8 34
Cartflows_Ca_Email_Templates::show_messages()
A
45 6 58
BSF_Analytics::handle_optin_optout()
A
51 8 28
Cartflows_Ca_Tracking::load_admin_cart_abandonment_script()
A
44 7 43
Cartflows_Ca_Admin_Report_Emails::send_weekly_report_email()
A
53 8 19
Astra_Notices::is_expired()
A
55 8 18
Cartflows_Ca_Email_Templates_Table::process_bulk_action()
A
55 8 17
Cartflows_Ca_Setting_Functions::delete_used_and_expired_coupons()
A
49 7 31
Cartflows_Ca_Helper::get_comma_separated_products()
S
52 7 25
CARTFLOWS_CA_Loader::fails_to_load()
S
51 7 24
Cartflows_Ca_Admin_Report_Emails::unsubscribe_cart_abandonment_weekly_emails()
S
53 7 21
Cartflows_Ca_Email_Templates_Table::prepare_items()
S
47 6 32
Cartflows_Ca_Order_Table::column_nameSurname()
S
41 4 62
BSF_Analytics::register_usage_tracking_setting()
S
50 6 29
Cartflows_Ca_Email_Templates::update_email_toggle_button()
S
51 6 25
Cartflows_Ca_Email_Templates::clone_email_template()
S
46 5 39
Cartflows_Ca_Tracking::wcar_send_successful_recovery_email_to_admin()
S
46 5 38
Cartflows_Ca_Email_Schedule::create_dummy_session_for_preview_email()
S
43 4 49
Cartflows_Ca_Tabs::array2csv()
S
45 4 46
Cartflows_Ca_Settings::wcf_ca_exclude_orders_callback()
S
50 5 29
Cartflows_Ca_Email_Templates::load_email_templates_script()
S
40 3 58
CARTFLOWS_CA_Loader::update_default_settings()
S
50 5 27
Cartflows_Ca_Email_Schedule::check_if_already_purchased_by_email_product_ids()
S
48 4 32
Cartflows_Ca_Settings::wcf_ca_ignore_users_callback()
S
51 4 30
Cartflows_Ca_Admin_Report_Emails::schedule_weekly_report_email()
S
63 6 9
Cartflows_Ca_Email_Templates_Table::column_is_activated()
S
58 5 14
Cartflows_Ca_Tracking::unsubscribe_cart_abandonment_emails()
S
53 4 22
Cartflows_Ca_Tracking::trigger_zapier_webhook()
S
46 3 37
BSF_Analytics_Stats::get_default_stats()
S
46 3 35
Cartflows_Ca_Email_Templates::delete_single_template()
S
54 4 20
CARTFLOWS_CA_Loader::load_cf_textdomain()
S
54 4 20
Cartflows_Ca_Settings::wcf_ca_coupon_expiry_callback()
S
53 4 20
Cartflows_Ca_Update::init()
S
56 4 18
Cartflows_Ca_Helper::sanitize_text_filter()
S
63 5 10
BSF_Analytics::is_tracking_enabled()
S
62 5 10
Cartflows_Ca_Order_Table::get_bulk_actions()
S
62 5 10
Cartflows_Ca_Tracking::test_email_checkout_page()
S
66 5 7
Cartflows_Ca_Admin_Notices::show_weekly_report_email_settings_notice()
S
58 4 14
Cartflows_Ca_Settings::wcf_ca_report_emails_validation()
S
60 4 14
BSF_Analytics::is_white_label_enabled()
S
61 4 13
Cartflows_Ca_Email_Templates::edit_email_template()
S
45 2 43
Cartflows_Ca_Tracking::send_emails_to_callback()
S
52 3 27
Cartflows_Ca_Tracking::is_valid_token()
S
62 4 11
Cartflows_Ca_Email_Templates::add_email_template()
S
46 2 41
Cartflows_Ca_Tracking::prepare_abandonment_data()
S
46 2 41
Astra_Notices::get_wrap_classes()
S
61 4 11
CARTFLOWS_CA_Loader::load_core_files()
S
54 3 23
Cartflows_Ca_Helper::get_checkout_url()
S
55 3 19
Cartflows_Ca_Module_Loader::load_module_files()
S
57 3 18
Cartflows_Ca_Database::check_if_all_table_created()
S
57 3 17
Cartflows_Ca_Email_Schedule::generate_coupon_code()
S
49 2 32
Cartflows_Ca_Tracking::__construct()
S
56 3 17
Cartflows_Ca_Email_Templates::restore_email_templates()
S
57 3 16
Cartflows_Ca_Admin_Notices::show_admin_notices()
S
47 1 45
BSF_Analytics::enqueue_assets()
S
66 4 7
Cartflows_Ca_Tracking::check_if_similar_cart()
S
67 4 8
BSF_Analytics::add_option_to_network()
S
65 4 9
BSF_Analytics_Stats::get_php_version()
S
69 4 6
CARTFLOWS_CA_Loader::load_plugin()
S
60 3 14
Cartflows_Ca_Tracking::wcar_check_order_is_recovered()
S
58 3 14
wp_timezone_string()
S
59 3 14
Cartflows_Ca_Admin_Notices::allowed_screen_for_notices()
S
61 3 13
Cartflows_Ca_Settings::wcf_ca_coupon_amount_validation()
S
61 3 13
Cartflows_Ca_Settings::wcf_ca_discount_type_callback()
S
59 3 13
Astra_Notices::get_notice_by_id()
S
61 3 13
Cartflows_Ca_Email_Schedule::send_preview_email()
S
61 3 12
BSF_Analytics_Stats::get_active_plugins()
S
62 3 11
Cartflows_Ca_Tracking::skip_future_emails_when_order_is_completed()
S
54 2 24
Cartflows_Ca_Tabs::wcf_show_warning_ca()
S
55 2 22
Cartflows_Ca_Admin_Report_Emails::get_last_week_report()
S
53 2 22
Cartflows_Ca_Email_Templates_Table::column_template_name()
S
49 1 36
Cartflows_Ca_Email_Templates::update_email_template_meta()
S
58 2 18
BSF_Analytics::render_settings_field_html()
S
56 2 18
Cartflows_Ca_Utils::is_cart_abandonment_tracking_enabled()
S
68 3 7
Cartflows_Ca_Utils::is_zapier_trigger_enabled()
S
68 3 7
Cartflows_Ca_Utils::is_gdpr_enabled()
S
68 3 7
BSF_Analytics_Stats::get_curl_ssl_version()
S
68 3 7
Cartflows_Ca_Settings::wcf_ca_from_email_validation()
S
64 3 10
BSF_Analytics_Stats::get_curl_version()
S
70 3 6
Astra_Notices::get_notice_id()
S
69 3 6
Cartflows_Ca_Helper::get_acceptable_order_statuses()
S
68 3 7
Cartflows_Ca_Helper::get_js_file_ext()
S
70 3 6
Cartflows_Ca_Settings::wcf_ca_reply_email_validation()
S
64 3 10
BSF_Analytics::sanitize_option()
S
71 3 6
BSF_Analytics::maybe_track_analytics()
S
64 3 10
Astra_Notices::sort_notices()
S
65 3 9
BSF_Analytics::__construct()
S
60 2 14
Cartflows_Ca_Helper::get_start_end_by_interval()
S
60 2 14
Cartflows_Ca_Helper::fetch_scheduled_emails()
S
60 2 13
Cartflows_Ca_Setting_Functions::delete_garbage_coupons()
S
54 1 28
Cartflows_Ca_Email_Templates::define_template_constants()
S
61 1 26
Cartflows_Ca_Setting_Functions::skip_cart_tracking_by_gdpr()
S
61 2 11
Cartflows_Ca_Tabs::abandoned_cart_tracking_menu()
S
63 2 11
Cartflows_Ca_Database::create_cart_abandonment_table()
S
56 1 23
Cartflows_Ca_Tracking::define_cart_abandonment_constants()
S
63 1 22
Cartflows_Ca_Database::create_email_history_table()
S
55 1 21
Cartflows_Ca_Email_Templates::show_add_new_template_button()
S
56 1 20
Cartflows_Ca_Database::create_cart_abandonment_template_table()
S
58 1 18
Cartflows_Ca_Admin_Report_Emails::get_email_content()
S
56 1 18
Cartflows_Ca_Database::create_email_templates_meta_table()
S
58 1 17
Cartflows_Ca_Email_Templates::show_email_template_data_table()
S
59 1 16
Astra_Notices::markup()
S
58 1 16
Cartflows_Ca_Cron::get_instance()
S
71 2 6
Cartflows_Ca_Cron::__construct()
S
70 2 6
Cartflows_Ca_Database::get_instance()
S
71 2 6
Cartflows_Ca_Utils::get_cart_abandonment_tracking_cut_off_time()
S
74 2 4
Cartflows_Ca_Email_Schedule::get_instance()
S
71 2 6
BSF_Analytics::set_actions()
S
66 2 7
CARTFLOWS_CA_Loader::declare_woo_hpos_compatibility()
S
72 2 5
Cartflows_Ca_Settings::wcar_add_param_to_recovery_url()
S
62 2 10
Cartflows_Ca_Module_Loader::get_instance()
S
71 2 6
Cartflows_Ca_Order_Table::get_instance()
S
71 2 6
Cartflows_Ca_Settings::wcf_ca_gdpr_message_callback()
S
64 2 9
BSF_Analytics_Loader::get_instance()
S
71 2 6
Cartflows_Ca_Setting_Functions::get_instance()
S
71 2 6
Cartflows_Ca_Settings::wcf_ca_reply_email_callback()
S
64 2 9
Cartflows_Ca_Admin_Notices::get_instance()
S
71 2 6
Cartflows_Ca_Admin_Report_Emails::get_instance()
S
71 2 6
BSF_Analytics::update_analytics_option_callback()
S
74 2 5
Cartflows_Ca_Tabs::get_instance()
S
71 2 6
Cartflows_Ca_Tabs::wcf_display_report_details()
S
64 2 9
BSF_Analytics::add_analytics_option_callback()
S
74 2 5
Astra_Notices::get_instance()
S
71 2 6
Cartflows_Ca_Setting_Functions::__construct()
S
63 2 10
Cartflows_Ca_Helper::get_instance()
S
71 2 6
Cartflows_Ca_Settings::wcf_ca_from_email_callback()
S
64 2 9
Cartflows_Ca_Utils::get_instance()
S
71 2 6
BSF_Analytics_Stats::instance()
S
71 2 6
Cartflows_Ca_Settings::get_instance()
S
71 2 6
Cartflows_Ca_Settings::admin_email_callback()
S
62 2 10
BSF_Analytics::get_analytics_install_time()
S
67 2 8
Cartflows_Ca_Settings::wcf_ca_from_name_callback()
S
64 2 9
BSF_Analytics_Stats::get_user_count()
S
66 2 9
Cartflows_Ca_Email_Templates::get_instance()
S
71 2 6
Astra_Notices::get_url()
S
64 2 9
Cartflows_Ca_Update::get_instance()
S
71 2 6
Cartflows_Ca_Tracking::get_instance()
S
71 2 6
Cartflows_Ca_Settings::wcf_ca_coupon_amount_callback()
S
64 2 9
BSF_Analytics::get_api_url()
S
79 2 3
Cartflows_Ca_Admin_Notices::disable_weekly_report_email_notice()
S
67 2 8
CARTFLOWS_CA_Loader::get_instance()
S
69 2 7
Cartflows_Ca_Tracking::get_captured_data_by_email()
S
61 1 13
Cartflows_Ca_Email_Templates::delete_bulk_templates()
S
62 1 12
Cartflows_Ca_Order_Table::get_columns()
S
62 1 11
Astra_Notices::enqueue_scripts()
S
63 1 11
Cartflows_Ca_Tabs::download_send_headers()
S
62 1 11
CARTFLOWS_CA_Loader::define_constants()
S
70 1 11
Cartflows_Ca_Email_Templates::add_email_template_meta()
S
64 1 11
Cartflows_Ca_Order_Table::__construct()
S
63 1 11
Cartflows_Ca_Settings::wcf_ca_delete_coupons_callback()
S
63 1 11
Cartflows_Ca_Admin_Report_Emails::get_email_subject()
S
79 1 3
Cartflows_Ca_Helper::wcf_generate_token()
S
79 1 3
CARTFLOWS_CA_Loader::load_core_components()
S
77 1 4
BSF_Analytics::optin()
S
79 1 3
Cartflows_Ca_Email_Templates_Table::column_trigger_time()
S
69 1 7
Cartflows_Ca_Settings::wcf_ca_delete_plugin_data_callback()
S
63 1 10
Cartflows_Ca_Setting_Functions::wcf_filter_mce_button()
S
76 1 4
Cartflows_Ca_Settings::wcf_ca_auto_delete_coupons_callback()
S
63 1 10
Cartflows_Ca_Tracking::get_checkout_details_by_email()
S
66 1 8
Cartflows_Ca_Tabs::get_report_by_type()
S
63 1 10
BSF_Analytics::send()
S
67 1 9
Cartflows_Ca_Settings::send_recovery_report_emails_to_admin()
S
63 1 10
CARTFLOWS_CA_Loader::__construct()
S
66 1 8
Cartflows_Ca_Order_Table::get_sortable_columns()
S
64 1 10
Cartflows_Ca_Email_Templates_Table::get_sortable_columns()
S
67 1 8
Cartflows_Ca_Order_Table::define_order_table_constants()
S
85 1 3
Cartflows_Ca_Email_Templates::fetch_all_active_templates()
S
68 1 7
Cartflows_Ca_Email_Templates::get_template_by_id()
S
68 1 7
Cartflows_Ca_Tracking::wcf_decode_token()
S
73 1 5
Cartflows_Ca_Helper::is_block_checkout()
S
79 1 3
Cartflows_Ca_Setting_Functions::wcf_filter_mce_plugin()
S
71 1 5
CARTFLOWS_CA_Loader::initialize_cart_abandonment_tables()
S
71 1 6
BSF_Analytics::get_analytics_url()
S
72 1 5
CARTFLOWS_CA_Loader::is_woo_installed()
S
73 1 5
CARTFLOWS_CA_Loader::activation_reset()
S
78 1 4
Cartflows_Ca_Email_Templates_Table::column_cb()
S
78 1 3
BSF_Analytics_Stats::format_plugin()
S
63 1 10
Cartflows_Ca_Cron::cartflows_ca_update_order_status_action()
S
65 1 8
Cartflows_Ca_Helper::get_checkout_details()
S
66 1 8
Cartflows_Ca_Tracking::delete_empty_abandoned_order()
S
67 1 8
Cartflows_Ca_Database::create_tables()
S
70 1 7
Cartflows_Ca_Update::__construct()
S
79 1 3
Cartflows_Ca_Tabs::__construct()
S
78 1 3
BSF_Analytics_Stats::get_stats()
S
79 1 3
Cartflows_Ca_Settings::wcf_ca_zapier_tracking_status_callback()
S
63 1 10
Cartflows_Ca_Settings::wcar_email_admin_on_recovery()
S
63 1 10
Cartflows_Ca_Tracking::get_tracked_data_without_status()
S
66 1 8
Cartflows_Ca_Email_Templates_Table::column_default()
S
80 1 3
Cartflows_Ca_Settings::__construct()
S
74 1 4
Cartflows_Ca_Email_Templates::get_email_template_meta_by_key()
S
70 1 6
Cartflows_Ca_Helper::__construct()
S
91 1 2
CARTFLOWS_CA_Loader::fails_to_create_table()
S
71 1 5
Cartflows_Ca_Settings::wcf_cart_abandonment_options_callback()
S
82 1 3
Cartflows_Ca_Order_Table::column_cb()
S
71 1 6
Cartflows_Ca_Email_Schedule::__construct()
S
79 1 3
BSF_Analytics::optout()
S
79 1 3
Cartflows_Ca_Email_Templates_Table::get_bulk_actions()
S
71 1 6
Astra_Notices::add_data_attributes()
S
76 1 4
Cartflows_Ca_Settings::wcf_ca_gdpr_status_callback()
S
63 1 10
Cartflows_Ca_Email_Templates::__construct()
S
64 1 9
Cartflows_Ca_Settings::add_action_links()
S
70 1 6
Cartflows_Ca_Email_Templates::get_email_template_by_id()
S
70 1 6
BSF_Analytics_Loader::__construct()
S
79 1 3
CARTFLOWS_CA_Loader::deactivation_reset()
S
81 1 3
BSF_Analytics_Stats::is_content_writable()
S
75 1 4
Astra_Notices::get_notices()
S
76 1 4
Cartflows_Ca_Admin_Notices::__construct()
S
72 1 5
Cartflows_Ca_Order_Table::has_items()
S
80 1 3
Cartflows_Ca_Settings::wcf_ca_status_callback()
S
63 1 10
Cartflows_Ca_Email_Templates_Table::has_items()
S
80 1 3
BSF_Analytics_Stats::get_mysql_version()
S
77 1 4
Cartflows_Ca_Email_Templates_Table::__construct()
S
64 1 10
BSF_Analytics::includes()
S
80 1 3
Astra_Notices::__construct()
S
69 1 6
Cartflows_Ca_Email_Templates::get_email_history_by_id()
S
68 1 7
Cartflows_Ca_Tabs::wcf_display_settings()
S
67 1 10
Cartflows_Ca_Settings::wcf_ca_coupon_code_status_callback()
S
63 1 10
Cartflows_Ca_Settings::wcf_ca_zapier_cart_abandoned_webhook_callback()
S
66 1 8
Cartflows_Ca_Admin_Report_Emails::__construct()
S
72 1 5
Cartflows_Ca_Update::update_table_with_default_settings()
S
74 1 5
CARTFLOWS_CA_Loader::load_helper_files_components()
S
76 1 4
Cartflows_Ca_Settings::wcf_ca_cron_run_time_callback()
S
64 1 9
Cartflows_Ca_Module_Loader::__construct()
S
82 1 3
wcf_ca()
S
82 1 3
BSF_Analytics_Loader::set_entity()
S
80 1 3
Cartflows_Ca_Email_Templates_Table::get_columns()
S
64 1 10
Cartflows_Ca_Order_Table::column_time()
S
67 1 7
Astra_Notices::add_notice()
S
79 1 3
Cartflows_Ca_Order_Table::column_default()
S
80 1 3
Cartflows_Ca_Helper::abandoned_cart_count()
S
66 1 8