Code Analysis: SiteGround Migrator 2.0.9

Function Rating Maintainability Complexity Lines of code
SiteGround_Migrator\Rest\Rest_Helper_Transfer_Service::transfer_success()
A
41 14 62
SiteGround_Migrator\Background_Process\Siteground_WP_Background_Process::handle()
A
48 11 32
SiteGround_Migrator\Api_Service\Api_Service::get_installation_info()
A
45 9 39
SiteGround_Migrator\Background_Process\Background_Process::task()
A
49 9 30
SiteGround_Migrator\Api_Service\Api_Service::authenticate()
A
51 9 26
SiteGround_Migrator\Transfer_Service\Transfer_Service::update_transfer_status_endpoint()
A
48 8 33
SiteGround_Migrator\Cli\Cli_Migrator::__invoke()
A
45 7 44
SiteGround_Migrator\Helper\Helper::get_sitespeed()
A
51 8 26
SiteGround_Migrator\Directory_Service\Directory_Service::remove_temp_dir_content()
A
52 8 24
SiteGround_Migrator\Files_Service\Files_Service::create_encrypted_archive()
S
50 7 29
SiteGround_Migrator\Rest\Rest_Helper_Transfer_Service::update_transfer_token()
S
47 6 38
SiteGround_Migrator\Email_Service\Email_Service::prepare_and_send_notification()
S
48 6 34
SiteGround_Migrator\Api_Service\Api_Service::get_ip_address()
S
56 7 18
SiteGround_Migrator\Transfer_Service\Transfer_Service::before_start_transfer()
S
53 6 25
SiteGround_Migrator\Helper\Helper::get_error_message()
S
55 6 20
SiteGround_Migrator\Files_Service\Files_Service::get_encrypted_file_content()
S
49 5 32
SiteGround_Migrator\Directory_Service\Directory_Service::get_upload_paths()
S
51 5 29
SiteGround_Migrator\Transfer_Service\Transfer_Service::check_environment_before_transfer()
S
52 5 26
SiteGround_Migrator\Files_Service\Files_Service::archive_dir()
S
53 5 21
SiteGround_Migrator\Loader\Loader::load_external_dependencies()
S
58 5 13
SiteGround_Migrator\Transfer_Service\Transfer_Service::transfer_prepared()
S
52 4 26
SiteGround_Migrator\Files_Service\Files_Service::prepare_archives_for_download()
S
54 4 22
SiteGround_Migrator\Files_Service\Files_Service::download_file_from_uploads()
S
56 4 20
SiteGround_Migrator\Rest\Rest::register_transfer_service_rest_routes()
S
44 1 65
SiteGround_Migrator\Api_Service\Api_Service::prepare_response_message()
S
56 4 19
SiteGround_Migrator\Database_Service\Database_Service::export_database()
S
56 4 18
SiteGround_Migrator\Loader\Loader::siteground_migrator_shutdown_handler()
S
56 4 18
SiteGround_Migrator\Directory_Service\Directory_Service::get_child_directories()
S
57 4 17
SiteGround_Migrator\Api_Service\Api_Service::parse_transfer_token()
S
57 4 17
SiteGround_Migrator\Rest\Rest_Helper::send_json()
S
57 4 17
SiteGround_Migrator\Files_Service\Files_Service::validate_and_build_path()
S
58 4 16
SiteGround_Migrator\Activator\Activator::activate()
S
59 4 15
SiteGround_Migrator\Directory_Service\Directory_Service::create_directory()
S
61 4 13
SiteGround_Migrator\Database_Service\Database_Service::export_and_encrypt_table()
S
51 3 27
SiteGround_Migrator\Directory_Service\Directory_Service::check_if_temp_dirs_extist()
S
62 4 12
SiteGround_Migrator\Admin\Admin::admin_print_styles()
S
51 3 26
SiteGround_Migrator\Background_Process\Siteground_WP_Background_Process::get_memory_limit()
S
62 4 11
SiteGround_Migrator\Background_Process\Siteground_WP_Background_Process::is_queue_empty()
S
55 3 20
SiteGround_Migrator\Files_Service\Files_Service::create_transfer_manifest()
S
55 3 19
SiteGround_Migrator\Directory_Service\Directory_Service::get_directory_size()
S
57 3 17
SiteGround_Migrator\Admin\Admin::enqueue_styles()
S
58 3 16
SiteGround_Migrator\Transfer_Service\Transfer_Service::check_size()
S
61 3 14
SiteGround_Migrator\Background_Process\Siteground_WP_Background_Process::get_batch()
S
51 2 29
SiteGround_Migrator\Deactivator\Deactivator::deactivate()
S
60 3 13
SiteGround_Migrator\Transfer_Service\Transfer_Service::run_background_processes()
S
53 2 28
SiteGround_Migrator\Background_Process\Siteground_WP_Background_Process::maybe_handle()
S
63 3 12
SiteGround_Migrator\Files_Service\Files_Service::create_encrypted_file()
S
62 3 12
SiteGround_Migrator\Api_Service\Api_Service::do_request()
S
51 2 26
SiteGround_Migrator\Transfer_Service\Transfer_Service::hide_errors_and_notices()
S
63 3 11
SiteGround_Migrator\Background_Process\Siteground_WP_Background_Process::handle_cron_healthcheck()
S
65 3 11
SiteGround_Migrator\Database_Service\Database_Service::get_database_size()
S
57 2 19
SiteGround_Migrator\Transfer_Service\Transfer_Service::validate_domain()
S
57 2 19
SiteGround_Migrator\Directory_Service\Directory_Service::create_temp_directories()
S
64 3 10
SiteGround_Migrator\Directory_Service\Directory_Service::get_temp_directory_path()
S
64 3 9
SiteGround_Migrator\Helper\Helper::get_article()
S
65 3 9
SiteGround_Migrator\Helper\Helper::is_flyweel()
S
65 3 9
SiteGround_Migrator\Rest\Rest_Helper::validate_and_get_option_value()
S
66 3 7
SiteGround_Migrator\Admin\Admin::is_plugin_page()
S
64 3 10
SiteGround_Migrator\Directory_Service\Directory_Service::get_wordpress_size()
S
62 2 12
SiteGround_Migrator\Admin\Admin::enqueue_scripts()
S
62 2 12
SiteGround_Migrator\Helper\Helper::before_transfer_messages()
S
61 2 12
SiteGround_Migrator\Background_Process\WP_Async_Request::get_post_args()
S
62 2 12
SiteGround_Migrator\Activator\Activator::siteground_migrator_compatability_warning()
S
63 2 11
SiteGround_Migrator\Directory_Service\Directory_Service::get_plugin_and_theme_child_directories()
S
64 2 11
SiteGround_Migrator\Background_Process\Siteground_WP_Background_Process::schedule_cron_healthcheck()
S
62 2 11
SiteGround_Migrator\Database_Service\Database_Service::get_tables()
S
59 1 18
SiteGround_Migrator\Admin\Admin::add_menu_page()
S
59 1 16
SiteGround_Migrator\Directory_Service\Directory_Service::get_instance()
S
71 2 6
SiteGround_Migrator\Background_Process\Siteground_WP_Background_Process::time_exceeded()
S
66 2 8
SiteGround_Migrator\Helper\Helper::is_siteground()
S
78 2 3
SiteGround_Migrator\Rest\Rest::load_dependencies()
S
73 2 5
SiteGround_Migrator\Transfer_Service\Transfer_Service::transfer_start()
S
66 2 8
SiteGround_Migrator\Api_Service\Api_Service::prepare_verify_request()
S
66 2 8
SiteGround_Migrator\Background_Process\Siteground_WP_Background_Process::cancel_process()
S
69 2 7
SiteGround_Migrator\Transfer_Service\Transfer_Service::update_transfer_progress()
S
66 2 8
SiteGround_Migrator\Directory_Service\Directory_Service::remove_temp_dir()
S
67 2 8
SiteGround_Migrator\Transfer_Service\Transfer_Service::cancel_and_reset()
S
65 2 10
SiteGround_Migrator\Background_Process\Siteground_WP_Background_Process::memory_exceeded()
S
64 2 9
SiteGround_Migrator\Activator\Activator::set_temp_directory()
S
69 2 6
SiteGround_Migrator\Background_Process\Siteground_WP_Background_Process::schedule_event()
S
73 2 5
SiteGround_Migrator\Background_Process\Siteground_WP_Background_Process::clear_scheduled_event()
S
71 2 6
SiteGround_Migrator\Files_Service\Files_Service::setup_wp_filesystem()
S
67 2 8
SiteGround_Migrator\Background_Process\Siteground_WP_Background_Process::is_process_running()
S
71 2 6
SiteGround_Migrator\Activator\Activator::siteground_migrator_multisite_warning()
S
70 2 6
SiteGround_Migrator\Background_Process\Siteground_WP_Background_Process::cancel_all()
S
64 2 10
SiteGround_Migrator\Activator\Activator::set_encryption_key()
S
70 2 6
SiteGround_Migrator\Rest\Rest::register_rest_routes()
S
72 2 5
SiteGround_Migrator\Loader\Loader::add_admin_hooks()
S
65 2 9
SiteGround_Migrator\Background_Process\WP_Async_Request::get_query_args()
S
66 2 9
SiteGround_Migrator\Background_Process\Siteground_WP_Background_Process::update()
S
71 2 6
SiteGround_Migrator\Loader\Loader::add_hooks()
S
72 2 5
SiteGround_Migrator\Background_Process\Siteground_WP_Background_Process::lock_process()
S
68 2 6
SiteGround_Migrator\Loader\Loader::add_cli_hooks()
S
73 2 5
SiteGround_Migrator\Loader\Loader::load_dependencies()
S
74 2 5
SiteGround_Migrator\Background_Process\Siteground_WP_Background_Process::save()
S
69 2 7
SiteGround_Migrator\Background_Process\WP_Async_Request::get_query_url()
S
71 2 6
SiteGround_Migrator\Rest\Rest_Helper::send_json_response()
S
68 2 7
SiteGround_Migrator\Rest\Rest_Helper_Transfer_Service::get_transfer_token()
S
63 1 12
SiteGround_Migrator\Rest\Rest_Helper_Transfer_Service::initiate_new_transfer()
S
64 1 10
SiteGround_Migrator\Rest\Rest::__construct()
S
82 1 3
SiteGround_Migrator\Rest\Rest_Helper_Transfer_Service::transfer_continue()
S
70 1 6
SiteGround_Migrator\Loader\Loader::add_i18n_hooks()
S
74 1 4
SiteGround_Migrator\Files_Service\Files_Service::__construct()
S
76 1 4
SiteGround_Migrator\Files_Service\Files_Service::rename_long_filename()
S
63 1 10
SiteGround_Migrator\Rest\Rest_Helper::validate_rest_request()
S
65 1 9
SiteGround_Migrator\Background_Process\Siteground_WP_Background_Process::delete()
S
77 1 4
SiteGround_Migrator\Transfer_Service\Transfer_Service::__construct()
S
64 1 10
SiteGround_Migrator\Loader\Loader::add_api_service_hooks()
S
79 1 3
SiteGround_Migrator\Background_Process\Siteground_WP_Background_Process::__construct()
S
67 1 7
SiteGround_Migrator\Rest\Rest_Helper_Transfer_Service::get_transfer_status()
S
66 1 9
SiteGround_Migrator\Loader\Loader::add_rest_hooks()
S
79 1 3
SiteGround_Migrator\Rest\Rest_Helper::send_json_success()
S
78 1 3
SiteGround_Migrator\Transfer_Service\Transfer_Service::update_status()
S
65 1 9
SiteGround_Migrator\Admin\Admin::display_settings_page()
S
82 1 3
SiteGround_Migrator\Cli\Cli::register_commands()
S
79 1 3
SiteGround_Migrator\Activator\Activator::siteground_migrator_deactivate_self()
S
80 1 3
SiteGround_Migrator\Loader\Loader::add_files_service_hooks()
S
79 1 3
SiteGround_Migrator\Api_Service\Api_Service::is_plugin_installed()
S
80 1 3
SiteGround_Migrator\Background_Process\WP_Async_Request::maybe_handle()
S
71 1 6
SiteGround_Migrator\Rest\Rest_Helper_Transfer_Service::__construct()
S
80 1 3
SiteGround_Migrator\Email_Service\Email_Service::send_email()
S
67 1 10
SiteGround_Migrator\Directory_Service\Directory_Service::__construct()
S
80 1 3
SiteGround_Migrator\Background_Process\Siteground_WP_Background_Process::push_to_queue()
S
76 1 4
SiteGround_Migrator\Background_Process\Siteground_WP_Background_Process::complete()
S
82 1 3
SiteGround_Migrator\Background_Process\Siteground_WP_Background_Process::unlock_process()
S
76 1 4
SiteGround_Migrator\Rest\Rest::check_permissions()
S
80 1 3
SiteGround_Migrator\Background_Process\WP_Async_Request::data()
S
77 1 4
SiteGround_Migrator\Background_Process\Siteground_WP_Background_Process::delete_all_in_queue()
S
75 1 4
SiteGround_Migrator\Background_Process\WP_Async_Request::handle()
S
100 1 0
SiteGround_Migrator\Rest\Rest_Helper::send_json_error()
S
79 1 3
SiteGround_Migrator\Background_Process\WP_Async_Request::__construct()
S
71 1 5
SiteGround_Migrator\Background_Process\Siteground_WP_Background_Process::dispatch()
S
77 1 4
SiteGround_Migrator\Transfer_Service\Transfer_Service::get_instance()
S
80 1 3
SiteGround_Migrator\Background_Process\Background_Process::complete()
S
81 1 3
SiteGround_Migrator\Background_Process\Siteground_WP_Background_Process::generate_key()
S
71 1 5
SiteGround_Migrator\Background_Process\WP_Async_Request::dispatch()
S
72 1 5
SiteGround_Migrator\Loader\Loader::add_transfer_service_hooks()
S
75 1 4
SiteGround_Migrator\Admin\Admin::get_page_title()
S
79 1 3
SiteGround_Migrator\Files_Service\Files_Service::encrypt_and_delete_original()
S
66 1 9
SiteGround_Migrator\Rest\Rest_Helper_Transfer_Service::transfer_cancelled()
S
64 1 10
SiteGround_Migrator\Transfer_Service\Transfer_Service::transfer_cancelled()
S
77 1 4
SiteGround_Migrator\Activator\Activator::check_hosting_environment()
S
79 1 3
SiteGround_Migrator\Database_Service\Database_Service::__construct()
S
80 1 3
SiteGround_Migrator\Background_Process\Siteground_WP_Background_Process::task()
S
100 1 0
SiteGround_Migrator\Loader\Loader::__construct()
S
71 1 6
SiteGround_Migrator\Background_Process\Siteground_WP_Background_Process::set_pid()
S
80 1 3