WPAS_File_Upload D

Total Complexity 274
Dependencies 4
Dependents 2
Total lines 2,249
Lines of code 1,115
Logical lines of code 653
Comment lines 660
Methods 55
Properties 5

Methods 55

Method Rating Maintainability Complexity Lines of code
limit_upload()
B
41 22 46
ajax_delete_attachment()
B
41 17 48
individualize_files()
A
47 13 32
show_attachments_with_image()
A
42 12 47
process_attachments()
A
40 11 56
view_attachment()
A
44 10 43
ajax_upload_attachment()
A
48 10 29
process_ajax_upload()
A
40 8 58
delete_attachments()
A
47 9 35
__construct()
A
39 7 62
process_upload()
A
49 9 29
set_upload_dir()
A
50 9 27
show_attachments()
A
44 8 41
ajax_delete_temp_attachment()
A
51 8 22
filter_attachments_out()
S
51 7 25
wpas_open_ticket_after()
S
55 7 19
get_allowed_html()
S
37 1 98
protect_upload_dir()
S
53 6 22
wpas_maybe_delete_attachments_after_close_ticket()
S
52 5 23
remove_directory()
S
55 5 20
can_attach_files()
S
59 5 14
new_reply_attachment()
S
62 5 11
new_reply_backend_attachment()
S
62 5 11
get_attachments()
S
52 4 25
custom_readfile()
S
60 4 14
add_auto_delete_button_fe_submission()
S
61 4 13
custom_mime_types()
S
60 4 13
load_ajax_uploader_assets()
S
50 3 27
mark_tickets_auto_delete_attachments()
S
57 3 16
auto_delete_attachment_flag()
S
67 4 7
ticket_after_saved()
S
65 4 9
upload_field()
S
50 2 27
attachments_dir_cleanup()
S
63 3 10
attachment_query_var()
S
71 3 5
admin_add_auto_delete_button()
S
63 3 10
add_auto_delete_button_fe_ticket()
S
66 3 8
ajax_delete_temp_directory()
S
65 3 8
has_attachments()
S
68 2 8
add_form_enctype()
S
72 2 6
attachments_dir_cleanup_schedule()
S
73 2 5
new_ticket_ajax_attachments()
S
66 2 8
redirect_error()
S
65 2 8
create_upload_dir()
S
69 2 7
new_ticket_attachment()
S
70 2 6
get_instance()
S
72 2 6
add_wrapper_class_admin()
S
70 2 6
update_auto_delete_flag()
S
72 2 5
auto_delete_field()
S
66 1 11
upload_field_tab_content()
S
74 1 5
new_reply_ajax_attachments()
S
79 1 3
human_filesize()
S
69 1 5
upload_field_add_tab()
S
75 1 4
get_allowed_filetypes()
S
79 1 3
attachment_endpoint()
S
80 1 3
wpas_sanitize_file_name()
S
70 1 6