WPCOM_JSON_API_Endpoint D

Total Complexity 399
Dependencies 18
Dependents 1
Total lines 2,577
Lines of code 1,589
Logical lines of code 867
Comment lines 676
Methods 39
Properties 34

Methods 39

Method Rating Maintainability Complexity Lines of code
cast_and_filter_item()
D
10
80 352
get_media_item_v1_1()
D
23
46 155
handle_media_creation_v1_1()
D
31 32 109
get_author()
C
31 25 106
input()
B
42 19 49
user_can_view_post()
B
40 17 62
generate_documentation()
B
37 14 76
cast_and_filter()
A
44 16 44
load_theme_functions()
A
45 16 39
document()
A
35 11 108
handle_media_sideload()
A
48 12 32
allow_video_uploads()
A
48 12 31
__construct()
A
36 7 85
copy_hooks()
A
50 9 30
media_item_is_free_video_mobile_upload_and_too_long()
A
47 8 38
format_taxonomy()
A
47 7 35
get_reflection()
A
56 8 17
get_media_item()
S
48 7 29
is_post_type_allowed()
S
56 7 21
parse_types()
S
52 5 25
parse_date()
S
52 5 24
current_user_can_access_post_type()
S
60 5 14
generate_doc_description()
S
59 3 17
get_amp_cache_origins()
S
59 3 14
get_taxonomy()
S
67 3 7
allows_unauthorized_requests()
S
76 3 3
is_current_site_multi_user()
S
60 2 14
get_secure_body()
S
61 2 12
accepts_site_based_authentication()
S
77 2 4
allows_cross_origin_requests()
S
79 2 3
query_args()
S
68 2 7
is_publicly_documentable()
S
79 2 3
format_date()
S
79 1 3
is_file_supported_for_sideloading()
S
80 1 3
add_http_build_query_to_php_content_example()
S
66 1 7
get_platform()
S
80 1 3
force_wpcom_request()
S
82 1 3
_get_whitelisted_post_types()
S
72 1 5
callback()
S
100 1 0