WC_Facebookcommerce_EventsTracker D

Total Complexity 142
Dependencies 9
Dependents 1
Total lines 1,133
Lines of code 561
Logical lines of code 280
Comment lines 315
Methods 37
Properties 7

Methods 37

Method Rating Maintainability Complexity Lines of code
inject_purchase_event()
A
41 10 55
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
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
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
add_hooks()
S
50 2 26
is_single_search_result()
S
74 3 4
send_pending_events()
S
66 3 9
inject_lead_event()
S
66 2 10
get_cart_num_items()
S
79 2 3
get_cart_total()
S
79 2 3
__construct()
S
66 2 9
add_filter_for_conditional_add_to_cart_fragment()
S
72 2 5
is_pixel_enabled()
S
70 2 6
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_add_to_cart_fragments()
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