| Class | Coverage | Complexity | CRAP |
|---|---|---|---|
| Automattic\Jetpack\Protect\Sections\Scan | 24.5% | 76 | 2560 |
| Automattic\Jetpack\Protect\Sections\Firewall | 53.6% | 53 | 333 |
| Automattic\Jetpack\Protect\Dashboard_Threats | 80.6% | 74 | 114 |
| Automattic\Jetpack\Protect\Dashboard | 76.5% | 46 | 73 |
| Automattic\Jetpack\Protect\Threat_Count | 81.2% | 18 | 20 |
| Automattic\Jetpack\Protect\Sections\History | 14.3% | 5 | 20 |
| Method | Coverage |
|---|---|
| has_scan_plan | 0% |
| get_module_state | 0% |
| maybe_load_wp_build | 0% |
| enqueue_i18n_loader | 0% |
| init | 0% |
| register_rest_route | 0% |
| get_key | 0% |
| get_state | 0% |
| register_routes | 0% |
| start_test | 0% |
| get_ip_rules | 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% |
| read_request_log | 81% |
| claim_request_lock | 83% |
| get_recent_blocks | 85% |
| Method | Coverage | Complexity | CRAP |
|---|---|---|---|
| get_actions | 36.1% | 17 | 92 |
| get_scan_report | 0.0% | 9 | 90 |
| alerts_request | 0.0% | 6 | 42 |
| get_history_threats | 15.0% | 7 | 37 |
| start_scan | 0.0% | 5 | 30 |
| set_ignored | 0.0% | 4 | 20 |
| get_fix_status | 0.0% | 4 | 20 |
| get_state | 57.1% | 8 | 13 |
| start_test | 0.0% | 3 | 12 |
| fix_threat | 0.0% | 3 | 12 |
| read_request_log | 81.5% | 10 | 10 |
| load_wp_build | 54.2% | 5 | 7 |
| maybe_load_wp_build | 0.0% | 2 | 6 |
| enqueue_i18n_loader | 0.0% | 2 | 6 |
| get_ip_rules | 0.0% | 2 | 6 |
| get_state | 0.0% | 2 | 6 |
| get_recent_blocks | 85.7% | 4 | 4 |
| 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 |