LLMS_Media_Protector D

Total Complexity 128
Dependencies 5
Dependents 1
Total lines 1,113
Lines of code 448
Logical lines of code 268
Comment lines 400
Methods 30
Properties 2

Methods 30

Method Rating Maintainability Complexity Lines of code
serve_file()
B
35 18 83
is_authorized_to_view()
A
43 15 44
save_mod_rewrite_rules()
A
44 14 39
get_placeholder_id()
A
56 9 18
send_file()
A
55 9 16
authorize_media_image_src()
S
53 7 21
get_size()
S
58 7 15
add_unauthorized_placeholder_image_to_media_library()
S
47 3 38
prepare_attachment_for_js()
S
57 4 16
add_authorization_meta_after_attachment_added()
S
69 5 6
is_requested_file_modified()
S
59 4 13
register_callbacks()
S
57 3 16
authorize_media_url()
S
61 3 12
format_path()
S
64 3 10
change_media_upload_directory()
S
70 3 6
send_redirect()
S
66 3 8
send_headers()
S
62 2 11
add_authorization_meta_to_media_post()
S
70 2 6
read_file()
S
66 2 9
get_placeholder_image_id()
S
65 2 9
get_placeholder_url()
S
63 1 12
handle_upload()
S
65 1 8
get_media_path()
S
71 1 5
get_base_upload_path()
S
82 1 3
get_additional_upload_path()
S
82 1 3
set_additional_upload_path()
S
76 1 4
set_base_upload_path()
S
76 1 4
unprotect()
S
79 1 3
upload_dir()
S
69 1 6
__construct()
S
77 1 4