Skip to content

Commit

Permalink
Update text, remove extra PR links
Browse files Browse the repository at this point in the history
  • Loading branch information
bradp committed Dec 11, 2024
1 parent b1fb76c commit 629d15b
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions includes/HealthChecks.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@ public function addHealthChecks() {
$manager->addHealthCheck(
array(
'id' => 'persistent_object_cache', // Replaces the default test.
'title' => __( 'Object Caching', 'newfold-performance-module' ),
'pass' => __( 'Object caching is enabled', 'newfold-performance-module' ),
'fail' => __( 'Object caching is disabled', 'newfold-performance-module' ),
'text' => __( 'Object caching saves results from frequent database queries, reducing load times by avoiding repetitive query processing. Object caching is available in all tiers of Bluehost Cloud.', 'newfold-performance-module' ),
'title' => __( 'Object Caching', 'newfold-performance-module' ),
'pass' => __( 'Object caching is enabled', 'newfold-performance-module' ),
'fail' => __( 'Object caching is disabled', 'newfold-performance-module' ),
'text' => __( 'Object caching saves results from frequent database queries, reducing load times by avoiding repetitive query processing. Object caching is available in all tiers of Bluehost Cloud.', 'newfold-performance-module' ),
'actions' => sprintf(
'<a href="https://www.bluehost.com/hosting/cloud" target="_blank">%1$s%2$s</a>',
__( 'Learn more about Bluehost Cloud Hosting.', 'newfold-performance-module' ),
Expand All @@ -147,7 +147,7 @@ public function addHealthChecks() {
__( 'opens in a new tab', 'newfold-performance-module' )
)
),
'test' => function () {
'test' => function () {
return wp_using_ext_object_cache();
},
)
Expand Down Expand Up @@ -197,7 +197,6 @@ public function addHealthChecks() {
'fail' => __( 'Link prefetching is disabled', 'newfold-performance-module' ),
'text' => __( 'Link prefetching can improve performance by loading pages immediately before they are requested.', 'newfold-performance-module' ),
'test' => function () {
https://github.com/newfold-labs/wp-module-performance/pull/26
$enabled = get_option( 'nfd_link_prefetch_settings', array() );
return ( isset( $enabled['activeOnDesktop'] ) && $enabled['activeOnDesktop'] );
},
Expand All @@ -215,7 +214,6 @@ public function addHealthChecks() {
'fail' => __( 'Critical CSS is not prioritized', 'newfold-performance-module' ),
'text' => __( 'Prioritizing critical CSS can improve performance by loading the most important CSS first.', 'newfold-performance-module' ),
'test' => function () {
https://github.com/newfold-labs/wp-module-performance/pull/25
return get_option( 'jetpack_boost_status_critical-css', false );
},
)
Expand All @@ -230,7 +228,6 @@ public function addHealthChecks() {
'fail' => __( 'Non-essential JavaScript is not deferred', 'newfold-performance-module' ),
'text' => __( 'JavaScript can be deferred to improve performance by loading it after the page has loaded.', 'newfold-performance-module' ),
'test' => function () {
https://github.com/newfold-labs/wp-module-performance/pull/25
return get_option( 'jetpack_boost_status_render-blocking-js', false );
},
)
Expand All @@ -245,7 +242,6 @@ public function addHealthChecks() {
'fail' => __( 'JavaScript files are not concatenated', 'newfold-performance-module' ),
'text' => __( 'Concatenating JavaScript can improve performance by reducing the number of requests.', 'newfold-performance-module' ),
'test' => function () {
https://github.com/newfold-labs/wp-module-performance/pull/25
return ( ! empty( get_option( 'jetpack_boost_status_minify-js', array() ) ) );
},
)
Expand All @@ -260,7 +256,6 @@ public function addHealthChecks() {
'fail' => __( 'CSS files are not concatenated', 'newfold-performance-module' ),
'text' => __( 'Concatenating CSS can improve performance by reducing the number of requests.', 'newfold-performance-module' ),
'test' => function () {
https://github.com/newfold-labs/wp-module-performance/pull/25
return ( ! empty( get_option( 'jetpack_boost_status_minify-css', array() ) ) );
},
)
Expand Down

0 comments on commit 629d15b

Please sign in to comment.