Code Analysis: GTM Kit 1.6.1

Function Rating Maintainability Complexity Lines of code
TLA_Media\GTM_Kit\Frontend\BasicDatalayerData::get_datalayer_content()
D
33 34 89
TLA_Media\GTM_Kit\Integration\WooCommerce::get_datalayer_content_order_received()
A
39 12 62
TLA_Media\GTM_Kit\Integration\EasyDigitalDownloads::get_datalayer_content_order_received()
A
41 10 57
TLA_Media\GTM_Kit\Admin\OptionsForm::radio_fieldset()
A
42 9 54
TLA_Media\GTM_Kit\Integration\EasyDigitalDownloads::get_item_data()
A
45 10 39
TLA_Media\GTM_Kit\Options::array_merge_recursive()
A
49 10 32
TLA_Media\GTM_Kit\Integration\WooCommerce::get_item_data()
A
47 9 34
TLA_Media\GTM_Kit\Integration\WooCommerce::get_datalayer_content()
A
47 9 33
TLA_Media\GTM_Kit\Integration\AbstractEcommerce::get_primary_product_category()
A
49 9 32
TLA_Media\GTM_Kit\Frontend\UserData::get_datalayer_content()
A
52 9 24
TLA_Media\GTM_Kit\Admin\OptionsForm::select()
A
48 8 33
TLA_Media\GTM_Kit\Options::get()
A
54 8 20
TLA_Media\GTM_Kit\Options::is_const_defined()
A
55 8 19
TLA_Media\GTM_Kit\Options::process_genericoptions()
S
55 7 22
TLA_Media\GTM_Kit\Options::get_const_value()
S
55 7 21
gtmkit_frontend_init()
S
57 7 16
TLA_Media\GTM_Kit\Integration\EasyDigitalDownloads::get_payment_key()
S
60 7 13
TLA_Media\GTM_Kit\Frontend\Frontend::register()
S
54 6 19
TLA_Media\GTM_Kit\Integration\EasyDigitalDownloads::get_datalayer_content()
S
59 6 14
TLA_Media\GTM_Kit\Admin\OptionTabs::display()
S
51 5 29
TLA_Media\GTM_Kit\Integration\EasyDigitalDownloads::enqueue_scripts()
S
52 5 28
TLA_Media\GTM_Kit\Integration\WooCommerce::enqueue_scripts()
S
53 5 26
TLA_Media\GTM_Kit\Integration\WooCommerce::get_item_data_tag()
S
52 5 24
TLA_Media\GTM_Kit\Frontend\Frontend::get_header_script()
S
50 4 35
TLA_Media\GTM_Kit\Admin\OptionsForm::setting_field()
S
59 5 16
TLA_Media\GTM_Kit\Options::set()
S
57 5 16
TLA_Media\GTM_Kit\Integration\EasyDigitalDownloads::get_cart_items()
S
57 5 16
TLA_Media\GTM_Kit\Integration\WooCommerce::set_global_settings()
S
49 4 29
TLA_Media\GTM_Kit\Admin\OptionsForm::text_input_field()
S
50 4 29
TLA_Media\GTM_Kit\Options::postprocess_key_defaults()
S
61 5 14
TLA_Media\GTM_Kit\Admin\OptionsForm::hidden()
S
60 5 12
TLA_Media\GTM_Kit\Integration\WooCommerce::set_list_name_on_category_and_tag()
S
62 5 11
TLA_Media\GTM_Kit\Integration\WooCommerce::cart_item_remove_link()
S
53 4 25
gtmkit_admin_init()
S
56 4 17
TLA_Media\GTM_Kit\Integration\ContactForm7::enqueue_scripts()
S
57 4 17
TLA_Media\GTM_Kit\Integration\EasyDigitalDownloads::get_price_to_display()
S
59 4 14
TLA_Media\GTM_Kit\Admin\AbstractOptionsPage::enqueue_assets()
S
51 3 29
TLA_Media\GTM_Kit\Admin\OptionTabs::get_active_tab()
S
60 4 13
TLA_Media\GTM_Kit\Integration\WooCommerce::product_list_loop_add_to_cart_tracking()
S
54 3 23
TLA_Media\GTM_Kit\Integration\WooCommerce::register()
S
45 1 52
TLA_Media\GTM_Kit\Admin\OptionsForm::setting_row()
S
55 3 21
TLA_Media\GTM_Kit\Admin\OptionsForm::admin_footer()
S
59 3 20
TLA_Media\GTM_Kit\Integration\WooCommerce::get_datalayer_content_product_page()
S
57 3 17
TLA_Media\GTM_Kit\Integration\WooCommerce::get_datalayer_content_cart()
S
57 3 17
TLA_Media\GTM_Kit\Admin\OptionsForm::label()
S
57 3 17
TLA_Media\GTM_Kit\Admin\GeneralOptionsPage::render()
S
47 1 46
TLA_Media\GTM_Kit\Integration\EasyDigitalDownloads::get_datalayer_content_product_page()
S
58 3 16
TLA_Media\GTM_Kit\Admin\OptionsForm::get_disabled_attribute()
S
69 4 6
TLA_Media\GTM_Kit\Integration\AbstractEcommerce::get_category_breadcrumb()
S
60 3 14
TLA_Media\GTM_Kit\Admin\IntegrationsOptionsPage::render()
S
48 1 43
TLA_Media\GTM_Kit\Installation\Upgrade::get_upgrades()
S
61 3 13
TLA_Media\GTM_Kit\Admin\OptionsForm::checkbox_toggle_field()
S
51 2 27
TLA_Media\GTM_Kit\Integration\AbstractEcommerce::get_product_term()
S
63 3 11
TLA_Media\GTM_Kit\Admin\OptionsForm::textarea()
S
52 2 24
TLA_Media\GTM_Kit\Admin\OptionsForm::admin_header()
S
57 2 17
TLA_Media\GTM_Kit\Integration\EasyDigitalDownloads::set_global_settings()
S
56 2 16
TLA_Media\GTM_Kit\Frontend\Frontend::dns_prefetch()
S
67 3 7
TLA_Media\GTM_Kit\Options::get_all_raw()
S
65 3 9
TLA_Media\GTM_Kit\Admin\AdminNotice::show_warnings()
S
60 2 15
TLA_Media\GTM_Kit\Options::pre_update_option()
S
66 3 9
TLA_Media\GTM_Kit\Integration\WooCommerce::set_list_name_in_woocommerce_loop()
S
65 3 8
TLA_Media\GTM_Kit\Frontend\Frontend::get_gtm_script()
S
64 3 9
TLA_Media\GTM_Kit\Frontend\Frontend::get_datalayer_content()
S
61 2 12
TLA_Media\GTM_Kit\Admin\GeneralOptionsPage::add_admin_page()
S
59 1 18
TLA_Media\GTM_Kit\Admin\OptionsForm::legend()
S
64 2 9
TLA_Media\GTM_Kit\Integration\WooCommerce::get_datalayer_content_checkout()
S
63 2 10
TLA_Media\GTM_Kit\Integration\WooCommerce::get_datalayer_content_product_category()
S
70 2 6
TLA_Media\GTM_Kit\Integration\WooCommerce::prefix_item_id()
S
74 2 4
TLA_Media\GTM_Kit\Admin\OptionsForm::get_instance()
S
71 2 6
gtmkit_the_noscript_tag()
S
70 2 6
TLA_Media\GTM_Kit\Admin\OptionsForm::is_control_disabled()
S
71 2 6
TLA_Media\GTM_Kit\Integration\EasyDigitalDownloads::get_datalayer_content_product_tag()
S
70 2 6
TLA_Media\GTM_Kit\Admin\OptionTabs::__construct()
S
71 2 5
TLA_Media\GTM_Kit\Integration\EasyDigitalDownloads::instance()
S
69 2 7
TLA_Media\GTM_Kit\Integration\EasyDigitalDownloads::get_datalayer_content_checkout()
S
63 2 10
TLA_Media\GTM_Kit\Options::init()
S
70 2 7
TLA_Media\GTM_Kit\Options::is_const_enabled()
S
78 2 3
TLA_Media\GTM_Kit\Frontend\Frontend::__construct()
S
74 2 4
TLA_Media\GTM_Kit\Frontend\Frontend::get_attributes()
S
65 2 8
TLA_Media\GTM_Kit\Integration\WooCommerce::get_datalayer_content_product_tag()
S
70 2 6
TLA_Media\GTM_Kit\Frontend\Frontend::get_body_script()
S
70 2 5
TLA_Media\GTM_Kit\Integration\WooCommerce::instance()
S
69 2 7
TLA_Media\GTM_Kit\Installation\Installation::__construct()
S
73 2 5
TLA_Media\GTM_Kit\Integration\WooCommerce::get_cart_items()
S
66 2 8
TLA_Media\GTM_Kit\Installation\Upgrade::__construct()
S
66 2 8
TLA_Media\GTM_Kit\Admin\OptionTab::get_argument()
S
78 2 3
TLA_Media\GTM_Kit\Admin\AbstractOptionsPage::admin_body_class()
S
69 2 7
TLA_Media\GTM_Kit\Integration\ContactForm7::instance()
S
69 2 7
TLA_Media\GTM_Kit\Integration\EasyDigitalDownloads::get_datalayer_content_product_category()
S
70 2 6
TLA_Media\GTM_Kit\Integration\EasyDigitalDownloads::add_to_cart_tracking()
S
67 2 7
TLA_Media\GTM_Kit\Integration\EasyDigitalDownloads::prefix_item_id()
S
74 2 4
TLA_Media\GTM_Kit\Installation\Upgrade::v012_upgrade()
S
60 1 14
TLA_Media\GTM_Kit\Admin\OptionTabs::is_active_tab()
S
80 1 3
TLA_Media\GTM_Kit\Admin\OptionsForm::admin_sidebar()
S
80 1 3
TLA_Media\GTM_Kit\Integration\EasyDigitalDownloads::register()
S
67 1 7
TLA_Media\GTM_Kit\Admin\GeneralOptionsPage::get_menu_slug()
S
82 1 3
TLA_Media\GTM_Kit\Admin\AbstractOptionsPage::get_tabs()
S
100 1 0
TLA_Media\GTM_Kit\Admin\AbstractOptionsPage::__construct()
S
81 1 3
TLA_Media\GTM_Kit\Frontend\BasicDatalayerData::__construct()
S
81 1 3
TLA_Media\GTM_Kit\Admin\GeneralOptionsPage::get_page_title()
S
79 1 3
TLA_Media\GTM_Kit\Admin\OptionTabs::get_tab_view()
S
78 1 3
TLA_Media\GTM_Kit\Admin\IntegrationsOptionsPage::get_page_title()
S
79 1 3
TLA_Media\GTM_Kit\Installation\Installation::is_first_install()
S
79 1 3
TLA_Media\GTM_Kit\Admin\AbstractOptionsPage::add_admin_page()
S
65 1 10
TLA_Media\GTM_Kit\Admin\AbstractOptionsPage::configure()
S
100 1 0
TLA_Media\GTM_Kit\Admin\AbstractOptionsPage::register()
S
67 1 7
TLA_Media\GTM_Kit\Admin\AbstractOptionsPage::get_capability()
S
82 1 3
TLA_Media\GTM_Kit\Admin\AbstractOptionsPage::get_page_title()
S
100 1 0
TLA_Media\GTM_Kit\Integration\AbstractEcommerce::register()
S
100 1 0
TLA_Media\GTM_Kit\Integration\EasyDigitalDownloads::__construct()
S
76 1 4
TLA_Media\GTM_Kit\Admin\IntegrationsOptionsPage::get_menu_title()
S
79 1 3
TLA_Media\GTM_Kit\Admin\AbstractOptionsPage::render()
S
100 1 0
TLA_Media\GTM_Kit\Admin\AbstractOptionsPage::get_parent_slug()
S
100 1 0
TLA_Media\GTM_Kit\Admin\IntegrationsOptionsPage::get_parent_slug()
S
82 1 3
TLA_Media\GTM_Kit\Admin\OptionTab::get_label()
S
82 1 3
TLA_Media\GTM_Kit\Frontend\BasicDatalayerData::register()
S
74 1 4
TLA_Media\GTM_Kit\Options::get_defaults()
S
67 1 9
TLA_Media\GTM_Kit\Integration\WooCommerce::product_block_add_to_cart_tracking()
S
74 1 4
TLA_Media\GTM_Kit\Admin\OptionTabs::get_base()
S
82 1 3
TLA_Media\GTM_Kit\Integration\AbstractIntegration::instance()
S
100 1 0
TLA_Media\GTM_Kit\Admin\IntegrationsOptionsPage::configure()
S
80 1 3
TLA_Media\GTM_Kit\Installation\Installation::set_first_install_options()
S
75 1 4
TLA_Media\GTM_Kit\Admin\OptionsForm::set_option_group()
S
81 1 3
TLA_Media\GTM_Kit\Admin\OptionTabs::add_tab()
S
76 1 4
TLA_Media\GTM_Kit\Admin\OptionTab::get_opt_group()
S
80 1 3
TLA_Media\GTM_Kit\Admin\GeneralOptionsPage::configure()
S
80 1 3
TLA_Media\GTM_Kit\Integration\AbstractEcommerce::instance()
S
100 1 0
TLA_Media\GTM_Kit\Admin\AbstractOptionsPage::get_menu_slug()
S
100 1 0
TLA_Media\GTM_Kit\Admin\OptionTabs::get_tabs()
S
82 1 3
TLA_Media\GTM_Kit\Admin\GeneralOptionsPage::get_menu_title()
S
79 1 3
TLA_Media\GTM_Kit\Admin\GeneralOptionsPage::get_parent_slug()
S
82 1 3
TLA_Media\GTM_Kit\Integration\WooCommerce::grouped_product_add_to_cart_tracking()
S
74 1 4
TLA_Media\GTM_Kit\Admin\OptionsForm::get_field_value()
S
79 1 3
TLA_Media\GTM_Kit\Admin\AdminNotice::__construct()
S
81 1 3
TLA_Media\GTM_Kit\Frontend\UserData::__construct()
S
81 1 3
gtmkit_plugin_activation()
S
78 1 4
TLA_Media\GTM_Kit\Admin\OptionTab::has_save_button()
S
79 1 3
TLA_Media\GTM_Kit\Admin\AdminNotice::register()
S
75 1 4
TLA_Media\GTM_Kit\Integration\WooCommerce::single_product_add_to_cart_tracking()
S
72 1 5
TLA_Media\GTM_Kit\Integration\WooCommerce::__construct()
S
76 1 4
TLA_Media\GTM_Kit\Frontend\Frontend::get_header_datalayer()
S
65 1 10
TLA_Media\GTM_Kit\Integration\AbstractIntegration::register()
S
100 1 0
TLA_Media\GTM_Kit\Integration\ContactForm7::register()
S
74 1 4
TLA_Media\GTM_Kit\Admin\IntegrationsOptionsPage::get_menu_slug()
S
82 1 3
gtmkit_load_text_domain()
S
78 1 3
TLA_Media\GTM_Kit\Integration\AbstractEcommerce::prefix_item_id()
S
100 1 0
TLA_Media\GTM_Kit\Admin\AbstractOptionsPage::get_menu_title()
S
81 1 3
TLA_Media\GTM_Kit\Options::__construct()
S
74 1 4
TLA_Media\GTM_Kit\Admin\GeneralOptionsPage::get_tabs()
S
65 1 8
TLA_Media\GTM_Kit\Frontend\Frontend::wp_rocket_exclude_javascript()
S
74 1 5
gtmkit_add_plugin_action_link()
S
64 1 9
TLA_Media\GTM_Kit\Frontend\Frontend::container_disabled()
S
81 1 3
TLA_Media\GTM_Kit\Admin\OptionTab::__construct()
S
73 1 5
TLA_Media\GTM_Kit\Admin\IntegrationsOptionsPage::get_tabs()
S
67 1 7
TLA_Media\GTM_Kit\Integration\ContactForm7::__construct()
S
81 1 3
TLA_Media\GTM_Kit\Integration\AbstractIntegration::__construct()
S
81 1 3
TLA_Media\GTM_Kit\Integration\AbstractEcommerce::__construct()
S
77 1 4
TLA_Media\GTM_Kit\Admin\OptionTab::get_name()
S
82 1 3
TLA_Media\GTM_Kit\Frontend\UserData::register()
S
74 1 4