Title: WP_Site_Health::get_good_response_time_threshold
Published: November 2, 2022
Last modified: August 20, 2026

---

# WP_Site_Health::get_good_response_time_threshold(): int

## In this article

 * [Return](https://developer.wordpress.org/reference/classes/wp_site_health/get_good_response_time_threshold/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/classes/wp_site_health/get_good_response_time_threshold/?output_format=md#source)
 * [Hooks](https://developer.wordpress.org/reference/classes/wp_site_health/get_good_response_time_threshold/?output_format=md#hooks)
 * [Related](https://developer.wordpress.org/reference/classes/wp_site_health/get_good_response_time_threshold/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/classes/wp_site_health/get_good_response_time_threshold/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/classes/wp_site_health/get_good_response_time_threshold/?output_format=md#wp--skip-link--target)

This function’s access is marked private. This means it is not intended for use 
by plugin or theme developers, only by core. It is listed here for completeness.

Gets the threshold below which a response time is considered good.

## 󠀁[Return](https://developer.wordpress.org/reference/classes/wp_site_health/get_good_response_time_threshold/?output_format=md#return)󠁿

 int Threshold in milliseconds.

## 󠀁[Source](https://developer.wordpress.org/reference/classes/wp_site_health/get_good_response_time_threshold/?output_format=md#source)󠁿

    ```php
    private function get_good_response_time_threshold() {
    	/**
    	 * Filters the threshold below which a response time is considered good.
    	 *
    	 * The default is based on https://web.dev/time-to-first-byte/.
    	 *
    	 * @since 6.1.0
    	 *
    	 * @param int $threshold Threshold in milliseconds. Default 600.
    	 */
    	return (int) apply_filters( 'site_status_good_response_time_threshold', 600 );
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/class-wp-site-health.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.1/src/wp-admin/includes/class-wp-site-health.php#L3734)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/class-wp-site-health.php#L3734-L3745)

## 󠀁[Hooks](https://developer.wordpress.org/reference/classes/wp_site_health/get_good_response_time_threshold/?output_format=md#hooks)󠁿

 [apply_filters( ‘site_status_good_response_time_threshold’, int $threshold )](https://developer.wordpress.org/reference/hooks/site_status_good_response_time_threshold/)

Filters the threshold below which a response time is considered good.

## 󠀁[Related](https://developer.wordpress.org/reference/classes/wp_site_health/get_good_response_time_threshold/?output_format=md#related)󠁿

| Uses | Description | 
| [apply_filters()](https://developer.wordpress.org/reference/functions/apply_filters/)`wp-includes/plugin.php` |

Calls the callback functions that have been added to a filter hook.

  |

| Used by | Description | 
| [WP_Site_Health::get_page_cache_detail()](https://developer.wordpress.org/reference/classes/wp_site_health/get_page_cache_detail/)`wp-admin/includes/class-wp-site-health.php` |

Gets page cache details.

  | 
| [WP_Site_Health::get_test_page_cache()](https://developer.wordpress.org/reference/classes/wp_site_health/get_test_page_cache/)`wp-admin/includes/class-wp-site-health.php` |

Tests if a full page cache is available.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/classes/wp_site_health/get_good_response_time_threshold/?output_format=md#changelog)󠁿

| Version | Description | 
| [6.1.0](https://developer.wordpress.org/reference/since/6.1.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fwp_site_health%2Fget_good_response_time_threshold%2F)
before being able to contribute a note or feedback.