Code Analysis: TikTok 1.1.4

Function Rating Maintainability Complexity Lines of code
Tt4b_Menu_Class::tt4b_admin_menu_main()
D
22
28 216
Tt4b_Catalog_Class::generate_product_info()
C
34 26 91
Tt4b_Menu_Class::convert_state()
B
26
6 238
tiktok\admin\tts\order_list\OrderList::modify_table()
B
35 15 90
Tt4b_Pixel_Class::inject_start_checkout()
A
33 12 100
Tt4b_Pixel_Class::inject_purchase_event()
A
34 10 99
Tt4b_Catalog_Class::catalog_sync_helper()
A
41 10 56
Tt4b_Pixel_Class::inject_view_content_event()
A
37 8 80
tt4b_product_delete()
A
44 10 46
Tt4b_Pixel_Class::inject_add_to_cart_event()
A
37 7 80
tiktok\admin\tts\order_list\OrderList::add_tiktok_filter()
A
41 8 62
Tt4b_Mapi_Class::retrieve_eligibility_helper()
A
46 7 39
Logger::maybe_output_pixel_data()
A
57 8 18
variation_content_id_helper()
A
58 8 16
Tt4b_Menu_Class::tt4b_store_access_token()
S
48 7 28
tiktok\admin\tts\order_detail\OrderDetail::is_tiktok_order_detail_page()
S
55 7 20
Tt4b_Catalog_Class::catalog_sync()
S
49 6 31
Tt4b_Pixel_Class::confirm_to_send_s2s_events()
S
51 6 28
tiktok\admin\tts\order_detail\OrderDetail::disable_edit()
S
49 5 42
Tt4b_Pixel_Class::get_user()
S
49 5 31
Onboarding::is_complete()
S
55 5 19
Logger::log_request()
S
62 6 9
Tt4b_Catalog_Class::check_and_start_async_action()
S
55 4 27
Tt4b_Pixel_Class::print_script()
S
52 4 25
Tt4b_Catalog_Class::initiate_catalog_sync()
S
50 3 35
Tt4b_Mapi_Class::create_open_source_app()
S
49 3 33
Tt4b_Catalog_Class::get_catalog_processing_status()
S
49 3 32
Tt4b_Catalog_Class::variable_product_sync()
S
57 4 17
array_insert_after()
S
60 4 14
tiktok\admin\tts\order_detail\OrderDetail::hide_tiktok_custom_fields()
S
61 4 13
Tt4b_Mapi_Class::retrieve_eligibility_information()
S
50 3 28
Tiktokforbusiness::tt_plugin_activate()
S
50 3 27
get_edit_link()
S
55 3 21
Tt4b_Mapi_Class::update_business_profile()
S
48 2 36
Tt4b_Mapi_Class::fetch_eligibility()
S
61 3 12
Tt4b_Pixel_Class::get_product_subtotal_as_int()
S
62 3 11
Tt4b_Catalog_Class::delete_products_helper()
S
53 2 23
tiktok\admin\tts\order_list\OrderList::load_style_and_script()
S
55 2 22
Tiktokforbusiness::tt_plugin_deactivate()
S
48 1 36
tiktok\admin\tts\order_detail\OrderDetail::notice()
S
58 2 18
Tt4b_Pixel_Class::pixel_event_tracking_field_track()
S
58 2 16
Tt4b_Pixel_Class::add_ajax_snippet()
S
58 2 16
Tiktokforbusiness::initialize_hooks()
S
59 2 14
Tt4b_Mapi_Class::get_business_profile()
S
59 2 14
check_woocommerce_install()
S
62 2 13
Tiktokforbusiness::init()
S
62 2 11
Tiktokforbusiness::add_onboarding_task()
S
65 2 11
Tt4b_Mapi_Class::get_access_token()
S
55 1 20
Tt4b_Pixel_Class::get_pixels()
S
56 1 19
Tt4b_Mapi_Class::mapi_post()
S
57 1 17
Tt4b_Mapi_Class::tbp_post()
S
57 1 16
Tt4b_Pixel_Class::prepare_event_code()
S
64 2 10
Tt4b_Pixel_Class::get_advanced_matching_hashed_info()
S
67 2 8
Tt4b_Pixel_Class::get_and_validate_option()
S
67 2 7
Tt4b_Pixel_Class::get_event_id()
S
66 2 8
Tt4b_Mapi_Class::mapi_get()
S
58 1 15
Tt4b_Pixel_Class::add_event()
S
67 2 7
Logger::doing_ajax()
S
79 2 3
Tt4b_Menu_Class::load_styles()
S
69 2 6
Onboarding::get_parent_id()
S
72 2 6
Tiktokforbusiness::maybe_show_admin_notice()
S
66 2 10
Tt4b_Pixel_Class::set_ttclid()
S
71 2 5
tiktok_for_business_get_instance()
S
70 2 7
Logger::log_response()
S
64 2 9
get_tts_seller_center_origin()
S
60 1 13
Tt4b_Mapi_Class::tts_shop_disconnect()
S
61 1 13
Tt4b_Menu_Class::tt4b_admin_menu()
S
63 1 12
Tt4b_Pixel_Class::print_event()
S
65 1 8
Tt4b_Mapi_Class::generate_cron_string()
S
71 1 5
Onboarding::get_content()
S
82 1 3
Logger::log()
S
71 1 5
tiktok\admin\tts\order_list\OrderList::init()
S
75 1 5
Tt4b_Pixel_Class::enqueue_event()
S
76 1 3
Onboarding::get_title()
S
79 1 3
tt4b_variation_delete()
S
76 1 4
tt4b_product_trashed()
S
76 1 4
Onboarding::get_id()
S
82 1 3
Tt4b_Mapi_Class::__construct()
S
74 1 5
Onboarding::get_action_url()
S
80 1 3
Tt4b_Pixel_Class::filter_add_to_cart_attributes()
S
66 1 8
update_tt4b_version_admin_notice()
S
74 1 7
Tt4b_Pixel_Class::get_key()
S
82 1 3
Tt4b_Catalog_Class::__construct()
S
77 1 4
Logger::__construct()
S
77 1 4
Tt4b_Pixel_Class::prepare_advanced_matching()
S
67 1 9
Tt4b_Mapi_Class::init()
S
74 1 4
tiktok\admin\tts\order_detail\OrderDetail::init()
S
75 1 5
Onboarding::get_time()
S
82 1 3
Tt4b_Catalog_Class::init()
S
71 1 5