Wpdrive_api_extension A

Total Complexity 59
Dependencies 4
Dependents 0
Total lines 389
Lines of code 224
Logical lines of code 127
Comment lines 79
Methods 17
Properties 3

Methods 17

Method Rating Maintainability Complexity Lines of code
replace_image_from_file_content()
A
46 9 39
get_file_size()
S
52 7 24
replace_image_from_upload()
S
58 7 15
remove_files_from_metadata()
S
54 6 20
get_attachment_path()
S
55 5 18
modify_media()
S
60 5 11
__construct()
S
56 3 17
modify_media_permissions_check()
S
63 3 12
register_routes()
S
58 2 16
log_rest_api_errors()
S
60 2 14
get_instance()
S
71 2 6
post_type_api_visibility()
S
70 2 6
plugin_ver_check()
S
65 2 8
get_initial_image_metadata()
S
74 1 4
register_rest_fields()
S
68 1 7
on_api_init()
S
78 1 4
wp_drive_load_textdomain()
S
78 1 3