Add site health check to detect blocked REST API and short-circuit optimization when Inaccessible #1762
62.98% of diff hit (target 31.19%)
View this Pull Request on Codecov
62.98% of diff hit (target 31.19%)
Annotations
Check warning on line 20 in plugins/optimization-detective/hooks.php
codecov / codecov/patch
plugins/optimization-detective/hooks.php#L18-L20
Added lines #L18 - L20 were not covered by tests
Check warning on line 57 in plugins/optimization-detective/load.php
codecov / codecov/patch
plugins/optimization-detective/load.php#L55-L57
Added lines #L55 - L57 were not covered by tests
Check warning on line 65 in plugins/optimization-detective/load.php
codecov / codecov/patch
plugins/optimization-detective/load.php#L62-L65
Added lines #L62 - L65 were not covered by tests
Check warning on line 144 in plugins/optimization-detective/load.php
codecov / codecov/patch
plugins/optimization-detective/load.php#L144
Added line #L144 was not covered by tests
Check warning on line 10 in plugins/optimization-detective/site-health.php
codecov / codecov/patch
plugins/optimization-detective/site-health.php#L9-L10
Added lines #L9 - L10 were not covered by tests
Check warning on line 25 in plugins/optimization-detective/site-health.php
codecov / codecov/patch
plugins/optimization-detective/site-health.php#L22-L25
Added lines #L22 - L25 were not covered by tests
Check warning on line 27 in plugins/optimization-detective/site-health.php
codecov / codecov/patch
plugins/optimization-detective/site-health.php#L27
Added line #L27 was not covered by tests
Check warning on line 73 in plugins/optimization-detective/site-health.php
codecov / codecov/patch
plugins/optimization-detective/site-health.php#L63-L73
Added lines #L63 - L73 were not covered by tests
Check warning on line 111 in plugins/optimization-detective/site-health.php
codecov / codecov/patch
plugins/optimization-detective/site-health.php#L106-L111
Added lines #L106 - L111 were not covered by tests
Check warning on line 127 in plugins/optimization-detective/site-health.php
codecov / codecov/patch
plugins/optimization-detective/site-health.php#L126-L127
Added lines #L126 - L127 were not covered by tests
Check warning on line 137 in plugins/optimization-detective/site-health.php
codecov / codecov/patch
plugins/optimization-detective/site-health.php#L137
Added line #L137 was not covered by tests
Check warning on line 149 in plugins/optimization-detective/site-health.php
codecov / codecov/patch
plugins/optimization-detective/site-health.php#L148-L149
Added lines #L148 - L149 were not covered by tests
Check warning on line 152 in plugins/optimization-detective/site-health.php
codecov / codecov/patch
plugins/optimization-detective/site-health.php#L152
Added line #L152 was not covered by tests
Check warning on line 156 in plugins/optimization-detective/site-health.php
codecov / codecov/patch
plugins/optimization-detective/site-health.php#L154-L156
Added lines #L154 - L156 were not covered by tests
Check warning on line 164 in plugins/optimization-detective/site-health.php
codecov / codecov/patch
plugins/optimization-detective/site-health.php#L158-L164
Added lines #L158 - L164 were not covered by tests
Check warning on line 176 in plugins/optimization-detective/site-health.php
codecov / codecov/patch
plugins/optimization-detective/site-health.php#L175-L176
Added lines #L175 - L176 were not covered by tests
Check warning on line 178 in plugins/optimization-detective/site-health.php
codecov / codecov/patch
plugins/optimization-detective/site-health.php#L178
Added line #L178 was not covered by tests
Check warning on line 184 in plugins/optimization-detective/site-health.php
codecov / codecov/patch
plugins/optimization-detective/site-health.php#L180-L184
Added lines #L180 - L184 were not covered by tests
Check warning on line 187 in plugins/optimization-detective/site-health.php
codecov / codecov/patch
plugins/optimization-detective/site-health.php#L186-L187
Added lines #L186 - L187 were not covered by tests
codecov / codecov/patch
plugins/optimization-detective/tests/test-optimization-detective-rest-api-site-health-check.php#L106-L111
Added lines #L106 - L111 were not covered by tests