Code Analysis: Hostinger Tools 3.0.4

Function Rating Maintainability Complexity Lines of code
Hostinger\Hooks::plugins_loaded()
A
48 15 30
Hostinger\ComingSoon::can_bypass_coming_soon()
A
56 8 17
Hostinger\Cli\Commands\Maintenance::mode()
S
53 5 23
Hostinger\Rest\SettingsRoutes::update_urls()
S
55 5 21
Hostinger\Rest\SettingsRoutes::fetch_wordpress_version()
S
57 5 16
Hostinger\Rest\SettingsRoutes::rebuild_url()
S
64 6 8
Hostinger\Bootstrap::load_dependencies()
S
60 5 14
Hostinger\Rest\SettingsRoutes::update_settings()
S
53 4 22
Hostinger\Settings::set_user_segment()
S
58 4 15
Hostinger\Helper::is_preview_domain()
S
65 5 9
Hostinger\Admin\Assets::admin_scripts()
S
41 1 60
Hostinger\Admin\Assets::__construct()
S
61 4 12
Hostinger\Loader::run()
S
58 3 18
Hostinger\ComingSoon::coming_soon()
S
65 4 9
Hostinger\Rest\SettingsRoutes::is_eligible_www_redirect()
S
59 3 14
Hostinger\Rest\Routes::permission_check()
S
63 3 12
Hostinger\Rest\SettingsRoutes::add_www_to_url()
S
62 3 12
Hostinger\Rest\SettingsRoutes::get_latest_wordpress_version()
S
62 3 12
Hostinger\Rest\SettingsRoutes::get_settings()
S
54 2 22
Hostinger\Admin\PluginSettings::save_plugin_settings()
S
66 3 8
Hostinger\Admin\Redirects::__construct()
S
64 3 10
Hostinger\Helper::is_plugin_active()
S
64 3 9
Hostinger\Settings::is_business_beginner()
S
78 3 3
Hostinger\Settings::is_bussiness_owner()
S
77 3 3
Hostinger\Admin\Ajax::dismiss_plugin_split_notice()
S
67 3 7
Hostinger\Admin\Hooks::message_about_plugin_split()
S
65 3 8
Hostinger\Rest\Routes::register_settings_routes()
S
53 1 29
Hostinger\Admin\Redirects::login_redirect()
S
63 2 12
Hostinger\Admin\PluginSettings::get_plugin_settings()
S
63 2 12
Hostinger\DefaultOptions::options()
S
63 2 11
Hostinger\Hostinger::define()
S
75 2 5
Hostinger\Cli\Commands\Maintenance::status()
S
64 2 10
Hostinger\Hostinger::get_plugin_version()
S
72 2 6
Hostinger\Admin\Options\PluginOptions::__construct()
S
67 2 7
Hostinger\DefaultOptions::add_options()
S
71 2 6
Hostinger\DefaultOptions::install_bypass_code()
S
64 2 10
Hostinger\Cli\Commands\Maintenance::define_command()
S
73 2 5
Hostinger\Settings::__construct()
S
74 2 5
Hostinger\Preview\Assets::__construct()
S
70 2 6
Hostinger\Cli::hooks()
S
73 2 5
Hostinger\Errors::get_error_message()
S
66 2 8
Hostinger\ComingSoon::__construct()
S
63 2 10
Hostinger\Settings::get_setting()
S
71 2 6
Hostinger\Settings::update_setting()
S
72 2 5
Hostinger\Preview\Assets::enqueue_preview_css()
S
72 2 5
Hostinger\Settings::is_learner()
S
79 2 3
Hostinger\Admin\Ajax::define_ajax_events()
S
72 2 5
Hostinger\Helper::generate_bypass_code()
S
63 2 10
Hostinger\Admin\Hooks::rate_plugin()
S
70 2 6
Hostinger\Hooks::check_pingback()
S
67 2 8
Hostinger\Hooks::check_xmlrpc_enabled()
S
67 2 8
Hostinger\Admin\PluginSettings::__construct()
S
74 2 5
Hostinger\Activator::update_installation_state_on_activation()
S
70 2 6
Hostinger\Admin\Hooks::custom_admin_notice()
S
61 1 14
Hostinger\Admin\Assets::admin_styles()
S
62 1 14
Hostinger\Errors::__construct()
S
62 1 13
Hostinger\Admin\Menu::sub_menu()
S
61 1 12
Hostinger\Admin\Assets::global_scripts()
S
65 1 11
Hostinger\Admin\Options\PluginOptions::get_disable_xml_rpc()
S
82 1 3
Hostinger\I18n::load_plugin_textdomain()
S
69 1 7
Hostinger\Admin\Options\PluginOptions::get_maintenance_mode()
S
82 1 3
Hostinger\Admin\Options\PluginOptions::get_bypass_code()
S
82 1 3
Hostinger\Admin\Hooks::__construct()
S
69 1 6
Hostinger\Admin\Options\PluginOptions::set_bypass_code()
S
81 1 3
Hostinger\Admin\Options\PluginOptions::get_force_www()
S
82 1 3
Hostinger\Admin\Menu::__construct()
S
75 1 4
Hostinger\Rest\Routes::register_routes()
S
82 1 3
Hostinger\Admin\Assets::global_styles()
S
69 1 8
Hostinger\Bootstrap::load_admin_dependencies()
S
67 1 9
Hostinger\Loader::add_filter()
S
77 1 3
Hostinger\Bootstrap::load_public_dependencies()
S
67 1 8
Hostinger\Rest\SettingsRoutes::regenerate_bypass_code()
S
63 1 10
Hostinger\Bootstrap::__construct()
S
80 1 3
Hostinger\Admin\Options\PluginOptions::get_force_https()
S
82 1 3
Hostinger\Admin\Options\PluginOptions::set_force_https()
S
81 1 3
Hostinger\DefaultOptions::get_astra_options()
S
74 1 5
Hostinger\Loader::add_action()
S
77 1 3
Hostinger\Rest\Routes::init()
S
79 1 3
Hostinger\Admin\Options\PluginOptions::to_array()
S
66 1 9
Hostinger\Admin\Ajax::__construct()
S
78 1 3
Hostinger\Deactivator::deactivate()
S
89 1 2
Hostinger\Hostinger::run()
S
82 1 3
Hostinger\ComingSoon::modify_headers()
S
76 1 4
Hostinger\Cli::__construct()
S
82 1 3
Hostinger\Admin\Menu::add_admin_bar_items()
S
66 1 8
Hostinger\Admin\Options\PluginOptions::set_maintenance_mode()
S
81 1 3
Hostinger\Admin\Menu::render_tools_menu_page()
S
73 1 6
Hostinger\Activator::activate()
S
74 1 5
Hostinger\Hostinger::bootstrap()
S
73 1 5
Hostinger\Rest\SettingsRoutes::__construct()
S
81 1 3
Hostinger\Loader::add()
S
64 1 10
Hostinger\Helper::woocommerce_onboarding_choice()
S
78 1 3
Hostinger\Rest\Routes::__construct()
S
81 1 3
Hostinger\Admin\Options\PluginOptions::set_force_www()
S
81 1 3
Hostinger\Rest\SettingsRoutes::check_domain_records()
S
79 1 3
hostinger_activate()
S
83 1 3
Hostinger\Hooks::__construct()
S
72 1 5
hostinger_deactivate()
S
83 1 3
Hostinger\Loader::__construct()
S
77 1 4
Hostinger\Bootstrap::set_locale()
S
75 1 4
Hostinger\Admin\Options\PluginOptions::set_disable_xml_rpc()
S
81 1 3
Hostinger\Bootstrap::run()
S
75 1 5
hostinger_load_menus()
S
77 1 4
Hostinger\ComingSoon::register_styles()
S
69 1 8