Skip to content

Commit

Permalink
Rename i18n namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
arunshenoy99 committed Jan 29, 2025
1 parent 791c80b commit aee37f1
Show file tree
Hide file tree
Showing 15 changed files with 61 additions and 61 deletions.
8 changes: 4 additions & 4 deletions includes/HealthChecks/AutosaveIntervalHealthCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ class AutosaveIntervalHealthCheck extends HealthCheck {
*/
public function __construct() {
$this->id = 'newfold-autosave-interval';
$this->title = esc_html__( 'Autosave Interval', 'newfold-performance-module' );
$this->passing_text = esc_html__( 'Autosaving is set to happen every 30 seconds or more', 'newfold-performance-module' );
$this->failing_text = esc_html__( 'Autosaving is set to be frequent, less than every 30 seconds', 'newfold-performance-module' );
$this->description = esc_html__( 'Setting the autosave interval to a longer period can reduce server load. It is recommended to set it to 30 seconds or more.', 'newfold-performance-module' );
$this->title = esc_html__( 'Autosave Interval', 'wp-module-performance' );
$this->passing_text = esc_html__( 'Autosaving is set to happen every 30 seconds or more', 'wp-module-performance' );
$this->failing_text = esc_html__( 'Autosaving is set to be frequent, less than every 30 seconds', 'wp-module-performance' );
$this->description = esc_html__( 'Setting the autosave interval to a longer period can reduce server load. It is recommended to set it to 30 seconds or more.', 'wp-module-performance' );
}

/**
Expand Down
8 changes: 4 additions & 4 deletions includes/HealthChecks/BrowserCachingHealthCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ class BrowserCachingHealthCheck extends HealthCheck {
*/
public function __construct() {
$this->id = 'newfold-browser-caching';
$this->title = esc_html__( 'Browser Caching', 'newfold-performance-module' );
$this->passing_text = esc_html__( 'Browser caching is enabled', 'newfold-performance-module' );
$this->failing_text = esc_html__( 'Browser caching is disabled', 'newfold-performance-module' );
$this->description = esc_html__( 'Enabling browser caching can improve performance by storing static assets in the browser for faster page loads.', 'newfold-performance-module' );
$this->title = esc_html__( 'Browser Caching', 'wp-module-performance' );
$this->passing_text = esc_html__( 'Browser caching is enabled', 'wp-module-performance' );
$this->failing_text = esc_html__( 'Browser caching is disabled', 'wp-module-performance' );
$this->description = esc_html__( 'Enabling browser caching can improve performance by storing static assets in the browser for faster page loads.', 'wp-module-performance' );
}

/**
Expand Down
8 changes: 4 additions & 4 deletions includes/HealthChecks/CloudflareHealthCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ class CloudflareHealthCheck extends HealthCheck {
*/
public function __construct() {
$this->id = 'newfold-cloudflare';
$this->title = esc_html__( 'Cloudflare enabled', 'newfold-performance-module' );
$this->passing_text = esc_html__( 'Cloudflare integration is enabled', 'newfold-performance-module' );
$this->failing_text = esc_html__( 'Cloudflare integration is disabled', 'newfold-performance-module' );
$this->description = esc_html__( 'Cloudflare integration can improve performance and security.', 'newfold-performance-module' );
$this->title = esc_html__( 'Cloudflare enabled', 'wp-module-performance' );
$this->passing_text = esc_html__( 'Cloudflare integration is enabled', 'wp-module-performance' );
$this->failing_text = esc_html__( 'Cloudflare integration is disabled', 'wp-module-performance' );
$this->description = esc_html__( 'Cloudflare integration can improve performance and security.', 'wp-module-performance' );
}

/**
Expand Down
8 changes: 4 additions & 4 deletions includes/HealthChecks/ConcatenateCssHealthCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ class ConcatenateCSSHealthCheck extends HealthCheck {
*/
public function __construct() {
$this->id = 'newfold-concatenate-css';
$this->title = esc_html__( 'Concatenate CSS', 'newfold-performance-module' );
$this->passing_text = esc_html__( 'CSS files are concatenated', 'newfold-performance-module' );
$this->failing_text = esc_html__( 'CSS files are not concatenated', 'newfold-performance-module' );
$this->description = esc_html__( 'Concatenating CSS can improve performance by reducing the number of requests.', 'newfold-performance-module' );
$this->title = esc_html__( 'Concatenate CSS', 'wp-module-performance' );
$this->passing_text = esc_html__( 'CSS files are concatenated', 'wp-module-performance' );
$this->failing_text = esc_html__( 'CSS files are not concatenated', 'wp-module-performance' );
$this->description = esc_html__( 'Concatenating CSS can improve performance by reducing the number of requests.', 'wp-module-performance' );
}

/**
Expand Down
8 changes: 4 additions & 4 deletions includes/HealthChecks/ConcatenateJsHealthCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ class ConcatenateJsHealthCheck extends HealthCheck {
*/
public function __construct() {
$this->id = 'newfold-concatenate-js';
$this->title = esc_html__( 'Concatenate JavaScript', 'newfold-performance-module' );
$this->passing_text = esc_html__( 'JavaScript files are concatenated', 'newfold-performance-module' );
$this->failing_text = esc_html__( 'JavaScript files are not concatenated', 'newfold-performance-module' );
$this->description = esc_html__( 'Concatenating JavaScript can improve performance by reducing the number of requests.', 'newfold-performance-module' );
$this->title = esc_html__( 'Concatenate JavaScript', 'wp-module-performance' );
$this->passing_text = esc_html__( 'JavaScript files are concatenated', 'wp-module-performance' );
$this->failing_text = esc_html__( 'JavaScript files are not concatenated', 'wp-module-performance' );
$this->description = esc_html__( 'Concatenating JavaScript can improve performance by reducing the number of requests.', 'wp-module-performance' );
}

/**
Expand Down
8 changes: 4 additions & 4 deletions includes/HealthChecks/CronLockTimeoutHealthCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ class CronLockTimeoutHealthCheck extends HealthCheck {
*/
public function __construct() {
$this->id = 'wp-cron-lock-timeout';
$this->title = esc_html__( 'WP Cron Lock Timeout', 'newfold-performance-module' );
$this->passing_text = esc_html__( 'Cron lock timeout is set to 60 seconds or less.', 'newfold-performance-module' );
$this->failing_text = esc_html__( 'Cron lock timeout is set to a high number.', 'newfold-performance-module' );
$this->description = esc_html__( 'Cron lock timeout affects how long a cron job can run for. Setting it to a lower number can improve performance.', 'newfold-performance-module' );
$this->title = esc_html__( 'WP Cron Lock Timeout', 'wp-module-performance' );
$this->passing_text = esc_html__( 'Cron lock timeout is set to 60 seconds or less.', 'wp-module-performance' );
$this->failing_text = esc_html__( 'Cron lock timeout is set to a high number.', 'wp-module-performance' );
$this->description = esc_html__( 'Cron lock timeout affects how long a cron job can run for. Setting it to a lower number can improve performance.', 'wp-module-performance' );
}

/**
Expand Down
8 changes: 4 additions & 4 deletions includes/HealthChecks/DeferNonEssentialJsHealthCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ class DeferNonEssentialJsHealthCheck extends HealthCheck {
*/
public function __construct() {
$this->id = 'newfold-defer-non-essential-js';
$this->title = esc_html__( 'Defer Non-Essential JavaScript', 'newfold-performance-module' );
$this->passing_text = esc_html__( 'Non-essential JavaScript is deferred', 'newfold-performance-module' );
$this->failing_text = esc_html__( 'Non-essential JavaScript is not deferred', 'newfold-performance-module' );
$this->description = esc_html__( 'JavaScript can be deferred to improve performance by loading it after the page has loaded.', 'newfold-performance-module' );
$this->title = esc_html__( 'Defer Non-Essential JavaScript', 'wp-module-performance' );
$this->passing_text = esc_html__( 'Non-essential JavaScript is deferred', 'wp-module-performance' );
$this->failing_text = esc_html__( 'Non-essential JavaScript is not deferred', 'wp-module-performance' );
$this->description = esc_html__( 'JavaScript can be deferred to improve performance by loading it after the page has loaded.', 'wp-module-performance' );
}

/**
Expand Down
8 changes: 4 additions & 4 deletions includes/HealthChecks/EmptyTrashDaysHealthCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ class EmptyTrashDaysHealthCheck extends HealthCheck {
*/
public function __construct() {
$this->id = 'newfold-empty-trash-days';
$this->title = esc_html__( 'Empty Trash Days', 'newfold-performance-module' );
$this->passing_text = esc_html__( 'Trash is emptied every 30 days or less', 'newfold-performance-module' );
$this->failing_text = esc_html__( 'Trash is emptied less frequently than every 30 days.', 'newfold-performance-module' );
$this->description = esc_html__( 'Emptying the trash more frequently can reduce database bloat.', 'newfold-performance-module' );
$this->title = esc_html__( 'Empty Trash Days', 'wp-module-performance' );
$this->passing_text = esc_html__( 'Trash is emptied every 30 days or less', 'wp-module-performance' );
$this->failing_text = esc_html__( 'Trash is emptied less frequently than every 30 days.', 'wp-module-performance' );
$this->description = esc_html__( 'Emptying the trash more frequently can reduce database bloat.', 'wp-module-performance' );
}

/**
Expand Down
8 changes: 4 additions & 4 deletions includes/HealthChecks/LazyLoadingHealthCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ class LazyLoadingHealthCheck extends HealthCheck {
*/
public function __construct() {
$this->id = 'newfold-lazy-loading';
$this->title = esc_html__( 'Lazy Loading', 'newfold-performance-module' );
$this->passing_text = esc_html__( 'Lazy loading is enabled', 'newfold-performance-module' );
$this->failing_text = esc_html__( 'Lazy loading is disabled', 'newfold-performance-module' );
$this->description = esc_html__( 'Lazy loading can improve performance by only loading images when they are in view.', 'newfold-performance-module' );
$this->title = esc_html__( 'Lazy Loading', 'wp-module-performance' );
$this->passing_text = esc_html__( 'Lazy loading is enabled', 'wp-module-performance' );
$this->failing_text = esc_html__( 'Lazy loading is disabled', 'wp-module-performance' );
$this->description = esc_html__( 'Lazy loading can improve performance by only loading images when they are in view.', 'wp-module-performance' );
}

/**
Expand Down
8 changes: 4 additions & 4 deletions includes/HealthChecks/LinkPrefetchHealthCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ class LinkPrefetchHealthCheck extends HealthCheck {
*/
public function __construct() {
$this->id = 'newfold-link-prefetch';
$this->title = esc_html__( 'Link Prefetching', 'newfold-performance-module' );
$this->passing_text = esc_html__( 'Link prefetching is enabled', 'newfold-performance-module' );
$this->failing_text = esc_html__( 'Link prefetching is disabled', 'newfold-performance-module' );
$this->description = esc_html__( 'Link prefetching can improve performance by loading pages immediately before they are requested.', 'newfold-performance-module' );
$this->title = esc_html__( 'Link Prefetching', 'wp-module-performance' );
$this->passing_text = esc_html__( 'Link prefetching is enabled', 'wp-module-performance' );
$this->failing_text = esc_html__( 'Link prefetching is disabled', 'wp-module-performance' );
$this->description = esc_html__( 'Link prefetching can improve performance by loading pages immediately before they are requested.', 'wp-module-performance' );
}

/**
Expand Down
8 changes: 4 additions & 4 deletions includes/HealthChecks/PageCachingHealthCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ class PageCachingHealthCheck extends HealthCheck {
*/
public function __construct() {
$this->id = 'newfold-page-caching';
$this->title = esc_html__( 'Page Caching', 'newfold-performance-module' );
$this->passing_text = esc_html__( 'Page caching is enabled', 'newfold-performance-module' );
$this->failing_text = esc_html__( 'Page caching is disabled', 'newfold-performance-module' );
$this->description = esc_html__( 'Page caching can improve performance by bypassing PHP and database queries for faster page loads.', 'newfold-performance-module' );
$this->title = esc_html__( 'Page Caching', 'wp-module-performance' );
$this->passing_text = esc_html__( 'Page caching is enabled', 'wp-module-performance' );
$this->failing_text = esc_html__( 'Page caching is disabled', 'wp-module-performance' );
$this->description = esc_html__( 'Page caching can improve performance by bypassing PHP and database queries for faster page loads.', 'wp-module-performance' );
}

/**
Expand Down
8 changes: 4 additions & 4 deletions includes/HealthChecks/PermalinksHealthCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ class PermalinksHealthCheck extends HealthCheck {
*/
public function __construct() {
$this->id = 'newfold-permalinks';
$this->title = esc_html__( 'Permalinks', 'newfold-performance-module' );
$this->passing_text = esc_html__( 'Permalinks are pretty', 'newfold-performance-module' );
$this->failing_text = esc_html__( 'Permalinks are not set up', 'newfold-performance-module' );
$this->description = esc_html__( 'Setting permalinks to anything other than plain can improve performance and SEO.', 'newfold-performance-module' );
$this->title = esc_html__( 'Permalinks', 'wp-module-performance' );
$this->passing_text = esc_html__( 'Permalinks are pretty', 'wp-module-performance' );
$this->failing_text = esc_html__( 'Permalinks are not set up', 'wp-module-performance' );
$this->description = esc_html__( 'Setting permalinks to anything other than plain can improve performance and SEO.', 'wp-module-performance' );
}

/**
Expand Down
10 changes: 5 additions & 5 deletions includes/HealthChecks/PersistentObjectCacheHealthCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ class PersistentObjectCacheHealthCheck extends HealthCheck {
*/
public function __construct() {
$this->id = 'persistent_object_cache'; // Same as the core ID so that we can override the core health check.
$this->title = esc_html__( 'Object Caching', 'newfold-performance-module' );
$this->passing_text = esc_html__( 'Object caching is enabled', 'newfold-performance-module' );
$this->failing_text = esc_html__( 'Object caching is disabled', 'newfold-performance-module' );
$this->description = esc_html__( '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' );
$this->title = esc_html__( 'Object Caching', 'wp-module-performance' );
$this->passing_text = esc_html__( 'Object caching is enabled', 'wp-module-performance' );
$this->failing_text = esc_html__( 'Object caching is disabled', 'wp-module-performance' );
$this->description = esc_html__( '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.', 'wp-module-performance' );
$this->actions = sprintf(
'<a href="%1$s" target="_blank" rel="noopener">%2$s</a><span class="screen-reader-text"> (%3$s)</span><span aria-hidden="true" class="dashicons dashicons-external"></span>',
'https://www.bluehost.com/help/article/object-caching',
esc_html__( 'Learn more about object caching', 'newfold-performance-module' ),
esc_html__( 'Learn more about object caching', 'wp-module-performance' ),
__( 'opens in a new tab', 'newfold-module-performance' )
);
}
Expand Down
8 changes: 4 additions & 4 deletions includes/HealthChecks/PostRevisionsHealthCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ class PostRevisionsHealthCheck extends HealthCheck {
*/
public function __construct() {
$this->id = 'newfold-post-revisions';
$this->title = esc_html__( 'Post Revisions', 'newfold-performance-module' );
$this->passing_text = esc_html__( 'Number of post revisions is limited to 5 or less', 'newfold-performance-module' );
$this->failing_text = esc_html__( 'Number of post revisions is set to a high number', 'newfold-performance-module' );
$this->description = esc_html__( 'Setting the number of post revisions to a lower number can reduce database bloat.', 'newfold-performance-module' );
$this->title = esc_html__( 'Post Revisions', 'wp-module-performance' );
$this->passing_text = esc_html__( 'Number of post revisions is limited to 5 or less', 'wp-module-performance' );
$this->failing_text = esc_html__( 'Number of post revisions is set to a high number', 'wp-module-performance' );
$this->description = esc_html__( 'Setting the number of post revisions to a lower number can reduce database bloat.', 'wp-module-performance' );
}

/**
Expand Down
8 changes: 4 additions & 4 deletions includes/HealthChecks/PrioritizeCssHealthCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ class PrioritizeCssHealthCheck extends HealthCheck {
*/
public function __construct() {
$this->id = 'newfold-prioritize-critical-css';
$this->title = esc_html__( 'Prioritize Critical CSS', 'newfold-performance-module' );
$this->passing_text = esc_html__( 'Critical CSS is prioritized', 'newfold-performance-module' );
$this->failing_text = esc_html__( 'Critical CSS is not prioritized', 'newfold-performance-module' );
$this->description = esc_html__( 'Prioritizing critical CSS can improve performance by loading the most important CSS first.', 'newfold-performance-module' );
$this->title = esc_html__( 'Prioritize Critical CSS', 'wp-module-performance' );
$this->passing_text = esc_html__( 'Critical CSS is prioritized', 'wp-module-performance' );
$this->failing_text = esc_html__( 'Critical CSS is not prioritized', 'wp-module-performance' );
$this->description = esc_html__( 'Prioritizing critical CSS can improve performance by loading the most important CSS first.', 'wp-module-performance' );
}

/**
Expand Down

0 comments on commit aee37f1

Please sign in to comment.