get_good_response_time_threshold example

 else {
                    $result['label'] = __( 'Page cache is detected but the server response time is still slow' );
                }
        }

        $page_cache_test_summary = array();

        if ( empty( $page_cache_detail['response_time'] ) ) {
            $page_cache_test_summary[] = '<span class="dashicons dashicons-dismiss"></span> ' . __( 'Server response time could not be determined. Verify that loopback requests are working.' );
        } else {

            $threshold = $this->get_good_response_time_threshold();
            if ( $page_cache_detail['response_time'] < $threshold ) {
                $page_cache_test_summary[] = '<span class="dashicons dashicons-yes-alt"></span> ' . sprintf(
                    /* translators: 1: The response time in milliseconds, 2: The recommended threshold in milliseconds. */
                    __( 'Median server response time was %1$s milliseconds. This is less than the recommended %2$s milliseconds threshold.' ),
                    number_format_i18n( $page_cache_detail['response_time'] ),
                    number_format_i18n( $threshold )
                );
            } else {
                $page_cache_test_summary[] = '<span class="dashicons dashicons-warning"></span> ' . sprintf(
                    /* translators: 1: The response time in milliseconds, 2: The recommended threshold in milliseconds. */
                    __( 'Median server response time was %1$s milliseconds. It should be less than the recommended %2$s milliseconds threshold.' ),
                    
Home | Imprint | This part of the site doesn't use cookies.