# Skip Slow Site Health Tests

> Removes the Site Health checks that make HTTP requests back to your own site, which are slow or time out on some hosts.

- Type: PHP
- Runs: Admin only
- Category: [Performance](https://wpide.com/library/category/performance/)
- Tags: performance, site-health, admin
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/skip-slow-site-health-tests/

## Code

```php
// Test names to skip.
$wpide_skip_health_tests = array( 'loopback_requests', 'https_status', 'authorization_header', 'background_updates', 'dotorg_communication', 'page_cache' );

add_filter( 'site_status_tests', function ( $tests ) use ( $wpide_skip_health_tests ) {
    foreach ( array( 'direct', 'async' ) as $group ) {
        if ( isset( $tests[ $group ] ) ) {
            $tests[ $group ] = array_diff_key( $tests[ $group ], array_flip( $wpide_skip_health_tests ) );
        }
    }

    return $tests;
} );
```

## Notes

Skipped tests are simply not shown, so problems they would detect stay hidden.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Skip Slow Site Health Tests" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
