| Class | Coverage | Complexity | CRAP |
|---|---|---|---|
| Automattic\Jetpack\Protect\Sections\Firewall | 61.8% | 65 | 300 |
| Automattic\Jetpack\Protect\Sections\Scan | 79.3% | 128 | 273 |
| Automattic\Jetpack\Protect\Sections\History | 14.3% | 5 | 20 |
| Method | Coverage |
|---|---|
| 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% |
| ignore_threat | 0% |
| fix_threat | 0% |
| get_fix_status | 0% |
| get_scan | 0% |
| start_scan | 0% |
| get_scan_history | 15% |
| get_history | 66% |
| delete_threat_row | 66% |
| release_request_lock | 66% |
| can_ignore_threats | 75% |
| set_ignored | 77% |
| can_act_on_threats | 80% |
| get_state | 80% |
| read_request_log | 81% |
| get_history_threats | 83% |
| claim_request_lock | 83% |
| get_recent_blocks | 85% |
| get_scan_report | 88% |
| alerts_request | 89% |
| Method | Coverage | Complexity | CRAP |
|---|---|---|---|
| get_scan_history | 15.0% | 7 | 37 |
| start_scan | 0.0% | 5 | 30 |
| get_fix_status | 0.0% | 4 | 20 |
| start_test | 0.0% | 3 | 12 |
| fix_threat | 0.0% | 3 | 12 |
| get_scan_report | 88.0% | 12 | 12 |
| read_request_log | 81.5% | 10 | 10 |
| alerts_request | 89.5% | 8 | 8 |
| get_state | 0.0% | 2 | 6 |
| get_ip_rules | 0.0% | 2 | 6 |
| set_ignored | 77.8% | 6 | 6 |
| get_recent_blocks | 85.7% | 4 | 4 |
| get_history_threats | 83.3% | 4 | 4 |
| delete_threat_row | 66.7% | 4 | 4 |
| get_state | 80.8% | 3 | 3 |
| can_ignore_threats | 75.0% | 3 | 3 |
| can_act_on_threats | 80.0% | 3 | 3 |
| claim_request_lock | 83.3% | 3 | 3 |
| get_history | 66.7% | 2 | 2 |
| release_request_lock | 66.7% | 2 | 2 |