Code Analysis: Hostinger 2.2.1

Function Rating Maintainability Complexity Lines of code
Hostinger\Surveys\Surveys::get_specified_survey_questions()
A
40 10 59
Hostinger\Admin\Ajax::woo_onboarding_choice()
A
47 9 35
Hostinger\Surveys\Surveys::is_ai_onboarding_survey_enabled()
A
55 10 18
Hostinger\Surveys\Surveys::is_client_eligible()
A
49 9 31
Hostinger\Admin\Hooks::enable_woo_onboarding()
A
54 9 21
Hostinger\Admin\Onboarding\AutocompleteSteps::post_content_change()
A
54 9 19
Hostinger\Surveys\Surveys::is_woocommerce_survey_enabled()
A
56 9 16
Hostinger\Amplitude\Amplitude::woocommerce_onboarding_started()
A
49 8 30
Hostinger\Hooks::check_url_and_flush_rules()
A
52 8 22
Hostinger\Surveys\Surveys::submit_survey_answers()
A
48 7 34
Hostinger\Surveys\Surveys::is_woocommerce_admin_page()
A
56 8 18
Hostinger\Amplitude\Amplitude::woocommerce_onboarding_completed()
A
48 7 31
Hostinger\Surveys\Surveys::is_affiliate_survey_enabled()
S
58 8 14
Hostinger\Surveys\Surveys::is_prebuild_website_survey_enabled()
S
58 8 14
Hostinger\Surveys\Surveys::is_content_generation_survey_enabled()
S
58 8 14
Hostinger\Bootstrap::define_admin_surveys()
S
48 6 35
Hostinger\Admin\Onboarding\AutocompleteSteps::logo_upload()
S
54 7 19
Hostinger\Helper::is_this_page()
S
58 7 16
Hostinger\Helper::is_hostinger_admin_page()
S
57 7 16
Hostinger\Admin\Assets::admin_scripts()
S
45 4 56
Hostinger\Admin\Onboarding\AutocompleteSteps::check_option_change()
S
61 7 11
Hostinger\Surveys\Surveys::get_required_survey_items()
S
49 5 39
Hostinger\Bootstrap::load_dependencies()
S
57 6 17
Hostinger\Helper::can_show_store_ready_message()
S
58 6 16
Hostinger\Admin\Onboarding\AutocompleteSteps::new_post_item_creation()
S
62 7 10
Hostinger\Helper::get_host_info()
S
59 6 13
Hostinger\Admin\Onboarding\AutocompleteSteps::edit_site_title()
S
60 6 12
Hostinger\Admin\Onboarding\Steps\AddPage::get_body()
S
44 3 54
Hostinger\Surveys\Surveys::get_survey_questions()
S
53 5 24
Hostinger\Admin\Onboarding\Onboarding::load_steps()
S
54 5 23
Hostinger\Admin\Ajax::publish_website()
S
53 5 22
Hostinger\Cli\Commands\Maintenance::mode()
S
55 5 20
Hostinger\Admin\Ajax::complete_onboarding_step()
S
56 5 17
Hostinger\Admin\Ajax::get_survey()
S
57 5 15
Hostinger\Admin\Hooks::omnisend_discount_notice()
S
58 5 15
Hostinger\Amplitude\Amplitude::map_action()
S
60 5 15
Hostinger\Admin\Onboarding\AutocompleteSteps::image_upload()
S
59 5 13
Hostinger\Admin\Onboarding\AutocompleteSteps::domain_is_connected()
S
60 5 13
Hostinger\Admin\Ajax::submit_survey()
S
59 5 12
Hostinger\Admin\Assets::admin_styles()
S
61 5 12
Hostinger\Amplitude\Amplitude::send_request()
S
60 5 12
Hostinger\Admin\Menu::admin_menu()
S
48 3 42
Hostinger\Amplitude\Amplitude::setup_woocommerce_onboarding_events()
S
62 5 11
Hostinger\Admin\Menu::admin_bar()
S
47 3 40
Hostinger\Amplitude\Amplitude::should_send_amplitude_event()
S
55 4 20
Hostinger\Admin\Onboarding\Steps\ConnectDomain::connect_domain_html()
S
46 1 63
Hostinger\Surveys\Rest\Rest::get_survey_questions()
S
57 4 18
Hostinger\Settings::set_user_segment()
S
58 4 15
Hostinger\Admin\Ajax::hide_survey()
S
60 4 12
Hostinger\Admin\Ajax::hide_promotional_banner()
S
60 4 12
Hostinger\Surveys\Surveys::get_between_rule_values()
S
61 4 12
Hostinger\Surveys\Surveys::filter_questions_by_slug()
S
61 4 12
Hostinger\Admin\Ajax::woocommerce_setup_store()
S
62 4 11
Hostinger\Surveys\Surveys::get_oldest_product_date()
S
56 3 21
Hostinger\Admin\Ajax::define_ajax_events()
S
56 3 20
Hostinger\Loader::run()
S
58 3 18
Hostinger\Surveys\Rest\Rest::is_client_eligible()
S
58 3 16
Hostinger\ComingSoon::coming_soon()
S
69 4 6
Hostinger\Config::get_config_value()
S
70 4 6
Hostinger\Helper::show_woocommerce_onboarding()
S
71 4 5
Hostinger\Admin\Hooks::store_ready_message_logic()
S
64 4 10
Hostinger\Helper::is_preview_domain()
S
65 4 9
Hostinger\Helper::check_transient_eligibility()
S
61 3 12
Hostinger\Admin\Ajax::menu_action()
S
60 3 12
Hostinger\Admin\Onboarding\Steps\AddPage::get_title()
S
63 3 11
Hostinger\Surveys\Questions::map_survey_questions()
S
53 2 24
Hostinger\Admin\Onboarding\Onboarding::get_content()
S
54 2 23
Hostinger\Admin\Hooks::show_store_ready_message()
S
56 2 21
Hostinger\Admin\Hooks::force_woo_notices()
S
62 2 17
Hostinger\Admin\Ajax::__construct()
S
57 2 17
Hostinger\Admin\Onboarding\Steps\SetupStore::get_body()
S
52 1 31
Hostinger\Helper::error_log()
S
72 3 5
Hostinger\Helper::get_hpanel_domain_url()
S
64 3 8
Hostinger\Admin\Ajax::request_security_check()
S
66 3 9
Hostinger\Admin\Ajax::dismiss_omnisend_notice()
S
67 3 7
Hostinger\Admin\Hooks::rate_plugin()
S
68 3 7
Hostinger\Amplitude\Amplitude::__construct()
S
59 2 15
Hostinger\Admin\Redirects::__construct()
S
64 3 10
Hostinger\Admin\Onboarding\AutocompleteSteps::__construct()
S
57 2 15
Hostinger\Helper::is_plugin_active()
S
64 3 9
Hostinger\Surveys\Rest\Rest::get_result()
S
65 3 8
Hostinger\Helper::get_api_token()
S
66 3 8
Hostinger\Settings::is_business_beginner()
S
78 3 3
Hostinger\Settings::is_bussiness_owner()
S
77 3 3
Hostinger\Admin\Hooks::__construct()
S
59 2 14
Hostinger\Requests\Client::get()
S
60 2 13
Hostinger\Surveys\Rest\Rest::decode_response()
S
61 2 13
Hostinger\Surveys\Surveys::generate_survey_html()
S
55 1 27
Hostinger\Amplitude\Amplitude::track_menu_action()
S
62 2 12
Hostinger\Amplitude\Amplitude::setup_store()
S
62 2 12
Hostinger\Admin\Redirects::login_redirect()
S
63 2 12
Hostinger\DefaultOptions::options()
S
63 2 11
Hostinger\Admin\Onboarding\Steps\ConnectDomain::get_domain_html()
S
58 1 18
Hostinger\Admin\Onboarding\Steps\AddLogo::get_body()
S
60 1 16
Hostinger\Admin\Onboarding\Steps\AddPost::get_body()
S
60 1 16
Hostinger\Admin\Onboarding\Steps\ConnectAffiliate::get_body()
S
59 1 16
Hostinger\Admin\Onboarding\Steps\ConnectDomain::get_body()
S
60 1 16
Hostinger\Admin\Onboarding\Steps\AddDescription::get_body()
S
60 1 16
Hostinger\Admin\Onboarding\Steps\AddImage::get_body()
S
60 1 16
Hostinger\Cli\Commands\Maintenance::define_command()
S
73 2 5
Hostinger\Settings::__construct()
S
74 2 5
Hostinger\Preview\Assets::enqueue_preview_css()
S
72 2 5
Hostinger\Surveys\Surveys::customer_csat_survey()
S
69 2 7
Hostinger\Settings::get_setting()
S
71 2 6
Hostinger\Settings::update_setting()
S
72 2 5
Hostinger\Cli::hooks()
S
73 2 5
Hostinger\Surveys\Surveys::prebuild_website_survey()
S
69 2 7
Hostinger\Config::decode_config()
S
70 2 6
Hostinger\Settings::is_learner()
S
79 2 3
Hostinger\Helper::is_free_subdomain()
S
73 2 4
Hostinger\Surveys\Surveys::add_user_answers()
S
65 2 9
Hostinger\DefaultOptions::add_options()
S
73 2 5
Hostinger\Helper::get_promotional_link_url()
S
71 2 6
Hostinger\Admin\Ajax::identify_action()
S
64 2 9
Hostinger\Cli\Commands\Maintenance::status()
S
66 2 9
Hostinger\Surveys\Surveys::customer_ai_csat_survey()
S
69 2 7
Hostinger\Activator::update_installation_state_on_activation()
S
70 2 6
Hostinger\Surveys\Surveys::extract_between_values()
S
70 2 5
Hostinger\Surveys\Surveys::affiliate_plugin_survey()
S
69 2 7
Hostinger\Bootstrap::load_onboarding_dependencies()
S
75 2 5
Hostinger\Preview\Assets::__construct()
S
70 2 6
Hostinger\Hostinger::define()
S
75 2 5
Hostinger\Admin\Onboarding\AutocompleteSteps::is_step_completed()
S
66 2 9
Hostinger\Hostinger::get_plugin_version()
S
72 2 6
Hostinger\Surveys\Surveys::ai_plugin_survey()
S
69 2 7
Hostinger\Surveys\Surveys::is_survey_question_required()
S
77 2 3
Hostinger\Errors::get_error_message()
S
66 2 8
Hostinger\Errors::__construct()
S
62 1 13
Hostinger\Admin\Onboarding\Steps\AddHeading::get_body()
S
63 1 12
Hostinger\Requests\Client::post()
S
62 1 11
Hostinger\Admin\Onboarding\AutocompleteSteps::new_post_creation()
S
79 1 3
Hostinger\Config::__construct()
S
81 1 3
Hostinger\Admin\Onboarding\Steps\ConnectDomain::button_text()
S
79 1 3
Hostinger\Admin\Onboarding\Steps\ConnectAffiliate::get_redirect_link()
S
80 1 3
Hostinger\Surveys\Rest\Rest::submit_survey_data()
S
75 1 4
Hostinger\Helper::woocommerce_onboarding_choice()
S
78 1 3
Hostinger\Admin\Onboarding\Steps\AddHeading::get_redirect_link()
S
80 1 3
Hostinger\Admin\Onboarding\Steps\AddHeading::button_text()
S
79 1 3
Hostinger\Admin\Assets::__construct()
S
72 1 5
Hostinger\Surveys\Surveys::is_time_elapsed()
S
72 1 5
Hostinger\Admin\Menu::__construct()
S
75 1 4
Hostinger\Admin\Hooks::add_woocommerce_onboarding_class()
S
77 1 4
Hostinger\Admin\Onboarding\AutocompleteSteps::new_page_creation()
S
79 1 3
Hostinger\Surveys\Surveys::get_wp_survey_questions()
S
72 1 5
Hostinger\Loader::__construct()
S
77 1 4
Hostinger\Admin\Onboarding\Steps\OnboardingStep::completed()
S
78 1 3
Hostinger\I18n::load_plugin_textdomain()
S
69 1 7
Hostinger\Admin\Onboarding\Steps\AddImage::get_title()
S
79 1 3
Hostinger\Admin\Onboarding\Steps\AddDescription::__construct()
S
80 1 3
Hostinger\Loader::add()
S
64 1 10
Hostinger\Admin\Onboarding\Steps\AddDescription::get_title()
S
79 1 3
Hostinger\Surveys\Surveys::__construct()
S
69 1 7
hostinger_deactivate()
S
83 1 3
Hostinger\Admin\Onboarding\Steps\AddPost::step_identifier()
S
82 1 3
hostinger_activate()
S
83 1 3
Hostinger\Admin\Onboarding\Steps\OnboardingStep::step_identifier()
S
100 1 0
Hostinger\Admin\Onboarding\Steps\AddDescription::get_redirect_link()
S
80 1 3
Hostinger\Hooks::__construct()
S
79 1 3
Hostinger\Admin\Onboarding\Steps\SetupStore::get_title()
S
79 1 3
Hostinger\Bootstrap::load_public_dependencies()
S
78 1 4
Hostinger\Bootstrap::set_locale()
S
75 1 4
Hostinger\Admin\Onboarding\Steps\OnboardingStep::get_title()
S
100 1 0
Hostinger\Admin\Onboarding\Steps\AddPage::get_redirect_link()
S
80 1 3
Hostinger\Admin\Onboarding\Steps\OnboardingStep::get_body()
S
100 1 0
Hostinger\Admin\Onboarding\Steps\SetupStore::step_identifier()
S
82 1 3
Hostinger\Cli::__construct()
S
82 1 3
Hostinger\Admin\Onboarding\Steps\AddPost::get_redirect_link()
S
80 1 3
Hostinger\Admin\Onboarding\Settings::all_steps_completed()
S
67 1 7
Hostinger\Admin\Onboarding\Steps\AddHeading::get_title()
S
79 1 3
Hostinger\Helper::default_woocommerce_survey_steps_completed()
S
75 1 4
Hostinger\Hostinger::run()
S
82 1 3
Hostinger\Admin\Onboarding\Steps\AddImage::get_redirect_link()
S
80 1 3
Hostinger\Admin\Onboarding\Onboarding::get_steps()
S
81 1 3
Hostinger\Admin\Onboarding\Steps\AddDescription::step_identifier()
S
82 1 3
Hostinger\Admin\Onboarding\Steps\ConnectDomain::get_title()
S
79 1 3
Hostinger\Admin\Onboarding\Onboarding::maintenance_mode_enabled()
S
76 1 4
Hostinger\Deactivator::deactivate()
S
89 1 2
Hostinger\Admin\Onboarding\AutocompleteSteps::add_completed_step()
S
71 1 6
Hostinger\Admin\Onboarding\Steps\ConnectAffiliate::get_title()
S
79 1 3
Hostinger\Admin\Onboarding\Steps\AddHeading::step_identifier()
S
82 1 3
Hostinger\Helper::is_woocommerce_site()
S
80 1 3
Hostinger\Helper::default_woocommerce_survey_completed()
S
72 1 5
Hostinger\Admin\Onboarding\Steps\ConnectDomain::get_redirect_link()
S
63 1 10
Hostinger\Admin\Onboarding\Steps\AddLogo::get_redirect_link()
S
80 1 3
Hostinger\Admin\Onboarding\Steps\AddPost::get_title()
S
79 1 3
Hostinger\Surveys\Rest\Rest::__construct()
S
81 1 3
Hostinger\Admin\Onboarding\Steps\OnboardingStep::get_redirect_link()
S
100 1 0
Hostinger\DefaultOptions::get_astra_options()
S
72 1 6
Hostinger\Bootstrap::__construct()
S
80 1 3
Hostinger\Bootstrap::load_admin_dependencies()
S
70 1 7
Hostinger\Hostinger::bootstrap()
S
73 1 5
Hostinger\Activator::activate()
S
74 1 5
Hostinger\Admin\Onboarding\Steps\AddPage::step_identifier()
S
82 1 3
Hostinger\Admin\Onboarding\Steps\ConnectDomain::step_identifier()
S
82 1 3
Hostinger\Admin\Onboarding\AutocompleteSteps::new_product_creation()
S
79 1 3
Hostinger\Admin\Onboarding\Steps\ConnectAffiliate::button_text()
S
79 1 3
Hostinger\Loader::add_action()
S
77 1 3
Hostinger\Admin\Onboarding\Steps\AddPost::button_text()
S
79 1 3
Hostinger\ComingSoon::register_styles()
S
78 1 3
Hostinger\Requests\Client::__construct()
S
77 1 4
Hostinger\Admin\Onboarding\Steps\AddLogo::button_text()
S
79 1 3
Hostinger\Admin\Onboarding\Steps\AddLogo::get_title()
S
79 1 3
Hostinger\Admin\Onboarding\Steps\SetupStore::button_text()
S
79 1 3
Hostinger\Admin\Hooks::hide_astra_builder_selection_screen()
S
80 1 3
Hostinger\Admin\Onboarding\Steps\AddPage::button_text()
S
79 1 3
Hostinger\Admin\Menu::render()
S
76 1 4
Hostinger\Bootstrap::amplitude_dependencies()
S
82 1 3
Hostinger\Admin\Onboarding\Steps\AddLogo::step_identifier()
S
82 1 3
Hostinger\Admin\Onboarding\Steps\SetupStore::get_redirect_link()
S
78 1 3
Hostinger\Bootstrap::run()
S
75 1 5
Hostinger\Admin\Onboarding\Steps\AddImage::step_identifier()
S
82 1 3
Hostinger\Admin\Onboarding\Steps\AddImage::button_text()
S
79 1 3
Hostinger\Loader::add_filter()
S
77 1 3
Hostinger\ComingSoon::__construct()
S
75 1 4
Hostinger\Admin\Onboarding\Steps\AddDescription::button_text()
S
79 1 3
Hostinger\Admin\Onboarding\Steps\OnboardingStep::get_completed_steps()
S
80 1 3
Hostinger\Admin\Onboarding\Steps\ConnectAffiliate::step_identifier()
S
82 1 3