WC_Facebookcommerce_EventsTracker D

Total Complexity 161
Dependencies 10
Dependents 1
Total lines 1,230
Lines of code 606
Logical lines of code 307
Comment lines 344
Methods 41
Properties 7

Methods 41

Method Rating Maintainability Complexity Lines of code
inject_purchase_event()
A
41 11 56
inject_initiate_checkout_event()
A
47 10 32
get_user_data_from_billing_address()
A
52 8 23
inject_view_category_event()
A
43 6 50
add_add_to_cart_event_fragment()
A
48 7 31
inject_view_content_event()
S
44 6 45
inject_search_event()
S
60 8 12
inject_add_to_cart_event()
S
48 6 33
set_last_product_added_to_cart_upon_redirect()
S
58 7 13
get_search_event()
S
46 5 38
inject_subscribe_event()
S
54 5 21
get_cart_contents()
S
58 5 15
add_hooks()
S
48 4 29
get_cart_content_names()
S
62 5 11
get_cart_content_ids()
S
61 5 11
get_product_search_event_from_session()
S
63 5 10
inject_order_meta_event_for_checkout_block_flow()
S
60 4 12
add_conditional_add_to_cart_event_fragment()
S
55 3 18
add_product_search_event_to_session()
S
71 4 5
maybe_add_product_search_event_to_session()
S
71 4 6
send_api_event()
S
61 3 12
maybe_inject_search_event()
S
64 3 11
is_single_search_result()
S
74 3 4
set_last_product_added_to_cart_upon_ajax_redirect()
S
63 3 10
inject_add_to_cart_redirect_event()
S
64 3 10
send_pending_events()
S
66 3 9
get_cart_num_items()
S
79 2 3
get_cart_total()
S
79 2 3
inject_lead_event()
S
66 2 10
__construct()
S
66 2 9
is_pixel_enabled()
S
70 2 6
add_filter_for_add_to_cart_fragments()
S
72 2 5
delete_session_data()
S
74 2 5
inject_base_pixel_noscript()
S
75 2 5
inject_base_pixel()
S
75 2 5
add_filter_for_conditional_add_to_cart_fragment()
S
72 2 5
actually_inject_search_event()
S
64 1 11
inject_lead_event_hook()
S
78 1 3
send_search_event()
S
81 1 3
get_tracked_events()
S
82 1 3
get_pending_events()
S
82 1 3