Code Analysis: External files in Media Library 1.3.0

Function Rating Maintainability Complexity Lines of code
threadi\eml\Controller\External_Files::add_file()
B
37 20 71
eml_admin_menu_init()
B
28
7 190
threadi\eml\Controller\Install::activation()
A
44 13 46
eml_admin_eml_switch_hosting()
A
37 11 76
eml_admin_media_box()
A
38 10 80
eml_admin_add_urls_via_ajax()
A
41 11 54
eml_admin_multiselect_field()
A
47 11 36
threadi\eml\Controller\Proxy::run()
A
48 10 33
eml_admin_settings()
A
46 9 43
eml_admin_add_media_do_filter_for_external_files()
A
49 9 32
eml_admin_add_media_filter_for_external_files()
A
48 9 31
eml_admin_select_field()
A
51 9 25
threadi\eml\Controller\External_Files::check_availability()
A
47 8 34
threadi\eml\Transient::display()
A
48 8 34
threadi\eml\Controller\External_Files::get_filename_from_disposition()
A
51 8 27
eml_admin_checkbox_field()
S
51 7 27
eml_admin_add_multi_form()
S
43 5 53
threadi\eml\Controller\Init::change_media_row_actions()
S
53 7 21
threadi\eml\Helper::delete_directory_recursively()
S
55 7 18
eml_admin_number_field()
S
51 6 30
threadi\eml\Model\External_File::get_url()
S
59 7 12
eml_autoloader()
S
50 6 27
threadi\eml\Controller\Uninstall::run()
S
48 5 36
threadi\eml\Controller\Init::get_attachment_url()
S
57 6 16
threadi\eml\Controller\Init::downloadlist_rel_attribute()
S
59 6 16
threadi\eml\Controller\Init::prevent_external_attachment_in_export()
S
60 6 14
eml_admin_check_file_availability()
S
51 5 28
threadi\eml\Controller\External_Files::get_file_by_url()
S
52 5 25
threadi\eml\Controller\External_Files::get_file_by_title()
S
52 5 25
threadi\eml\Controller\Init::image_downsize()
S
57 5 18
eml_admin_validate_allowed_mime_types()
S
56 5 18
threadi\eml\Controller\External_Files::get_imported_external_files()
S
50 4 31
threadi\eml\Controller\External_Files::check_url()
S
49 4 30
threadi\eml\Controller\Init::get_attachment_link()
S
60 5 13
threadi\eml\Controller\Init::wp_calculate_image_srcset()
S
62 5 12
eml_admin_dismiss()
S
60 5 11
threadi\eml\Controller\External_Files::get_external_file_infos()
S
51 4 26
threadi\eml\Controller\External_Files::get_files_in_media_library()
S
52 4 26
threadi\eml\View\Logs::column_default()
S
63 5 11
threadi\eml\Controller\Init::import_end()
S
53 4 24
eml_admin_add_single_form()
S
48 3 36
eml_admin_validate_interval_select()
S
58 4 17
eml_admin_head()
S
59 4 16
threadi\eml\Controller\Init::disable_attachment_page()
S
63 5 10
threadi\eml\Controller\Cli::import()
S
60 4 14
eml_dialog_embed()
S
52 3 27
eml_admin_add_media_box()
S
61 4 11
threadi\eml\Controller\Init::get_attached_file()
S
67 4 7
eml_add_media_column_content()
S
64 4 10
threadi\eml\Controller\Init::init()
S
49 2 30
threadi\eml\Transient::get_admin_transient_dismiss_cache()
S
64 4 9
threadi\eml\Controller\Init::change_edit_post_link()
S
63 4 10
threadi\eml\Controller\Cli::delete()
S
59 3 14
threadi\eml\Transients::get_transients()
S
62 3 12
threadi\eml\Transients::add_transient()
S
61 3 12
threadi\eml\Transients::delete_transient()
S
62 3 12
eml_admin_add_styles_and_js_admin()
S
46 1 42
threadi\eml\Helper::set_capabilities()
S
62 3 11
threadi\eml\Controller\External_Files::get_possible_mime_types()
S
50 1 33
threadi\eml\Controller\Init::wp_get_attachment_metadata()
S
68 3 7
threadi\eml\Model\Log::create()
S
59 2 15
threadi\eml\Controller\External_Files::create_cache_directory()
S
67 3 7
threadi\eml\Controller\External_Files::log_url_deletion()
S
66 3 7
threadi\eml\Controller\External_Files::delete_file_from_cache()
S
68 3 7
threadi\eml\Transient::is_transient_not_dismissed()
S
66 3 8
threadi\eml\Transients::check_transients()
S
70 3 7
threadi\eml\Model\External_File::get_availability()
S
65 3 9
threadi\eml\Model\External_File::is_cached()
S
64 3 9
eml_admin_settings_tab_general()
S
61 2 14
eml_admin_settings_tab_logs()
S
61 2 14
threadi\eml\Helper::get_first_administrator_user()
S
60 2 13
threadi\eml\Model\External_File::set_mime_type()
S
62 2 12
threadi\eml\Model\External_File::get_edit_url()
S
63 2 12
eml_admin_init()
S
61 2 12
threadi\eml\Helper::get_content_type_from_string()
S
68 2 7
threadi\eml\Controller\External_Files::get_file()
S
71 2 6
threadi\eml\Controller\Init::get_instance()
S
71 2 6
threadi\eml\Controller\Uninstall::get_instance()
S
72 2 6
threadi\eml\Transients::get_instance()
S
72 2 6
threadi\eml\Controller\External_Files::check_files()
S
71 2 6
threadi\eml\Controller\External_Files::get_instance()
S
71 2 6
threadi\eml\Model\External_File::get_filesize()
S
68 2 7
threadi\eml\Model\External_File::set_filesize()
S
66 2 8
threadi\eml\Controller\Init::set_import_marker_for_attachments()
S
65 2 9
threadi\eml\Controller\External_Files::get_allowed_mime_types()
S
69 2 7
threadi\eml\Model\External_File::get_file_extension()
S
68 2 7
threadi\eml\Model\External_File::delete_cache()
S
74 2 5
threadi\eml\Model\Log::get_logs()
S
67 2 7
threadi\eml\Model\Log::get_instance()
S
71 2 6
threadi\eml\Model\External_File::get_title()
S
67 2 8
threadi\eml\Controller\Install::get_instance()
S
72 2 6
threadi\eml\Controller\Proxy::get_instance()
S
72 2 6
eml_admin_notices()
S
72 2 6
eml_admin_set_capability()
S
70 2 7
threadi\eml\Model\Log::install()
S
62 1 13
eml_admin_get_external_urls_import_info()
S
61 1 13
threadi\eml\Transient::get_action()
S
82 1 3
threadi\eml\Controller\Init::__clone()
S
98 1 1
threadi\eml\Helper::get_config_url()
S
69 1 8
threadi\eml\Transient::has_action()
S
80 1 3
threadi\eml\Controller\Cli::check()
S
73 1 5
threadi\eml\Model\External_File::get_id()
S
82 1 3
threadi\eml\Controller\Proxy::init()
S
69 1 6
threadi\eml\Controller\External_Files::__construct()
S
80 1 3
threadi\eml\Model\External_File::is_locally_saved()
S
77 1 3
threadi\eml\Model\External_File::__construct()
S
81 1 3
threadi\eml\Transient::set_dismissible_days()
S
81 1 3
threadi\eml\Controller\External_Files::get_cache_directory()
S
73 1 5
threadi\eml\Model\External_File::set_availability()
S
75 1 4
eml_admin_validate_checkbox()
S
81 1 3
threadi\eml\Controller\Proxy::set_refresh()
S
70 1 6
threadi\eml\Controller\External_Files::delete_file()
S
80 1 3
threadi\eml\View\Logs::get_columns()
S
67 1 8
threadi\eml\View\Logs::table_data()
S
76 1 4
threadi\eml\Controller\Install::__construct()
S
91 1 2
threadi\eml\Controller\Init::__construct()
S
80 1 3
threadi\eml\Transient::get_type()
S
82 1 3
threadi\eml\Controller\Cli::clear_log()
S
72 1 5
threadi\eml\Transient::get_name()
S
82 1 3
threadi\eml\Model\External_File::set_is_local_saved()
S
75 1 4
threadi\eml\Transient::set_type()
S
81 1 3
threadi\eml\Transient::get_entry()
S
67 1 8
threadi\eml\Helper::get_log_url()
S
67 1 9
threadi\eml\Model\External_File::is_valid()
S
80 1 3
threadi\eml\Model\External_File::get_mime_type()
S
80 1 3
threadi\eml\Controller\External_Files::delete_cache_directory()
S
81 1 3
threadi\eml\Transient::set_name()
S
81 1 3
threadi\eml\Model\External_File::set_url()
S
75 1 4
threadi\eml\Transient::is_set()
S
79 1 3
threadi\eml\Helper::get_plugin_dir()
S
80 1 3
threadi\eml\Controller\Proxy::set_query_vars()
S
76 1 4
threadi\eml\Model\Log::truncate_log()
S
75 1 4
threadi\eml\Model\Log::get_level()
S
79 1 3
threadi\eml\Transient::set_message()
S
81 1 3
threadi\eml\Transient::save()
S
76 1 4
threadi\eml\Model\External_File::get_attachment_url()
S
78 1 3
threadi\eml\Model\External_File::set_id()
S
81 1 3
threadi\eml\Controller\External_Files::is_image_by_mime_type()
S
79 1 3
threadi\eml\Transient::__construct()
S
81 1 3
threadi\eml\Transients::get_transient_by_name()
S
80 1 3
threadi\eml\Transients::__clone()
S
98 1 1
threadi\eml\Controller\Proxy::return_binary()
S
63 1 10
threadi\eml\Controller\Proxy::__clone()
S
98 1 1
threadi\eml\View\Logs::get_sortable_columns()
S
79 1 3
threadi\eml\Model\External_File::add_cache()
S
68 1 7
threadi\eml\Model\Log::uninstall()
S
75 1 4
threadi\eml\Transient::get_dismissible_days()
S
82 1 3
threadi\eml\Transient::set_action()
S
81 1 3
threadi\eml\Controller\Uninstall::__construct()
S
98 1 1
threadi\eml\Helper::is_plugin_active()
S
77 1 3
threadi\eml\Helper::get_hook_url()
S
81 1 3
threadi\eml\Controller\Proxy::get_slug()
S
75 1 4
threadi\eml\Model\External_File::get_cache_file()
S
72 1 5
threadi\eml\Controller\Uninstall::__clone()
S
98 1 1
threadi\eml\Helper::get_format_date_time()
S
73 1 4
threadi\eml\Model\External_File::is_image()
S
80 1 3
threadi\eml\Model\External_File::set_title()
S
68 1 8
threadi\eml\Transients::add()
S
81 1 3
threadi\eml\Transients::__construct()
S
98 1 1
threadi\eml\Controller\External_Files::__clone()
S
98 1 1
threadi\eml\Controller\Proxy::do_refresh()
S
81 1 3
threadi\eml\Model\Log::__clone()
S
98 1 1
threadi\eml\Controller\Proxy::__construct()
S
98 1 1
eml_admin_file_title()
S
81 1 3
eml_add_media_columns()
S
75 1 4
eml_admin_validate_number()
S
81 1 3
threadi\eml\Transient::get_message()
S
82 1 3
threadi\eml\Transient::has_message()
S
80 1 3
threadi\eml\Model\Log::__construct()
S
73 1 5
threadi\eml\Model\External_File::get_cached_file_content()
S
70 1 6
threadi\eml\Controller\Proxy::wp_init()
S
77 1 3
threadi\eml\Transient::delete()
S
77 1 4
threadi\eml\View\Logs::get_hidden_columns()
S
82 1 3
threadi\eml\Controller\Install::__clone()
S
91 1 2
eml_admin_menu_menu()
S
67 1 9
threadi\eml\View\Logs::prepare_items()
S
68 1 7
threadi\eml\Controller\Install::deactivation()
S
81 1 3
threadi\eml\Model\Log::clean_log()
S
75 1 4
threadi\eml\Controller\Cli::reset_plugin()
S
63 1 10