Code Analysis: GTM Kit 1.14

Function Rating Maintainability Complexity Lines of code
TLA_Media\GTM_Kit\Frontend\BasicDatalayerData::get_datalayer_content()
A
46 16 36
TLA_Media\GTM_Kit\Integration\WooCommerce::get_datalayer_content_order_received()
A
40 14 54
TLA_Media\GTM_Kit\Integration\WooCommerce::get_coupon_discount()
A
44 14 47
TLA_Media\GTM_Kit\Options::is_const_defined()
A
50 14 27
TLA_Media\GTM_Kit\Frontend\BasicDatalayerData::get_singular_datalayer_content()
A
47 12 36
TLA_Media\GTM_Kit\Integration\EasyDigitalDownloads::get_datalayer_content_order_received()
A
41 10 58
TLA_Media\GTM_Kit\Integration\EasyDigitalDownloads::get_item_data()
A
45 10 39
TLA_Media\GTM_Kit\Integration\WooCommerce::get_item_data()
A
45 10 37
TLA_Media\GTM_Kit\Options::array_merge_recursive()
A
49 10 32
gtmkit_frontend_init()
A
52 9 24
TLA_Media\GTM_Kit\Options::get_const_value()
A
53 9 24
TLA_Media\GTM_Kit\Frontend\UserData::get_datalayer_content()
A
52 9 24
TLA_Media\GTM_Kit\Integration\WooCommerce::get_datalayer_content()
A
54 9 22
TLA_Media\GTM_Kit\Integration\AbstractEcommerce::get_primary_product_category()
A
49 8 32
TLA_Media\GTM_Kit\Frontend\Frontend::register()
A
53 8 21
TLA_Media\GTM_Kit\Options::process_generic_options()
A
54 8 21
TLA_Media\GTM_Kit\Admin\SetupWizard::maybe_redirect_after_activation()
A
55 8 20
TLA_Media\GTM_Kit\Frontend\BasicDatalayerData::get_frontpage_datalayer_content()
A
57 8 19
TLA_Media\GTM_Kit\Options::get()
A
56 8 18
TLA_Media\GTM_Kit\Frontend\Frontend::get_header_datalayer()
S
50 7 30
TLA_Media\GTM_Kit\Integration\WooCommerce::enqueue_scripts()
S
49 6 34
TLA_Media\GTM_Kit\Integration\EasyDigitalDownloads::get_payment_key()
S
60 7 13
TLA_Media\GTM_Kit\Integration\WooCommerce::register()
S
38 1 97
TLA_Media\GTM_Kit\Integration\WooCommerce::cart_item_remove_link()
S
49 5 32
TLA_Media\GTM_Kit\Integration\WooCommerce::get_order_items()
S
50 5 29
TLA_Media\GTM_Kit\Integration\EasyDigitalDownloads::get_datalayer_content()
S
59 6 14
TLA_Media\GTM_Kit\Integration\WooCommerce::include_customer_data()
S
44 4 42
TLA_Media\GTM_Kit\Installation\Upgrade::v114_upgrade()
S
52 5 25
TLA_Media\GTM_Kit\Integration\WooCommerce::get_item_data_tag()
S
52 5 24
TLA_Media\GTM_Kit\Admin\IntegrationsOptionsPage::localize_script()
S
47 4 37
TLA_Media\GTM_Kit\Integration\WooCommerce::get_datalayer_content_product_page()
S
54 5 20
TLA_Media\GTM_Kit\Integration\WooCommerce::get_global_data()
S
54 5 19
TLA_Media\GTM_Kit\Common\Util::get_web_server()
S
59 5 15
TLA_Media\GTM_Kit\Common\Util::get_site_data()
S
42 2 59
TLA_Media\GTM_Kit\Options::postprocess_key_defaults()
S
61 5 14
TLA_Media\GTM_Kit\Admin\SetupWizard::settings_error_page()
S
46 2 57
TLA_Media\GTM_Kit\Integration\WooCommerce::get_cart_items()
S
51 4 27
TLA_Media\GTM_Kit\Admin\AbstractOptionsPage::settings_error_page()
S
46 2 57
TLA_Media\GTM_Kit\Integration\WooCommerce::set_list_name_on_category_and_tag()
S
62 5 11
TLA_Media\GTM_Kit\Installation\PluginDataImport::get_all()
S
51 4 26
TLA_Media\GTM_Kit\Integration\EasyDigitalDownloads::enqueue_scripts()
S
55 4 23
TLA_Media\GTM_Kit\Integration\WooCommerce::get_datalayer_content_checkout()
S
55 4 19
TLA_Media\GTM_Kit\Frontend\Frontend::get_header_script()
S
51 3 34
TLA_Media\GTM_Kit\Options::set()
S
58 4 15
TLA_Media\GTM_Kit\Integration\EasyDigitalDownloads::get_price_to_display()
S
59 4 14
TLA_Media\GTM_Kit\Integration\WooCommerce::has_woocommerce_blocks()
S
61 4 11
TLA_Media\GTM_Kit\Admin\SetupWizard::enqueue_assets()
S
51 3 25
TLA_Media\GTM_Kit\Installation\PluginDataImport::get_gtm4wp()
S
47 2 35
gtmkit_admin_init()
S
57 3 17
TLA_Media\GTM_Kit\Integration\WooCommerce::get_datalayer_content_cart()
S
57 3 17
TLA_Media\GTM_Kit\Integration\EasyDigitalDownloads::get_datalayer_content_product_page()
S
58 3 16
TLA_Media\GTM_Kit\Installation\PluginDataImport::get_metronet_tag_manager()
S
59 3 16
TLA_Media\GTM_Kit\Admin\Analytics::schedule_daily_event()
S
63 4 10
TLA_Media\GTM_Kit\Installation\Upgrade::get_upgrades()
S
59 3 14
TLA_Media\GTM_Kit\Integration\AbstractEcommerce::get_category_breadcrumb()
S
60 3 14
TLA_Media\GTM_Kit\Installation\PluginDataImport::get_google_analytics_and_google_tag_manager()
S
61 3 13
TLA_Media\GTM_Kit\Integration\ContactForm7::enqueue_scripts()
S
61 3 12
TLA_Media\GTM_Kit\Frontend\BasicDatalayerData::get_site_search_datalayer_content()
S
62 3 12
TLA_Media\GTM_Kit\Common\Util::get_active_plugins()
S
61 3 11
TLA_Media\GTM_Kit\Integration\AbstractEcommerce::get_product_term()
S
62 3 11
TLA_Media\GTM_Kit\Integration\WooCommerce::product_list_loop_add_to_cart_tracking()
S
54 2 23
TLA_Media\GTM_Kit\Integration\WooCommerce::Compatibility_With_TI_Wishlist()
S
66 3 8
TLA_Media\GTM_Kit\Frontend\Frontend::get_gtm_script()
S
63 3 9
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\Installation\PluginDataImport::get_gtm_for_woocommerce()
S
59 2 15
TLA_Media\GTM_Kit\Admin\AdminAPI::permission_callback()
S
65 3 8
TLA_Media\GTM_Kit\Options::pre_update_option()
S
65 3 9
TLA_Media\GTM_Kit\Admin\AdminAPI::register_rest_routes()
S
53 1 30
TLA_Media\GTM_Kit\Common\RestAPIServer::permission_callback()
S
66 3 7
TLA_Media\GTM_Kit\Common\Util::anonymize_options()
S
63 3 10
TLA_Media\GTM_Kit\Frontend\BasicDatalayerData::get_priority_datalayer_content()
S
65 3 9
TLA_Media\GTM_Kit\Frontend\Frontend::get_attributes()
S
60 2 13
TLA_Media\GTM_Kit\Admin\AbstractOptionsPage::enqueue_assets()
S
59 2 13
TLA_Media\GTM_Kit\Frontend\Frontend::get_datalayer_content()
S
61 2 12
TLA_Media\GTM_Kit\Installation\PluginDataImport::get_google_tag_manager()
S
62 2 12
TLA_Media\GTM_Kit\Integration\EasyDigitalDownloads::get_global_data()
S
62 2 11
TLA_Media\GTM_Kit\Common\Util::enqueue_script()
S
62 2 11
TLA_Media\GTM_Kit\Installation\Upgrade::v111_upgrade()
S
63 2 11
TLA_Media\GTM_Kit\Admin\Analytics::send_anonymous_data()
S
56 1 21
TLA_Media\GTM_Kit\Integration\WooCommerce::extend_store()
S
57 1 20
TLA_Media\GTM_Kit\Integration\WooCommerce::get_global_settings()
S
54 1 19
TLA_Media\GTM_Kit\Admin\GeneralOptionsPage::add_admin_page()
S
59 1 18
TLA_Media\GTM_Kit\Options::get_defaults()
S
58 1 17
TLA_Media\GTM_Kit\Admin\IntegrationsOptionsPage::enqueue_page_assets()
S
72 2 5
TLA_Media\GTM_Kit\Installation\Upgrade::__construct()
S
66 2 8
TLA_Media\GTM_Kit\Integration\EasyDigitalDownloads::get_cart_items()
S
64 2 9
TLA_Media\GTM_Kit\Installation\Activation::__construct()
S
69 2 7
TLA_Media\GTM_Kit\Admin\Analytics::register()
S
67 2 7
TLA_Media\GTM_Kit\Installation\PluginDataImport::extract_container_id()
S
68 2 7
TLA_Media\GTM_Kit\Integration\ContactForm7::instance()
S
65 2 9
TLA_Media\GTM_Kit\Integration\WooCommerce::get_datalayer_content_product_tag()
S
70 2 6
TLA_Media\GTM_Kit\Integration\EasyDigitalDownloads::instance()
S
65 2 9
TLA_Media\GTM_Kit\Integration\WooCommerce::get_datalayer_content_product_category()
S
70 2 6
TLA_Media\GTM_Kit\Integration\WooCommerce::get_payment_method()
S
69 2 7
TLA_Media\GTM_Kit\Integration\WooCommerce::instance()
S
65 2 9
TLA_Media\GTM_Kit\Admin\GeneralOptionsPage::enqueue_page_assets()
S
72 2 5
TLA_Media\GTM_Kit\Frontend\Frontend::__construct()
S
74 2 4
TLA_Media\GTM_Kit\Integration\EasyDigitalDownloads::add_to_cart_tracking()
S
67 2 7
TLA_Media\GTM_Kit\Admin\SetupWizard::setup_wizard_content()
S
73 2 4
TLA_Media\GTM_Kit\Options::is_const_enabled()
S
78 2 3
TLA_Media\GTM_Kit\Integration\EasyDigitalDownloads::get_datalayer_content_checkout()
S
63 2 10
TLA_Media\GTM_Kit\Integration\EasyDigitalDownloads::get_datalayer_content_product_tag()
S
70 2 6
TLA_Media\GTM_Kit\Common\RestAPIServer::register_rest_route()
S
69 2 6
gtmkit_the_noscript_tag()
S
70 2 6
TLA_Media\GTM_Kit\Integration\WooCommerce::set_list_name_in_woocommerce_loop()
S
66 2 8
TLA_Media\GTM_Kit\Common\Util::add_active_plugin_and_version()
S
67 2 7
TLA_Media\GTM_Kit\Common\Util::get_plugin_version()
S
78 2 3
TLA_Media\GTM_Kit\Integration\EasyDigitalDownloads::get_datalayer_content_product_category()
S
70 2 6
TLA_Media\GTM_Kit\Options::init()
S
70 2 7
TLA_Media\GTM_Kit\Frontend\Frontend::get_body_script()
S
70 2 5
TLA_Media\GTM_Kit\Installation\PluginDataImport::get()
S
67 2 7
TLA_Media\GTM_Kit\Admin\HelpOptionsPage::enqueue_page_assets()
S
72 2 5
TLA_Media\GTM_Kit\Admin\AbstractOptionsPage::admin_body_class()
S
69 2 7
TLA_Media\GTM_Kit\Installation\PluginDataImport::is_plugin_active()
S
70 2 6
TLA_Media\GTM_Kit\Admin\GeneralOptionsPage::localize_script()
S
59 1 14
TLA_Media\GTM_Kit\Admin\HelpOptionsPage::localize_script()
S
59 1 14
TLA_Media\GTM_Kit\Admin\AbstractOptionsPage::add_admin_page()
S
64 1 11
TLA_Media\GTM_Kit\Admin\SetupWizard::get_site_url()
S
78 1 3
TLA_Media\GTM_Kit\Admin\AbstractOptionsPage::get_menu_title()
S
81 1 3
TLA_Media\GTM_Kit\Admin\AdminAPI::get_site_data()
S
76 1 4
TLA_Media\GTM_Kit\Integration\WooCommerce::extend_product_schema()
S
66 1 9
TLA_Media\GTM_Kit\Admin\AbstractOptionsPage::__construct()
S
89 1 2
TLA_Media\GTM_Kit\Integration\WooCommerce::get_pages_property()
S
64 1 9
TLA_Media\GTM_Kit\Integration\WooCommerce::get_woocommerce_blocks()
S
80 1 3
TLA_Media\GTM_Kit\Admin\AdminAPI::__construct()
S
77 1 4
TLA_Media\GTM_Kit\Admin\Analytics::get_instance()
S
80 1 3
gtmkit_add_plugin_action_link()
S
64 1 10
TLA_Media\GTM_Kit\Common\Util::shorten_version()
S
79 1 3
TLA_Media\GTM_Kit\Integration\WooCommerce::set_list_name_in_woocommerce_loop_filter()
S
74 1 5
TLA_Media\GTM_Kit\Integration\AbstractIntegration::instance()
S
100 1 0
TLA_Media\GTM_Kit\Admin\SetupWizard::render_page()
S
82 1 3
TLA_Media\GTM_Kit\Integration\EasyDigitalDownloads::__construct()
S
75 1 4
TLA_Media\GTM_Kit\Admin\AbstractOptionsPage::enqueue_page_assets()
S
100 1 0
TLA_Media\GTM_Kit\Integration\WooCommerce::single_product_add_to_cart_tracking()
S
71 1 5
TLA_Media\GTM_Kit\Admin\AdminAPI::get_install_data()
S
76 1 4
TLA_Media\GTM_Kit\Admin\AbstractOptionsPage::render()
S
82 1 3
TLA_Media\GTM_Kit\Integration\AbstractEcommerce::__construct()
S
76 1 4
TLA_Media\GTM_Kit\Integration\EasyDigitalDownloads::prefix_item_id()
S
78 1 3
TLA_Media\GTM_Kit\Integration\WooCommerce::product_block_add_to_cart_tracking()
S
74 1 4
TLA_Media\GTM_Kit\Integration\AbstractEcommerce::prefix_item_id()
S
100 1 0
TLA_Media\GTM_Kit\Integration\WooCommerce::extend_cart_data()
S
73 1 5
TLA_Media\GTM_Kit\Integration\AbstractEcommerce::register()
S
100 1 0
TLA_Media\GTM_Kit\Admin\SetupWizard::add_dashboard_page()
S
77 1 3
TLA_Media\GTM_Kit\Admin\AbstractOptionsPage::get_parent_slug()
S
100 1 0
TLA_Media\GTM_Kit\Integration\WooCommerce::extend_product_data()
S
73 1 5
TLA_Media\GTM_Kit\Admin\SetupWizard::register()
S
69 1 6
TLA_Media\GTM_Kit\Admin\GeneralOptionsPage::configure()
S
80 1 3
gtmkit_plugin_deactivation()
S
73 1 5
TLA_Media\GTM_Kit\Admin\GeneralOptionsPage::get_menu_title()
S
79 1 3
TLA_Media\GTM_Kit\Admin\AdminAPI::rest_init()
S
79 1 3
TLA_Media\GTM_Kit\Admin\HelpOptionsPage::configure()
S
80 1 3
TLA_Media\GTM_Kit\Admin\AbstractOptionsPage::configure()
S
100 1 0
TLA_Media\GTM_Kit\Admin\HelpOptionsPage::get_menu_slug()
S
82 1 3
TLA_Media\GTM_Kit\Integration\AbstractIntegration::register()
S
100 1 0
TLA_Media\GTM_Kit\Admin\Analytics::__construct()
S
77 1 4
TLA_Media\GTM_Kit\Common\Util::__construct()
S
81 1 3
TLA_Media\GTM_Kit\Integration\ContactForm7::register()
S
74 1 4
TLA_Media\GTM_Kit\Installation\Activation::set_first_install_options()
S
67 1 7
TLA_Media\GTM_Kit\Frontend\UserData::__construct()
S
81 1 3
TLA_Media\GTM_Kit\Integration\AbstractIntegration::__construct()
S
77 1 4
TLA_Media\GTM_Kit\Admin\GeneralOptionsPage::get_parent_slug()
S
82 1 3
TLA_Media\GTM_Kit\Admin\GeneralOptionsPage::get_page_title()
S
79 1 3
TLA_Media\GTM_Kit\Admin\AdminAPI::set_options()
S
72 1 5
TLA_Media\GTM_Kit\Frontend\Frontend::wp_rocket_exclude_javascript()
S
74 1 5
gtmkit_plugin_activation()
S
78 1 4
TLA_Media\GTM_Kit\Admin\HelpOptionsPage::get_parent_slug()
S
82 1 3
TLA_Media\GTM_Kit\Integration\AbstractEcommerce::instance()
S
100 1 0
TLA_Media\GTM_Kit\Frontend\UserData::register()
S
74 1 4
TLA_Media\GTM_Kit\Installation\Activation::set_autoload_on_options()
S
75 1 4
TLA_Media\GTM_Kit\Admin\HelpOptionsPage::get_menu_title()
S
79 1 3
TLA_Media\GTM_Kit\Admin\AbstractOptionsPage::get_page_title()
S
100 1 0
TLA_Media\GTM_Kit\Admin\AbstractOptionsPage::get_position()
S
82 1 3
TLA_Media\GTM_Kit\Admin\AbstractOptionsPage::get_capability()
S
79 1 3
TLA_Media\GTM_Kit\Admin\AbstractOptionsPage::localize_script()
S
100 1 0
TLA_Media\GTM_Kit\Integration\EasyDigitalDownloads::register()
S
65 1 8
TLA_Media\GTM_Kit\Admin\IntegrationsOptionsPage::get_parent_slug()
S
82 1 3
TLA_Media\GTM_Kit\Admin\AbstractOptionsPage::get_menu_slug()
S
100 1 0
gtmkit_load_text_domain()
S
78 1 3
TLA_Media\GTM_Kit\Integration\WooCommerce::__construct()
S
72 1 5
TLA_Media\GTM_Kit\Options::__construct()
S
73 1 4
TLA_Media\GTM_Kit\Frontend\BasicDatalayerData::__construct()
S
81 1 3
TLA_Media\GTM_Kit\Integration\WooCommerce::get_permalink_structure_property()
S
64 1 10
TLA_Media\GTM_Kit\Admin\IntegrationsOptionsPage::get_page_title()
S
79 1 3
TLA_Media\GTM_Kit\Admin\GeneralOptionsPage::get_menu_slug()
S
82 1 3
TLA_Media\GTM_Kit\Frontend\Frontend::container_disabled()
S
81 1 3
TLA_Media\GTM_Kit\Integration\EasyDigitalDownloads::get_global_settings()
S
65 1 8
TLA_Media\GTM_Kit\Frontend\BasicDatalayerData::register()
S
71 1 5
TLA_Media\GTM_Kit\Admin\HelpOptionsPage::get_page_title()
S
79 1 3
TLA_Media\GTM_Kit\Admin\IntegrationsOptionsPage::get_menu_slug()
S
82 1 3
TLA_Media\GTM_Kit\Admin\IntegrationsOptionsPage::get_menu_title()
S
79 1 3
TLA_Media\GTM_Kit\Admin\AbstractOptionsPage::register()
S
67 1 7
TLA_Media\GTM_Kit\Installation\Activation::is_first_install()
S
79 1 3
TLA_Media\GTM_Kit\Admin\IntegrationsOptionsPage::configure()
S
80 1 3
TLA_Media\GTM_Kit\Admin\AdminAPI::get_options()
S
81 1 3
TLA_Media\GTM_Kit\Integration\WooCommerce::prefix_item_id()
S
78 1 3
TLA_Media\GTM_Kit\Integration\WooCommerce::grouped_product_add_to_cart_tracking()
S
74 1 4