Code Analysis: SiteGround Migrator 1.1.0

Function Rating Maintainability Complexity Lines of code
Siteground_WP_Background_Process::handle()
A
49 10 30
migrator_command()
A
45 8 43
Siteground_Migrator_Api_Service::authenticate()
A
51 9 26
Siteground_Migrator_Transfer_Service::update_transfer_status_endpoint()
A
48 8 33
Siteground_Migrator_Background_Process::task()
A
50 8 27
Siteground_Migrator_Directory_Service::remove_temp_dir()
A
52 8 24
Siteground_Migrator_Api_Service::get_installation_info()
A
46 7 37
SiteGround_Migrator_Email_Service::prepare_and_send_notification()
S
48 6 34
Siteground_Migrator_Api_Service::get_ip_address()
S
56 7 18
Shuttle_Dumper_ShellCommand::dump()
S
50 6 27
Siteground_Migrator_Transfer_Service::update_transfer_token()
S
52 6 27
Siteground_Migrator_Transfer_Service::before_start_transfer()
S
53 6 25
Shuttle_Dumper::create()
S
56 6 19
Siteground_Migrator_Files_Service::get_encrypted_file_content()
S
49 5 32
Siteground_Migrator_Transfer_Service::check_environment_before_transfer()
S
53 5 25
Shuttle_Dumper_Native::dump_table()
S
52 5 24
SiteGround_Migrator_Helper::get_error_message()
S
57 5 17
Siteground_Migrator_Transfer_Service::transfer_prepared()
S
52 4 26
Siteground_Migrator_Files_Service::prepare_archives_for_download()
S
54 4 22
Siteground_Migrator_Files_Service::download_file_from_uploads()
S
56 4 20
Siteground_Migrator_Api_Service::prepare_response_message()
S
56 4 19
Shuttle_Dumper::is_shell_command_available()
S
56 4 19
Siteground_Migrator_Database_Service::export_database()
S
56 4 18
Shuttle_Dumper::get_tables()
S
56 4 18
Siteground_Migrator_Files_Service::create_encrypted_archive()
S
57 4 17
SiteGround_Migrator::siteground_migrator_shutdown_handler()
S
57 4 17
Siteground_Migrator_Api_Service::parse_transfer_token()
S
57 4 17
Siteground_Migrator_Directory_Service::get_child_directories()
S
57 4 17
Siteground_Migrator_Directory_Service::create_directory()
S
61 4 13
Siteground_Migrator_Directory_Service::check_if_temp_dirs_extist()
S
62 4 12
Siteground_Migrator_Directory_Service::get_upload_paths()
S
53 3 26
Siteground_WP_Background_Process::get_memory_limit()
S
62 4 11
Siteground_Migrator_Database_Service::export_and_encrypt_table()
S
52 3 24
Siteground_Migrator_Admin::enqueue_scripts()
S
54 3 23
Siteground_WP_Background_Process::is_queue_empty()
S
55 3 20
Siteground_Migrator_Directory_Service::get_directory_size()
S
58 3 17
Siteground_Migrator_Admin::enqueue_styles()
S
58 3 17
Siteground_Migrator_Files_Service::zip_dir()
S
56 3 17
Shuttle_Dumper_Native::dump()
S
50 2 30
Siteground_WP_Background_Process::get_batch()
S
51 2 29
Siteground_Migrator_Transfer_Service::check_size()
S
61 3 14
Siteground_Migrator_Files_Service::validate_and_build_path()
S
60 3 13
Siteground_Migrator_Transfer_Service::run_background_processes()
S
53 2 28
Siteground_WP_Background_Process::maybe_handle()
S
63 3 12
Siteground_Migrator_Files_Service::create_encrypted_file()
S
62 3 12
Shuttle_DBConn_Mysql::connect()
S
61 3 12
Siteground_Migrator_Api_Service::do_request()
S
51 2 26
Siteground_WP_Background_Process::handle_cron_healthcheck()
S
65 3 11
Siteground_Migrator_Transfer_Service::hide_errors_and_notices()
S
63 3 11
SiteGround_Migrator::load_dependencies()
S
48 1 35
Siteground_Migrator_Database_Service::get_database_size()
S
57 2 19
Siteground_Migrator_Transfer_Service::validate_domain()
S
57 2 19
Shuttle_DBConn_Mysqli::query()
S
64 3 10
Siteground_Migrator_Directory_Service::create_temp_directories()
S
64 3 10
Shuttle_DBConn::__construct()
S
65 3 8
Siteground_Migrator_Files_Service::create_transfer_manifest()
S
58 2 15
SiteGround_Migrator_Helper::get_article()
S
65 3 9
Shuttle_DBConn_Mysql::query()
S
64 3 10
Siteground_Migrator_Directory_Service::get_wordpress_size()
S
62 2 12
SiteGround_Migrator_Helper::before_transfer_messages()
S
61 2 12
WP_Async_Request::get_post_args()
S
62 2 12
Siteground_Migrator_Deactivator::deactivate()
S
64 2 11
Siteground_Migrator_Settings::register_settings()
S
64 2 11
siteground_migrator_compatability_warning()
S
64 2 11
Siteground_Migrator_Directory_Service::get_plugin_and_theme_child_directories()
S
64 2 11
Siteground_WP_Background_Process::schedule_cron_healthcheck()
S
62 2 11
Siteground_Migrator_Database_Service::get_tables()
S
59 1 18
Siteground_Migrator_Transfer_Service::__construct()
S
56 1 18
Siteground_Migrator_Settings::add_menu_page()
S
60 1 16
Shuttle_DBConn_Mysql::escape()
S
71 2 6
Siteground_Migrator_Activator::set_temp_directory()
S
69 2 6
Siteground_Migrator_Transfer_Service::transfer_cancelled()
S
65 2 10
Shuttle_DBConn_Mysql::fetch()
S
67 2 8
Siteground_Migrator_Activator::check_hosting_environment()
S
74 2 4
WP_Async_Request::get_query_args()
S
66 2 9
Siteground_Migrator_Settings_Field::is_required()
S
73 2 5
Siteground_WP_Background_Process::clear_scheduled_event()
S
71 2 6
Siteground_Migrator_Activator::set_encryption_key()
S
70 2 6
Shuttle_DBConn_Mysqli::connect()
S
66 2 8
Siteground_Migrator_Api_Service::prepare_verify_request()
S
66 2 8
Siteground_WP_Background_Process::save()
S
69 2 7
Shuttle_Dump_File::__construct()
S
69 2 7
Siteground_Migrator_Settings_Field::factory()
S
65 2 8
Shuttle_Dump_File::create()
S
71 2 6
Siteground_WP_Background_Process::update()
S
71 2 6
WP_Async_Request::get_query_url()
S
71 2 6
Shuttle_DBConn_Mysqli::fetch()
S
67 2 8
Siteground_WP_Background_Process::schedule_event()
S
73 2 5
Shuttle_Dumper::has_shell_access()
S
68 2 7
Siteground_Migrator_Directory_Service::get_temp_directory_path()
S
66 2 8
Siteground_WP_Background_Process::lock_process()
S
68 2 6
Shuttle_DBConn_Mysqli::escape()
S
71 2 6
Siteground_WP_Background_Process::time_exceeded()
S
66 2 8
Siteground_WP_Background_Process::cancel_process()
S
69 2 7
Siteground_WP_Background_Process::cancel_all()
S
64 2 10
siteground_migrator_multisite_warning()
S
71 2 6
Shuttle_Insert_Statement::get_sql()
S
68 2 7
Siteground_WP_Background_Process::is_process_running()
S
71 2 6
Siteground_Migrator_Files_Service::setup_wp_filesystem()
S
67 2 8
Shuttle_DBConn::create()
S
67 2 8
Siteground_WP_Background_Process::memory_exceeded()
S
64 2 9
Siteground_Migrator_Settings_Field::render_help()
S
65 2 10
Siteground_Migrator_Transfer_Service::transfer_start()
S
66 2 8
Siteground_Migrator_Settings_Field::__construct()
S
61 1 14
Siteground_Migrator_Settings::setting_fields()
S
62 1 13
WP_Async_Request::maybe_handle()
S
71 1 6
Siteground_Migrator_Transfer_Service::update_transfer_progress()
S
74 1 4
siteground_migrator_deactivate_self()
S
81 1 3
Shuttle_DBConn_Mysql::fetch_numeric()
S
80 1 3
WP_Async_Request::data()
S
77 1 4
Siteground_Migrator_Directory_Service::__construct()
S
77 1 4
Siteground_Migrator_Directory_Service::get_instance()
S
80 1 3
Siteground_WP_Background_Process::__construct()
S
67 1 7
Siteground_Migrator_Settings_Field::render()
S
100 1 0
SiteGround_Migrator::load_plugin_textdomain()
S
69 1 7
SiteGround_Migrator::get_version()
S
82 1 3
WP_Async_Request::handle()
S
100 1 0
Shuttle_Dump_File::is_gzip()
S
79 1 3
Siteground_Migrator_Settings_Field::get_class_names()
S
80 1 3
Siteground_Migrator_Transfer_Service::transfer_continue()
S
75 1 4
Shuttle_Insert_Statement::reset()
S
77 1 4
Siteground_WP_Background_Process::complete()
S
82 1 3
Siteground_WP_Background_Process::unlock_process()
S
76 1 4
Siteground_WP_Background_Process::set_pid()
S
80 1 3
Shuttle_Dumper_Native::get_create_table_sql()
S
74 1 4
Shuttle_DBConn_Mysql::escape_like()
S
78 1 3
Shuttle_Dump_File_Gzip::write()
S
80 1 3
Shuttle_Dump_File::end()
S
100 1 0
Shuttle_DBConn_Mysqli::fetch_numeric()
S
80 1 3
Siteground_WP_Background_Process::delete()
S
77 1 4
Siteground_Migrator_Settings::display_settings_page()
S
80 1 3
Shuttle_Dump_File_Plaintext::write()
S
80 1 3
Shuttle_DBConn_Mysqli::get_var()
S
72 1 5
Shuttle_Insert_Statement::__construct()
S
82 1 3
Siteground_Migrator_Files_Service::encrypt_and_delete_original()
S
66 1 9
Shuttle_Insert_Statement::add_row()
S
72 1 5
Siteground_Migrator_Transfer_Service::get_transfer_status()
S
69 1 7
Shuttle_Dump_File_Gzip::end()
S
81 1 3
Siteground_Migrator_Database_Service::__construct()
S
81 1 3
Siteground_Migrator_Files_Service::__construct()
S
72 1 5
Siteground_Migrator_Settings_Field::add_pattern()
S
78 1 3
Siteground_Migrator_Transfer_Service::update_status()
S
65 1 9
Siteground_Migrator_Admin::__construct()
S
73 1 5
Shuttle_Insert_Statement::get_length()
S
83 1 3
Siteground_WP_Background_Process::dispatch()
S
77 1 4
Siteground_Migrator_Api_Service::is_plugin_installed()
S
80 1 3
Shuttle_Dumper::dump()
S
100 1 0
SiteGround_Migrator::__construct()
S
73 1 5
Siteground_Migrator_Settings::__construct()
S
72 1 5
Shuttle_DBConn_Mysqli::escape_like()
S
78 1 3
WP_Async_Request::dispatch()
S
72 1 5
Siteground_Migrator_Settings_Field::get_value()
S
80 1 3
Siteground_Migrator_Transfer_Service::get_instance()
S
80 1 3
Siteground_Migrator_Settings::get_page_title()
S
79 1 3
Shuttle_DBConn_Mysqli::fetch_row()
S
81 1 3
Shuttle_Dumper::__construct()
S
82 1 3
Shuttle_Dump_File_Plaintext::end()
S
81 1 3
Siteground_WP_Background_Process::push_to_queue()
S
76 1 4
Siteground_WP_Background_Process::task()
S
100 1 0
Siteground_Migrator_Settings_Field::get_title()
S
82 1 3
Shuttle_Dump_File::write()
S
100 1 0
Shuttle_DBConn_Mysql::fetch_row()
S
81 1 3
Siteground_Migrator_Admin::admin_print_styles()
S
82 1 3
Shuttle_Dump_File_Plaintext::open()
S
80 1 3
Shuttle_Dump_File_Gzip::open()
S
80 1 3
WP_Async_Request::__construct()
S
71 1 5
Siteground_Migrator_Activator::activate()
S
75 1 5
Siteground_Migrator_Background_Process::complete()
S
81 1 3
Siteground_WP_Background_Process::generate_key()
S
71 1 5
SiteGround_Migrator::get_plugin_name()
S
82 1 3
Siteground_WP_Background_Process::delete_all_in_queue()
S
75 1 4
Siteground_Migrator_Settings_Field_Text::render()
S
80 1 3
Shuttle_DBConn_Mysql::get_var()
S
73 1 5
Siteground_Migrator_Settings_Field::get_id()
S
82 1 3
run_siteground_migrator()
S
81 1 3
SiteGround_Migrator_Email_Service::send_email()
S
67 1 10
Siteground_Migrator_Api_Service::__construct()
S
79 1 3