| Class | Coverage | Complexity | CRAP |
|---|---|---|---|
| Automattic\Jetpack\Protect\Sections\Scan | 21.2% | 69 | 2396 |
| Automattic\Jetpack\Protect\Dashboard_Threats | 80.6% | 74 | 114 |
| Automattic\Jetpack\Protect\Dashboard | 72.5% | 41 | 75 |
| Automattic\Jetpack\Protect\Sections\History | 14.3% | 5 | 20 |
| Method | Coverage |
|---|---|
| can_manage | 0% |
| has_scan_plan | 0% |
| get_module_state | 0% |
| maybe_load_wp_build | 0% |
| enqueue_i18n_loader | 0% |
| get_key | 0% |
| get_state | 0% |
| register_routes | 0% |
| get_key | 0% |
| register_routes | 0% |
| get_key | 0% |
| get_key | 0% |
| get_state | 0% |
| register_routes | 0% |
| ignore_threat | 0% |
| unignore_threat | 0% |
| set_ignored | 0% |
| fix_threat | 0% |
| get_fix_status | 0% |
| alerts_request | 0% |
| get_scan | 0% |
| start_scan | 0% |
| get_scan_report | 0% |
| get_history_threats | 15% |
| get_actions | 36% |
| can_act_on_threats | 40% |
| load_wp_build | 54% |
| get_state | 57% |
| render | 66% |
| get_history | 66% |
| release_request_lock | 66% |
| alias_screen_id | 80% |
| restore_screen_id | 80% |
| claim_request_lock | 83% |
| Method | Coverage | Complexity | CRAP |
|---|---|---|---|
| get_actions | 36.1% | 17 | 92 |
| get_scan_report | 0.0% | 9 | 90 |
| alerts_request | 0.0% | 6 | 42 |
| start_scan | 0.0% | 6 | 42 |
| get_history_threats | 15.0% | 7 | 37 |
| set_ignored | 0.0% | 4 | 20 |
| get_fix_status | 0.0% | 4 | 20 |
| get_state | 57.1% | 8 | 13 |
| fix_threat | 0.0% | 3 | 12 |
| load_wp_build | 54.2% | 5 | 7 |
| maybe_load_wp_build | 0.0% | 2 | 6 |
| enqueue_i18n_loader | 0.0% | 2 | 6 |
| get_state | 0.0% | 2 | 6 |
| can_act_on_threats | 40.0% | 3 | 4 |
| restore_screen_id | 80.0% | 3 | 3 |
| claim_request_lock | 83.3% | 3 | 3 |
| alias_screen_id | 80.0% | 2 | 2 |
| render | 66.7% | 2 | 2 |
| get_history | 66.7% | 2 | 2 |
| release_request_lock | 66.7% | 2 | 2 |