perform_test example

unset( $tests['async']['https_status'] );
            }

            foreach ( $tests['direct'] as $test ) {
                if ( is_string( $test['test'] ) ) {
                    $test_function = sprintf(
                        'get_test_%s',
                        $test['test']
                    );

                    if ( method_exists( $this$test_function ) && is_callable( array( $this$test_function ) ) ) {
                        $health_check_js_variables['site_status']['direct'][] = $this->perform_test( array( $this$test_function ) );
                        continue;
                    }
                }

                if ( is_callable( $test['test'] ) ) {
                    $health_check_js_variables['site_status']['direct'][] = $this->perform_test( $test['test'] );
                }
            }

            foreach ( $tests['async'] as $test ) {
                if ( is_string( $test['test'] ) ) {
                    
Home | Imprint | This part of the site doesn't use cookies.