WPAS_File_Upload D

Total Complexity 250
Dependencies 4
Dependents 2
Total lines 2,058
Lines of code 971
Logical lines of code 614
Comment lines 631
Methods 53
Properties 5

Methods 53

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