WC_Facebookcommerce_EventsTracker D

Total Complexity 149
Dependencies 10
Dependents 1
Total lines 1,159
Lines of code 576
Logical lines of code 288
Comment lines 323
Methods 38
Properties 7

Methods 38

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_add_to_cart_event()
A
46 7 37
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
get_search_event()
S
46 5 38
inject_subscribe_event()
S
54 5 21
get_cart_contents()
S
58 5 15
add_hooks()
S
49 4 28
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
maybe_add_product_search_event_to_session()
S
71 4 6
add_product_search_event_to_session()
S
71 4 5
send_api_event()
S
61 3 12
maybe_inject_search_event()
S
64 3 11
send_pending_events()
S
66 3 9
is_single_search_result()
S
74 3 4
add_filter_for_conditional_add_to_cart_fragment()
S
72 2 5
is_pixel_enabled()
S
70 2 6
add_filter_for_add_to_cart_fragments()
S
72 2 5
inject_lead_event()
S
66 2 10
get_cart_num_items()
S
79 2 3
delete_session_data()
S
74 2 5
inject_base_pixel_noscript()
S
75 2 5
get_cart_total()
S
79 2 3
inject_base_pixel()
S
75 2 5
__construct()
S
66 2 9
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