CMB2_REST B

Total Complexity 95
Dependencies 7
Dependents 2
Total lines 776
Lines of code 289
Logical lines of code 162
Comment lines 372
Methods 33
Properties 7

Methods 33

Method Rating Maintainability Complexity Lines of code
register_cmb2_fields()
A
46 10 39
get_object_id()
A
55 10 20
update_rest_values()
S
54 7 22
declare_read_edit_fields()
S
59 6 14
get_rest_values()
S
55 5 20
__get()
S
63 5 11
sanitize_field_value()
S
58 4 15
field_can()
S
69 4 6
maybe_init_and_hookup()
S
68 3 7
get_post_rest_values()
S
72 2 5
sanitize_box_values()
S
65 2 9
is_readable()
S
68 2 7
remove()
S
72 2 5
get_rest_box()
S
77 2 3
universal_hooks()
S
64 2 9
is_protected_meta()
S
72 2 6
get_user_rest_values()
S
72 2 5
sanitize_group_value()
S
67 2 8
can_read()
S
71 2 6
update_term_rest_values()
S
71 2 5
update_user_rest_values()
S
71 2 5
update_post_rest_values()
S
71 2 5
can_edit()
S
71 2 6
get_term_rest_values()
S
72 2 5
get_comment_rest_values()
S
72 2 5
update_comment_rest_values()
S
71 2 5
register_rest_field()
S
67 1 7
__construct()
S
68 1 7
init_routes()
S
69 1 7
field_can_read()
S
79 1 3
field_can_edit()
S
79 1 3
get_all()
S
80 1 3
is_editable()
S
71 1 6