Code Analysis: Catch Themes Demo Import 2.1

Function Rating Maintainability Complexity Lines of code
CatchThemesThemePlugin::handle_load_themes_request()
D
24
29 184
CTDI\WidgetImporter::import_data()
C
31 25 111
CTDI\CatchThemesDemoImport::import_demo_data_ajax_callback()
B
37 19 71
CTDI\Helpers::download_import_files()
B
38 19 66
CatchThemesThemePlugin::wp_ajax_custom_query_themes()
B
34 17 90
CTDI\CustomizerImporter::import_customizer_options()
B
39 15 61
CTDI\Helpers::process_uploaded_files()
A
38 11 82
CTDI\WPCLICommands::list_predefined()
A
55 11 17
ctdi_plugin_active_check()
A
48 9 35
CTDI\WPCLICommands::import_predefined()
A
47 8 36
ctdi_import_navigation()
A
54 8 19
CTDI\CatchThemesDemoImport::use_existing_importer_data()
S
60 7 12
CTDI\Helpers::import_file_info()
S
51 6 26
CTDI\WPCLICommands::import()
S
57 6 17
CatchThemesDemoImportPlugin::__construct()
S
55 6 17
CTDI\WXRImporter::set_importer_data()
S
64 7 8
ctdi_activate_plugin()
S
44 4 45
CTDI\Helpers::get_all_demo_import_categories()
S
59 6 14
CTDI\CustomizerImporter::customizer_sideload_image()
S
50 5 29
CTDI\CatchThemesDemoImport::admin_enqueue_scripts()
S
45 4 39
CTDI\Helpers::check_wp_filesystem_credentials()
S
47 4 37
CTDI\ReduxImporter::import()
S
48 4 36
ctp_switch()
S
55 5 19
CTDI\CustomizerImporter::import_customizer_images()
S
58 5 15
CTDI\WXRImporter::woocommerce_product_attributes_registration()
S
49 4 30
CTDI\Downloader::get_content_from_url()
S
50 4 29
CTDI\CatchThemesDemoImport::append_to_frontend_error_messages()
S
61 5 12
CTDI\WPCLICommands::import_content()
S
53 4 23
CTDI\Helpers::append_to_file()
S
53 4 23
CTDI\WPCLICommands::import_widgets()
S
56 4 19
CTDI\WPCLICommands::import_customizer()
S
56 4 19
CTDI\WidgetImporter::import()
S
52 3 27
CTDI\WidgetImporter::format_results_for_log()
S
60 4 12
CTDI\WidgetImporter::available_widgets()
S
61 4 12
CTDI\Helpers::get_demo_import_item_categories()
S
61 4 12
CTDI\Helpers::validate_import_file_info()
S
63 4 11
CTDI\Importer::new_ajax_request_maybe()
S
53 3 23
CTDI\Helpers::data_from_file()
S
56 3 19
CTDI\Helpers::write_to_file()
S
57 3 18
CTDI\ImportActions::fix_custom_menu_widget_ids()
S
63 4 10
CTDI\Importer::import_content()
S
58 3 15
CTDI\WPCLICommands::any_import_options_set()
S
61 3 14
CTDI\WidgetImporter::process_import_file()
S
61 3 13
CTDI\CatchThemesDemoImport::final_response()
S
52 2 27
CTDI\CustomizerImporter::import()
S
55 2 21
CTDI\CustomizerImporter::customizer_is_image_url()
S
67 3 8
CTDI\CatchThemesDemoImport::import_customizer_data_ajax_callback()
S
64 3 10
CatchThemesDemoImportPlugin::set_plugin_constants()
S
66 3 9
CTDI\CatchThemesDemoImport::frontend_error_messages_display()
S
64 3 10
CTDI\ImportActions::do_import_action()
S
60 2 14
CatchThemesDemoImportPlugin::ctdi_redirect_to_plugin_setting()
S
61 2 14
CatchThemesThemePlugin::__construct()
S
59 2 14
CTDI\Downloader::get_error_from_response()
S
62 2 12
CTDI\Helpers::verify_ajax_call()
S
62 2 12
CTDI\ImportActions::register_hooks()
S
61 2 11
CTDI\Logger::log()
S
63 2 11
CTDI\CatchThemesDemoImport::create_plugin_page()
S
55 1 21
CTDI\CatchThemesDemoImport::setup_plugin_with_filter_data()
S
56 1 20
CatchThemesThemePlugin::catchplugins()
S
56 1 19
CatchThemesThemePlugin::our_themes_script()
S
71 2 5
CTDI\Helpers::is_import_file_info_format_correct()
S
71 2 6
CTDI\Logger::error_output()
S
65 2 10
CTDI\Importer::__construct()
S
65 2 9
CTDI\CatchThemesDemoImport::after_all_import_data_ajax_callback()
S
69 2 7
CTDI\CatchThemesDemoImport::get_instance()
S
72 2 6
CTDI\WXRImporter::__construct()
S
65 2 8
CTDI\Importer::include_required_files()
S
73 2 5
CatchThemesDemoImportPlugin::set_plugin_version_constant()
S
71 2 6
CTDI\Downloader::set_download_directory_path()
S
65 2 9
CTDI\ImportActions::redux_import()
S
73 2 5
CTDI\WPCLICommands::do_action()
S
64 2 9
CTDI\CatchThemesDemoImport::action_links()
S
65 2 8
CTDI\ImportActions::customizer_import()
S
73 2 5
CTDI\WidgetImporter::import_widgets()
S
69 2 7
ctp_default_options()
S
67 2 8
CatchThemesThemePlugin::customize_register()
S
60 1 15
CTDI\ImportActions::widgets_import()
S
73 2 5
CTDI\Downloader::download_file()
S
68 2 7
CatchThemesThemePlugin::plugins_table()
S
64 1 12
CTDI\Helpers::register_file_as_media_attachment()
S
60 1 12
CTDI\Helpers::get_log_url()
S
71 1 5
CTDI\Downloader::__construct()
S
81 1 3
CatchThemesDemoImportPlugin::old_php_admin_error_notice()
S
73 1 4
CTDI\CatchThemesDemoImport::__construct()
S
63 1 10
CTDI\ImportActions::before_content_import_action()
S
79 1 3
CTDI\Importer::set_importer_data()
S
81 1 3
CTDI\CatchThemesDemoImport::load_textdomain()
S
77 1 3
CTDI\CustomizerOption::import()
S
81 1 3
CatchThemesThemePlugin::add_our_plugins_tab()
S
75 1 4
CTDI\CatchThemesDemoImport::display_plugin_page()
S
80 1 3
CTDI\WPCLICommands::__construct()
S
71 1 6
CTDI\ImportActions::before_widget_import_action()
S
79 1 3
CTDI\ImportActions::after_import_action()
S
79 1 3
CTDI\Helpers::get_log_path()
S
67 1 7
CTDI\CatchThemesDemoImport::__clone()
S
98 1 1
CTDI\CatchThemesDemoImport::get_current_importer_data()
S
66 1 9
CTDI\CatchThemesDemoImport::get_log_file_path()
S
82 1 3
CTDI\Helpers::set_ctdi_import_data_transient()
S
78 1 3
Quiet_Skin::feedback()
S
91 1 2
ctp_get_options()
S
73 1 5
CTDI\Importer::get_importer_data()
S
81 1 3
CTDI\WXRImporter::get_importer_data()
S
64 1 10
CTDI\Importer::import()
S
81 1 3
CTDI\Importer::set_current_importer_data()
S
75 1 4
ctp_register_settings()
S
72 1 7
ctdi_flush_transient()
S
78 1 4
CTDI\Downloader::get_download_directory_path()
S
82 1 3
CTDI\Helpers::set_demo_import_start_time()
S
78 1 3
CTDI\Importer::set_logger()
S
81 1 3
CTDI\Helpers::log_error_and_send_ajax_response()
S
68 1 8
CTDI\CatchThemesDemoImport::__wakeup()
S
98 1 1