| Class | Coverage | Complexity | CRAP |
|---|---|---|---|
| Automattic\Jetpack\Protect_Status\Status | 31.4% | 31 | 341 |
| Automattic\Jetpack\Protect_Status\Plan | 0.0% | 10 | 110 |
| Automattic\Jetpack\Protect_Status\REST_Controller | 0.0% | 6 | 42 |
| Method | Coverage |
|---|---|
| is_cache_old | 0% |
| get_product_from_cache | 0% |
| get_product | 0% |
| has_required_plan | 0% |
| init | 0% |
| register_rest_endpoints | 0% |
| api_check_plan | 0% |
| api_get_status | 0% |
| api_clear_scan_cache | 0% |
| get_status | 0% |
| delete_option | 0% |
| has_threats | 0% |
| get_threats | 0% |
| sort_threats | 69% |
| normalize_core_data | 87% |
| get_status | 87% |
| get_status | 87% |
| Method | Coverage | Complexity | CRAP |
|---|---|---|---|
| get_status | 0.0% | 5 | 30 |
| get_threats | 0.0% | 5 | 30 |
| has_required_plan | 0.0% | 4 | 20 |
| get_product | 0.0% | 3 | 12 |
| normalize_core_data | 87.1% | 8 | 8 |
| sort_threats | 69.2% | 7 | 8 |
| is_cache_old | 0.0% | 2 | 6 |
| get_status | 87.5% | 6 | 6 |
| api_clear_scan_cache | 0.0% | 2 | 6 |
| get_status | 87.5% | 6 | 6 |
| delete_option | 0.0% | 2 | 6 |