WPCOM_JSON_API D

Total Complexity 205
Dependencies 9
Dependents 7
Total lines 1,343
Lines of code 679
Logical lines of code 385
Comment lines 485
Methods 41
Properties 21

Methods 41

Method Rating Maintainability Complexity Lines of code
serve()
D
26
40 133
filter_fields()
B
41 19 55
setup_inputs()
B
42 19 48
output()
B
40 18 57
wp_count_comments()
A
40 10 62
trap_wp_die()
A
49 11 29
is_truthy()
S
57 7 18
is_falsy()
S
57 7 18
maybe_switch_to_token_user_and_site()
S
57 7 18
wp_die_handler()
S
51 6 26
init_locale()
S
55 6 18
is_jetpack_authorized_for_site()
S
58 6 17
serializable_error()
S
55 5 21
switch_to_blog_and_validate_user()
S
62 5 12
output_early()
S
60 4 13
wrap_http_envelope()
S
55 3 21
get_avatar_url()
S
62 4 10
add()
S
62 2 13
finish_request()
S
74 2 5
init()
S
70 2 6
ensure_http_scheme_of_home_url()
S
71 2 6
comment_edit_pre()
S
79 1 3
comment_like_count()
S
77 1 4
__construct()
S
79 1 3
output_trapped_error()
S
65 1 10
initialize()
S
75 1 4
wp_die_handler_callback()
S
80 1 3
is_authorized_with_upload_token()
S
82 1 3
process_request()
S
72 1 5
set_output_status_code()
S
81 1 3
is_following()
S
82 1 3
add_global_ID()
S
82 1 3
ends_with()
S
78 1 3
is_reblogged()
S
82 1 3
is_liked()
S
82 1 3
post_like_count()
S
82 1 3
is_restricted_blog()
S
74 1 4
output_error()
S
74 1 4
get_blog_id()
S
80 1 3
get_blog_id_for_output()
S
80 1 3
json_encode()
S
80 1 3