Amazon_S3_And_CloudFront D

Total Complexity 943
Dependencies 36
Dependents 4
Total lines 5,875
Lines of code 3,303
Logical lines of code 2,017
Comment lines 1,611
Methods 179
Properties 20

Methods 179

Method Rating Maintainability Complexity Lines of code
output_diagnostic_info()
D
4
96 456
upload_attachment()
D
12
80 294
get_setting()
D
24
58 145
handle_post_request()
D
29
54 97
handle_save_settings()
C
37 32 66
maybe_disable_save_button()
B
41 18 60
get_attachment_provider_url()
B
41 18 50
handle_change_bucket()
B
40 17 58
wp_update_attachment_metadata()
B
47 18 34
get_dynamic_prefix()
A
48 15 30
handle_change_bucket_access()
A
39 12 71
remove_local_files()
A
50 13 26
maybe_cleanup_filesize_metadata()
A
54 11 21
is_attachment_served_by_provider()
A
55 11 19
check_write_permission()
A
48 10 32
get_provider_client()
A
53 10 22
get_setting_use_bucket_acls()
A
50 9 28
get_attachment_folder_year_month()
A
52 9 24
verify_ajax_request()
A
54 9 19
use_acl_for_intermediate_size()
A
56 9 17
filter_settings()
A
49 7 34
set_delivery_provider()
A
58 8 16
set_storage_provider()
A
58 8 16
handle_aws_access_key_migration()
S
50 7 26
save_bucket()
S
53 7 25
get_attachment_local_url()
S
54 7 19
get_setting_region()
S
56 7 18
get_db_init_status()
S
52 6 24
get_bucket_region()
S
52 6 23
get_image_sizes_details()
S
55 6 17
maybe_encode_wp_prepare_attachment_for_js()
S
57 6 16
check_for_items_table()
S
50 5 30
check_region()
S
59 6 15
remove_attachment_files_from_provider()
S
51 5 26
init()
S
38 2 71
filter_unique_filename()
S
55 5 21
get_all_blog_table_prefixes()
S
57 5 18
create_bucket()
S
58 5 15
get_year_month_directory_name()
S
57 5 15
more_info_link()
S
58 5 14
get_acl_for_intermediate_size()
S
60 5 13
our_screen()
S
62 5 12
is_plugin_setup()
S
62 5 12
switch_to_blog()
S
63 5 11
get_blog_ids()
S
53 4 23
media_counts()
S
53 4 23
get_formatted_provider_info()
S
53 4 22
does_file_exist_local()
S
54 4 22
delete_objects()
S
57 4 17
maybe_encode_get_image_tag()
S
58 4 16
plugin_load()
S
43 2 46
remove_region_on_constant_change()
S
63 5 10
clear_scheduled_event()
S
61 4 14
delete_attachment()
S
61 4 14
get_attached_file()
S
61 4 13
check_for_gd_imagick()
S
60 4 13
use_ssl()
S
62 4 12
get_setting_bucket()
S
61 4 12
memory_exceeded()
S
61 4 12
get_setting_provider()
S
62 4 11
get_memory_limit()
S
62 4 11
get_media_action_strings()
S
53 3 20
get_url_preview()
S
56 3 19
ajax_get_buckets()
S
57 3 17
maybe_display_deprecated_http_notice()
S
56 3 17
maybe_sign_intermediate_size()
S
63 4 10
imagick_enabled()
S
68 4 7
wp_get_attachment_image_attributes()
S
63 4 10
private_prefix_enabled()
S
64 4 10
does_file_exist()
S
65 4 9
maybe_fix_local_subsite_url()
S
65 4 8
get_access_denied_notice_message()
S
59 3 14
http_prepare_download_log()
S
58 3 14
plugin_deactivated_notice()
S
59 3 14
get_provider_classes()
S
62 3 13
ajax_get_attachment_provider_details()
S
60 3 13
wp_get_attachment_url()
S
62 3 12
get_buckets()
S
62 3 12
get_attachment_local_url_size()
S
62 3 11
render_addons()
S
63 3 11
update_attached_file()
S
63 3 11
maybe_encode_wp_get_attachment_image_src()
S
63 3 11
maybe_encode_image_get_intermediate_size()
S
63 3 11
get_setting_args()
S
55 2 19
get_settings_whitelist()
S
51 1 32
get_post_time()
S
64 3 10
settings_saved_notice()
S
69 3 6
get_provider_class()
S
68 3 7
get_provider_name()
S
67 3 7
get_provider_service_name()
S
67 3 7
attachment_just_uploaded()
S
70 3 6
load_attachment_assets()
S
66 3 8
get_folder_time_from_url()
S
64 3 10
get_file_prefix()
S
66 3 8
schedule_event()
S
64 3 10
get_acl_display_name()
S
71 3 5
is_current_blog()
S
68 3 7
pre_set_setting()
S
70 3 6
gd_enabled()
S
69 3 7
should_gzip_file()
S
68 3 7
maybe_update_delivery_path()
S
63 3 10
multisite_get_space_used()
S
61 2 13
does_file_exist_provider()
S
62 2 11
get_object_version_string()
S
62 2 11
get_mime_types_to_gzip()
S
56 1 18
on_off()
S
74 2 4
open_ssl_enabled()
S
70 2 7
get_utm_source()
S
79 2 3
get_plugin_details()
S
67 2 7
load_media_assets()
S
59 1 15
consolidate_upload_errors()
S
68 2 7
make_acl_admin_notice()
S
66 2 7
is_pro()
S
72 2 6
get_addons()
S
69 2 7
restore_current_blog()
S
75 2 5
__construct()
S
70 2 6
get_secure_attachment_url()
S
69 2 6
set_setting()
S
66 2 8
prepare_bucket_error()
S
68 2 8
return_upload_error()
S
69 2 7
get_attachment_url()
S
67 2 7
generate_unique_filename()
S
65 2 9
set_client()
S
71 2 6
render_bucket_permission_errors()
S
64 2 10
get_new_attachment_prefix()
S
68 2 7
get_default_object_prefix()
S
65 2 9
get_object_prefix()
S
71 2 6
get_local_url_preview()
S
66 2 8
remove_access_keys_if_constants_set()
S
75 2 5
get_url_scheme()
S
68 2 8
check_bucket()
S
75 2 4
get_available_addons()
S
60 1 14
attachment_provider_actions_meta_box()
S
61 1 12
admin_menu()
S
62 1 12
get_settings_tabs()
S
66 1 8
bucket_changed()
S
74 1 5
add_media_row_actions()
S
83 1 3
get_allowed_mime_types()
S
80 1 3
ajax_get_url_preview()
S
65 1 10
maybe_remove_query_string()
S
75 1 4
get_settings_nonce_key()
S
80 1 3
wp_media_shortcode()
S
75 1 4
get_plugin_prefix_slug()
S
79 1 3
get_plugin_prefix()
S
82 1 3
get_plugin_menu_title()
S
80 1 3
get_plugin_page_title()
S
80 1 3
get_addon_icon_url()
S
71 1 5
get_delivery_provider()
S
82 1 3
get_provider()
S
81 1 3
handle_aws_access_key_form_header()
S
64 1 9
get_storage_provider()
S
82 1 3
is_upgrading()
S
81 1 3
get_acl_value_string()
S
80 1 3
filter_input()
S
78 1 3
get_available_media_actions()
S
82 1 3
aws_admin_menu()
S
67 1 9
get_prefix_format_settings()
S
74 1 6
get_path_format_settings()
S
74 1 6
get_skip_sanitize_settings()
S
82 1 3
get_monitored_settings_blacklist()
S
74 1 6
register_delivery_provider_assets()
S
66 1 8
register_storage_provider_assets()
S
66 1 8
register_modal_assets()
S
66 1 8
remove_wp_plugin_dir()
S
72 1 5
get_default_region()
S
81 1 3
get_default_delivery_provider()
S
81 1 3
end_ajax()
S
82 1 3
verify_media_actions()
S
82 1 3
wp_unique_filename()
S
71 1 5
_throw_error()
S
79 1 3
get_mime_type()
S
75 1 4
remove_access_keys()
S
74 1 5
settings_more_info_link()
S
79 1 3
render_page()
S
67 1 8
_exit()
S
81 1 3
upgrade_virtual_host()
S
69 1 7
ajax_get_diagnostic_info()
S
68 1 8
attachment_provider_meta_box()
S
65 1 10
get_default_storage_provider()
S
81 1 3