-
Home
-
Disable REST API
-
1.8 (latest)
-
Code
-
Classes
- Disable_REST_API
Total Complexity |
41 |
Dependencies |
2 |
Dependents |
0 |
Total lines |
358 |
Lines of code |
150 |
Logical lines of code |
83 |
Comment lines |
115 |
Methods |
14 |
Properties |
1 |
Methods 14
Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
maybe_process_settings_form() |
A |
48 |
11 |
29 |
is_route_allowed() |
A |
52 |
8 |
24 |
get_current_route() |
S |
66 |
4 |
8 |
create_settings_option() |
S |
56 |
2 |
18 |
you_shall_not_pass() |
S |
65 |
3 |
10 |
admin_enqueues() |
S |
66 |
2 |
7 |
get_wp_error() |
S |
64 |
2 |
9 |
option_check() |
S |
72 |
2 |
6 |
get_current_user_roles() |
S |
66 |
2 |
9 |
define_admin_link() |
S |
62 |
1 |
11 |
__construct() |
S |
69 |
1 |
6 |
settings_link() |
S |
69 |
1 |
6 |
settings_page() |
S |
76 |
1 |
4 |
allow_rest_api() |
S |
79 |
1 |
3 |