WPCOM_JSON_API_Endpoint D

Total Complexity 405
Dependencies 18
Dependents 1
Total lines 2,609
Lines of code 1,606
Logical lines of code 877
Comment lines 687
Methods 39
Properties 34

Methods 39

Method Rating Maintainability Complexity Lines of code
cast_and_filter_item()
D
9
81 355
get_media_item_v1_1()
D
22
50 161
handle_media_creation_v1_1()
D
31 32 109
get_author()
C
30 27 112
user_can_view_post()
B
40 17 62
generate_documentation()
B
37 15 78
input()
A
43 16 45
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 86
media_item_is_free_video_mobile_upload_and_too_long()
A
46 9 41
copy_hooks()
A
50 9 30
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