WPAS_File_Upload D

Total Complexity 300
Dependencies 4
Dependents 2
Total lines 2,259
Lines of code 1,089
Logical lines of code 705
Comment lines 675
Methods 56
Properties 5

Methods 56

Method Rating Maintainability Complexity Lines of code
limit_upload()
B
41 22 46
sgpb_rename_uploaded_file()
B
45 20 35
ajax_delete_attachment()
B
41 17 48
show_attachments_with_image()
A
42 12 48
protect_upload_dir()
A
43 12 48
individualize_files()
A
47 13 32
process_attachments()
A
40 11 56
view_attachment()
A
44 10 43
process_ajax_upload()
A
39 8 61
ajax_upload_attachment()
A
48 10 29
delete_attachments()
A
47 9 35
__construct()
A
39 7 63
process_upload()
A
49 9 29
set_upload_dir()
A
50 9 28
show_attachments()
A
44 8 42
ajax_delete_temp_attachment()
A
51 8 22
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 23
remove_directory()
S
55 5 20
can_attach_files()
S
59 5 14
new_reply_backend_attachment()
S
62 5 11
new_reply_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
62 3 11
admin_add_auto_delete_button()
S
63 3 10
attachment_query_var()
S
71 3 5
add_auto_delete_button_fe_ticket()
S
66 3 8
ajax_delete_temp_directory()
S
65 3 8
update_auto_delete_flag()
S
72 2 5
get_instance()
S
72 2 6
new_ticket_ajax_attachments()
S
66 2 8
attachments_dir_cleanup_schedule()
S
73 2 5
new_ticket_attachment()
S
70 2 6
create_upload_dir()
S
69 2 7
add_wrapper_class_admin()
S
70 2 6
add_form_enctype()
S
72 2 6
has_attachments()
S
68 2 8
redirect_error()
S
65 2 8
auto_delete_field()
S
66 1 11
attachment_endpoint()
S
80 1 3
get_allowed_html()
S
79 1 3
human_filesize()
S
69 1 5
new_reply_ajax_attachments()
S
79 1 3
upload_field_tab_content()
S
74 1 5
upload_field_add_tab()
S
75 1 4
get_allowed_filetypes()
S
79 1 3
wpas_sanitize_file_name()
S
70 1 6