WPAS_File_Upload D

Total Complexity 232
Dependencies 4
Dependents 2
Total lines 1,993
Lines of code 936
Logical lines of code 588
Comment lines 611
Methods 52
Properties 5

Methods 52

Method Rating Maintainability Complexity Lines of code
limit_upload()
B
43 17 40
show_attachments_with_image()
A
42 12 47
process_attachments()
A
41 11 55
view_attachment()
A
44 9 43
process_ajax_upload()
A
40 8 57
__construct()
A
39 7 62
ajax_delete_attachment()
A
48 9 30
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
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
ajax_upload_attachment()
S
53 5 21
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
add_auto_delete_button_fe_submission()
S
61 4 13
custom_mime_types()
S
60 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
ticket_after_saved()
S
65 4 9
auto_delete_attachment_flag()
S
67 4 7
ajax_delete_temp_attachment()
S
59 3 14
upload_field()
S
50 2 26
admin_add_auto_delete_button()
S
63 3 10
attachments_dir_cleanup()
S
63 3 10
add_auto_delete_button_fe_ticket()
S
66 3 8
attachment_query_var()
S
71 3 5
has_attachments()
S
68 2 8
add_wrapper_class_admin()
S
70 2 6
create_upload_dir()
S
69 2 7
new_ticket_attachment()
S
70 2 6
attachments_dir_cleanup_schedule()
S
73 2 5
add_form_enctype()
S
72 2 6
update_auto_delete_flag()
S
72 2 5
redirect_error()
S
66 2 7
get_instance()
S
72 2 6
ajax_delete_temp_directory()
S
66 2 8
new_ticket_ajax_attachments()
S
66 2 8
auto_delete_field()
S
66 1 11
upload_field_tab_content()
S
74 1 5
human_filesize()
S
69 1 5
new_reply_ajax_attachments()
S
79 1 3
attachment_endpoint()
S
80 1 3
upload_field_add_tab()
S
75 1 4
get_allowed_filetypes()
S
79 1 3