LLMS_Media_Protector D

Total Complexity 127
Dependencies 5
Dependents 3
Total lines 996
Lines of code 402
Logical lines of code 248
Comment lines 343
Methods 29
Properties 2

Methods 29

Method Rating Maintainability Complexity Lines of code
is_authorized_to_view()
B
40 20 53
serve_file()
B
36 18 77
save_mod_rewrite_rules()
A
44 14 41
send_file()
A
52 10 21
authorize_media_image_src()
S
54 7 20
get_size()
S
58 7 15
find_wp_root()
S
60 5 14
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
change_media_upload_directory()
S
70 3 6
format_path()
S
64 3 10
send_redirect()
S
66 3 8
send_headers()
S
62 2 11
read_file()
S
66 2 9
strip_query_params()
S
72 2 5
add_authorization_meta_to_media_post()
S
70 2 6
__construct()
S
77 1 4
get_additional_upload_path()
S
82 1 3
get_base_upload_path()
S
82 1 3
get_media_path()
S
71 1 5
handle_upload()
S
65 1 8
is_media_protected()
S
78 1 3
set_additional_upload_path()
S
76 1 4
set_base_upload_path()
S
76 1 4
get_upload_basedir()
S
79 1 3
upload_dir()
S
69 1 6