WPAS_File_Upload D

Total Complexity 219
Dependencies 4
Dependents 2
Total lines 1,876
Lines of code 878
Logical lines of code 555
Comment lines 568
Methods 51
Properties 5

Methods 51

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