WPCOM_JSON_API D

Total Complexity 189
Dependencies 8
Dependents 8
Total lines 1,256
Lines of code 630
Logical lines of code 354
Comment lines 459
Methods 38
Properties 21

Methods 38

Method Rating Maintainability Complexity Lines of code
serve()
D
26
40 133
output()
B
38 19 73
filter_fields()
B
41 19 55
setup_inputs()
B
42 19 48
trap_wp_die()
A
49 11 29
wp_count_comments()
A
42 9 55
is_truthy()
S
57 7 18
is_falsy()
S
57 7 18
wp_die_handler()
S
51 6 26
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
get_avatar_url()
S
62 4 10
add()
S
62 2 13
init()
S
70 2 6
finish_request()
S
74 2 5
ensure_http_scheme_of_home_url()
S
71 2 6
is_following()
S
82 1 3
output_trapped_error()
S
65 1 10
__construct()
S
79 1 3
wp_die_handler_callback()
S
80 1 3
initialize()
S
75 1 4
is_authorized_with_upload_token()
S
82 1 3
process_request()
S
75 1 4
comment_like_count()
S
77 1 4
add_global_ID()
S
82 1 3
is_reblogged()
S
82 1 3
comment_edit_pre()
S
79 1 3
is_liked()
S
82 1 3
post_like_count()
S
82 1 3
is_restricted_blog()
S
74 1 4
set_output_status_code()
S
81 1 3
get_blog_id()
S
80 1 3
get_blog_id_for_output()
S
80 1 3
ends_with()
S
78 1 3
output_error()
S
74 1 4
json_encode()
S
80 1 3