From 6dd050ea1df0930494321e7caa09cf951bc3aeb4 Mon Sep 17 00:00:00 2001 From: Steve Hanlon Date: Fri, 12 Jun 2026 11:11:42 +0100 Subject: [PATCH] Rename to ATT Site Healthcheck (private prefix) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Wholesale rename to avoid clashes with generic 'site healthcheck' plugin names on a target site: - Plugin Name: 'Site Healthcheck' → 'ATT Site Healthcheck' - Main file: site-healthcheck.php → att-site-healthcheck.php - Plugin folder: site-healthcheck → att-site-healthcheck - Admin menu slug: site-healthcheck → att-site-healthcheck - Settings slug: site-healthcheck-settings → att-site-healthcheck-settings - PHP class prefix: WPH_ → ATT_HC_ - Function prefix: wph_ → att_hc_ - Option / transient: wph_* → att_hc_* - Action/filter: wph_* → att_hc_* - CSS class prefix: wph- → att-hc- - Constants: WPH_GITEA_* → ATT_HC_GITEA_* - Class file names: class-wph-*.php → class-att-hc-*.php - Dev folder: ~/dev/wp-healthcheck → ~/dev/att-site-healthcheck Existing in-progress sessions on installs that had the old wph_session option will not migrate — they were intended for dev use only and the user has confirmed this is OK for the rename window. Smoke-tested on testsite: classes load, 14 steps discovered, save/load round-trip works, admin page renders with new att-hc- CSS classes. Recovery plugin detection unchanged — that lives in wp-site-recovery and continues to be detected by Name + Author header. --- README.md | 6 +- att-site-healthcheck.php | 33 ++ includes/admin-page.php | 468 +++++++++--------- ...h-session.php => class-att-hc-session.php} | 22 +- ...ass-wph-step.php => class-att-hc-step.php} | 6 +- ...s-wph-steps.php => class-att-hc-steps.php} | 20 +- includes/recovery-bootstrap.php | 20 +- includes/recovery-installer.php | 38 +- includes/report.php | 34 +- includes/steps/00-before.php | 2 +- includes/steps/10-backup.php | 2 +- includes/steps/100-uptime.php | 2 +- includes/steps/110-small-fixes.php | 2 +- includes/steps/115-email.php | 12 +- includes/steps/120-wrap-up.php | 4 +- includes/steps/20-environment.php | 2 +- includes/steps/30-core.php | 8 +- includes/steps/40-plugins.php | 4 +- includes/steps/50-theme.php | 2 +- includes/steps/60-visual.php | 2 +- includes/steps/70-performance.php | 4 +- includes/steps/80-security.php | 2 +- includes/steps/90-database.php | 2 +- site-healthcheck.php | 33 -- 24 files changed, 365 insertions(+), 365 deletions(-) create mode 100644 att-site-healthcheck.php rename includes/{class-wph-session.php => class-att-hc-session.php} (88%) rename includes/{class-wph-step.php => class-att-hc-step.php} (96%) rename includes/{class-wph-steps.php => class-att-hc-steps.php} (68%) delete mode 100644 site-healthcheck.php diff --git a/README.md b/README.md index cf33033..07ad015 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Internal WordPress plugin that walks a technician through a structured healthche ## Install ```sh -ln -s ~/dev/wp-healthcheck /path/to/wp/wp-content/plugins/site-healthcheck +ln -s ~/dev/wp-healthcheck /path/to/wp/wp-content/plugins/att-site-healthcheck ``` Then activate from *Plugins*. Settings appear under *Tools → Site Healthcheck*. @@ -28,7 +28,7 @@ Each step is a single file under `includes/steps/` named `-.php`. ```php discover(ATT_HC_PLUGIN_DIR . 'includes/steps/'); +}); diff --git a/includes/admin-page.php b/includes/admin-page.php index 40645fc..d6bd1c5 100644 --- a/includes/admin-page.php +++ b/includes/admin-page.php @@ -1,195 +1,195 @@ '; echo '

Site Healthcheck

'; - if ($msg = get_transient('wph_install_message')) { - delete_transient('wph_install_message'); + if ($msg = get_transient('att_hc_install_message')) { + delete_transient('att_hc_install_message'); echo '

' . esc_html($msg) . '

'; } if (!$session) { - wph_render_start_panel(); + att_hc_render_start_panel(); echo ''; return; } if ($session->is_finished()) { - wph_render_finished_panel($session); + att_hc_render_finished_panel($session); echo ''; return; } - wph_render_active_session($session); + att_hc_render_active_session($session); echo ''; } -function wph_render_start_panel(): void { +function att_hc_render_start_panel(): void { ?> -
+

Start a healthcheck

This will create a new in-progress session for . One session per site at a time.

- - + +
progress(); $tech = get_userdata($session->technician_id()); ?> -
+

Session: id()); ?> · Started: started_at())); ?> · Technician: display_name : '#' . $session->technician_id()); ?> · - / steps + / steps

WP wp_version()); ?> · PHP php_version()); ?> · Site site_url()); ?>

-
+
- - + +
- - + +
'; - wph_render_sidebar($session); + echo '
'; + att_hc_render_sidebar($session); echo '
'; - foreach (WPH_Steps::instance()->all() as $step) { - wph_render_step_card($session, $step); + foreach (ATT_HC_Steps::instance()->all() as $step) { + att_hc_render_step_card($session, $step); } echo '
'; } -function wph_render_sidebar(WPH_Session $session): void { - echo '