WP_REST_Server C

Total Complexity 121
Dependencies 3
Dependents 15
Total lines 1,186
Lines of code 491
Logical lines of code 297
Comment lines 530
Methods 24
Properties 3

Methods 24

Method Rating Maintainability Complexity Lines of code
serve_request()
B
34 19 84
dispatch()
B
38 19 68
get_data_for_route()
A
42 14 54
embed_links()
A
43 13 47
get_routes()
A
46 9 39
error_to_response()
S
54 6 21
register_route()
S
52 4 26
get_response_links()
S
58 4 16
response_to_data()
S
59 4 15
get_json_last_error()
S
63 5 10
get_headers()
S
60 4 12
get_data_for_routes()
S
62 3 11
get_namespace_index()
S
57 2 15
json_error()
S
69 2 7
get_route_options()
S
71 2 6
send_headers()
S
73 2 5
get_raw_data()
S
69 2 7
__construct()
S
62 1 13
get_index()
S
59 1 13
check_authentication()
S
79 1 3
envelope_response()
S
65 1 9
get_namespaces()
S
80 1 3
set_status()
S
81 1 3
send_header()
S
74 1 4