LLMS_Media_Protector C

Total Complexity 120
Dependencies 5
Dependents 1
Total lines 979
Lines of code 386
Logical lines of code 240
Comment lines 344
Methods 28
Properties 2

Methods 28

Method Rating Maintainability Complexity Lines of code
serve_file()
B
37 16 73
is_authorized_to_view()
A
43 16 44
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
format_path()
S
64 3 10
send_redirect()
S
66 3 8
change_media_upload_directory()
S
70 3 6
send_headers()
S
62 2 11
strip_query_params()
S
72 2 5
add_authorization_meta_to_media_post()
S
70 2 6
read_file()
S
66 2 9
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