Code Analysis: GTM Kit 1.21

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