Metronet_Profile_Picture C

Total Complexity 122
Dependencies 5
Dependents 3
Total lines 1,299
Lines of code 867
Logical lines of code 384
Comment lines 341
Methods 34
Properties 3

Methods 34

Method Rating Maintainability Complexity Lines of code
avatar_override()
A
40 13 60
ajax_add_thumbnail()
A
43 10 46
pre_avatar_override()
A
48 9 35
insert_upload_form()
A
40 6 65
ajax_get_thumbnail()
A
43 6 49
rest_api_put_profile()
A
48 7 31
rest_api_get_users()
S
42 5 52
ajax_remove_thumbnail()
S
49 6 29
print_media_scripts()
S
41 1 77
admin_page()
S
46 3 45
__construct()
S
47 3 34
rest_api_register()
S
44 1 60
init()
S
49 3 30
rest_api_change_profile_image()
S
51 3 24
rest_api_get_profile_for_user()
S
53 3 21
plugin_settings_link()
S
56 3 20
rest_api_get_posts_for_user()
S
54 3 20
rest_api_get_profile()
S
56 3 17
get_post_thumbnail_editor_link()
S
58 3 15
get_user_id()
S
66 4 8
save_user_profile()
S
60 3 13
get_options()
S
63 3 11
get_post_id()
S
54 2 23
register_settings_menu()
S
56 2 21
get_plugin_url()
S
67 3 7
profile_print_media_scripts()
S
73 3 5
get_plugin_dir()
S
67 3 7
update_options()
S
63 2 11
add_block_category()
S
63 1 12
print_media_styles()
S
91 1 2
get_defaults()
S
67 1 8
rest_api_validate()
S
80 1 3
rest_api_sanitize()
S
80 1 3
rest_get_users_permissions_callback()
S
80 1 3