WC_Facebookcommerce_EventsTracker D

Total Complexity 144
Dependencies 9
Dependents 1
Total lines 1,173
Lines of code 552
Logical lines of code 281
Comment lines 344
Methods 41
Properties 6

Methods 41

Method Rating Maintainability Complexity Lines of code
inject_purchase_event()
A
40 12 57
inject_initiate_checkout_event()
A
48 8 32
get_user_data_from_billing_address()
A
52 8 23
inject_view_category_event()
A
43 6 50
inject_search_event()
S
60 7 12
inject_add_to_cart_event()
S
50 6 26
inject_view_content_event()
S
46 5 40
get_search_event()
S
46 5 38
inject_subscribe_event()
S
54 5 21
get_cart_contents()
S
58 5 15
get_cart_content_ids()
S
61 5 11
get_cart_content_names()
S
62 5 11
get_product_search_event_from_session()
S
63 5 10
add_conditional_add_to_cart_event_fragment()
S
55 3 18
add_add_to_cart_event_fragment()
S
56 3 18
maybe_add_product_search_event_to_session()
S
71 4 6
add_product_search_event_to_session()
S
71 4 5
set_last_product_added_to_cart_upon_redirect()
S
65 4 8
send_api_event()
S
60 3 13
maybe_inject_search_event()
S
64 3 11
add_hooks()
S
53 2 20
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
get_cart_num_items()
S
79 2 3
inject_lead_event()
S
66 2 10
get_cart_total()
S
79 2 3
__construct()
S
65 2 9
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
delete_session_data()
S
74 2 5
inject_base_pixel_noscript()
S
75 2 5
inject_base_pixel()
S
75 2 5
inject_ajax_add_to_cart_event()
S
80 1 3
inject_gateway_purchase_event()
S
75 1 4
inject_lead_event_hook()
S
78 1 3
actually_inject_search_event()
S
67 1 8
send_search_event()
S
81 1 3
apply_filters()
S
80 1 3
get_tracked_events()
S
82 1 3