wp-site-health-auditor

sickn33/agentic-awesome-skills

Превращает отчёт Site Health WordPress в план исправлений по уровням риска с командами WP-CLI/PHP.

Звёзды49 917
Авторsickn33

Установка

SKILL.md

WP Site Health Auditor

When to Use This Skill

  • The user pastes a WordPress Site Health report (Tools > Site Health), as text or screenshot
  • The user pastes raw Site Health debug info (Tools > Site Health > Info) and asks what's wrong
  • The user mentions "site health", "recommended improvements," or "critical issues" for a WordPress site
  • The user asks to clean up, harden, or speed up a WP install based on that screen

Turns a WordPress Site Health report (Critical issues / Recommended improvements / Passed tests) into a prioritized, risk-tiered fix plan — then executes the safe fixes and hands off the rest with exact commands or code.

⚠️ Safety — read before touching any file

This skill edits wp-config.php, .htaccess, and php.ini-equivalent settings, and deletes plugins and themes. All three are one bad edit away from a white-screen-of-death or a broken upload path. Never skip this section, even for a one-line change, even if the user is in a hurry.

Before any edit or deletion, in this order:

  1. Back up the specific file(s) you're about to touch outside the web root, not just "have a backup somewhere":<!-- -->
    umask 077
    backup_dir="../wp-site-health-backups/$(date +%Y%m%d-%H%M%S)"
    mkdir -p "$backup_dir"
    cp -p wp-config.php "$backup_dir/wp-config.php"
    cp -p .htaccess "$backup_dir/.htaccess"
    
    <!-- -->If shell access isn't available, tell the user to download the current file via SFTP/host file manager first, and don't proceed until they confirm they have it.
  2. Confirm a full site/database backup exists before deleting any plugin or theme, or running wp search-replace. If the user doesn't have one and has a backup plugin active (UpdraftPlus, etc.), trigger a backup first: wp updraftplus backup or the plugin's own WP-CLI command, or tell them to click "Backup Now" and wait for confirmation before continuing.
  3. Never run wp search-replace without --dry-run first, and always show the dry-run output to the user before running it for real. This command rewrites the database in place — a wrong pattern can corrupt serialized data across every table it touches.
  4. After any PHP file edit, lint it before reloading the site:<!-- -->
    php -l wp-config.php
    
    <!-- -->For .htaccess changes, run apachectl configtest if available, or check the site immediately. A syntax error in wp-config.php takes the entire site down immediately. Do not skip the lint check to save a step.
  5. Change one thing at a time, then verify the site still loads (homepage + wp-admin) before making the next change. Don't batch multiple Tier 2 file edits into one pass — if something breaks, you want to know which change did it.
  6. Give the user the exact rollback command alongside every edit:<!-- -->
    cp ../wp-site-health-backups/<timestamp>/wp-config.php wp-config.php
    
    <!-- -->State this even if nothing goes wrong — it costs one line and saves a panicked user later.

If the user says "just do it, skip the backup" — still create the backup silently as part of the edit sequence and tell them you did. Refuse to skip step 1 or step 4 entirely; those two are non-negotiable regardless of urgency, since the failure mode (corrupted wp-config.php, dead site) is worse than the ten seconds a backup costs.

Overview

The Site Health screen is diagnostic, not prescriptive. It tells the site owner that something is wrong (e.g. "you should use a persistent object cache") but not how to fix it, and it mixes items that are one-click-safe (deactivate a plugin) with items that require host-level changes (php.ini, object cache backend) or are purely informational (SQL server version — no action needed). This skill sorts that out — safely.

Phase 1 — Parse the report

Input is usually one of:

  • Pasted plain text copied from Tools > Site Health (Status tab)
  • Pasted plain text from Tools > Site Health > Info (the debug data export)
  • A screenshot of the Status tab
  • WP-CLI output (wp site-health check is not a core command; note that up front, don't invent one — see Phase 4)

Extract three buckets exactly as WordPress labels them:

  1. Critical issues (red) — always fix first, always confirm before touching.
  2. Recommended improvements (yellow) — the bulk of real work; triage by risk tier below.
  3. Passed tests (green) — skip. Do not "fix" or re-verify passed tests unless the user asks. Do not invent problems with green items — a common failure mode is treating "SQL server is up to date" as something to act on. It isn't.

If the report is a screenshot, transcribe item titles + category tags (Security/Performance/SEO/Privacy) verbatim before triaging — don't paraphrase the WordPress-generated title, it's used for the fix lookup in Phase 3.

If no report was pasted and the user just says "audit my site health," ask them to paste the Status tab text (fastest) rather than guessing — Site Health results are host- and config-specific and guessing wastes a turn.

Phase 2 — Risk-tiered triage

Classify every non-passed item into one of three tiers before touching anything. Present this triage table to the user first for anything above Tier 1 count of 3+ items — don't silently start deactivating plugins.

Tier 1 — Safe, reversible, auto-fixable in wp-admin or via WP-CLI No data loss risk, no downtime, fully reversible. Still back up per the Safety section before deleting anything. Fix directly once the user confirms the item list.

  • Remove inactive plugins/themes (they aren't running, deactivation already happened — this is just deletion of dead code)
  • Turn off WP_DEBUG display in production (WP_DEBUG_DISPLAY, not WP_DEBUG itself if the user still wants logging)
  • Enable search engine indexing / fix robots visibility toggle
  • Update the site tagline off "Just another WordPress site"

Tier 2 — Requires host/server-level access — Claude drafts the change, user or host applies it Cannot be fixed purely from wp-admin; needs php.ini, .htaccess, wp-config.php, or hosting panel access. Draft the exact snippet, explain where it goes, remind the user of the backup + lint steps above, and flag that a server restart or host support ticket may be needed.

  • Permalink structure change (migration — existing URLs break without redirects; require a redirect plan and CDN/cache flush before applying)
  • post_max_size < upload_max_filesize mismatch
  • Persistent object cache not available (Redis/Memcached)
  • Page cache not detected
  • PHP version/module changes
  • HTTPS/SSL configuration
  • Loopback/REST API failures caused by firewall or security plugin blocking

Tier 3 — Informational / host-dependent, no fix exists or none needed Report as informational only. Do not attempt a fix, do not suggest one unless directly asked.

  • SQL server version notices when already current
  • "Autoloaded options are acceptable" type passed-adjacent info
  • Anything already green in Passed tests

Phase 3 — Fix recipes by item

Match the WordPress-generated item title (case-insensitive substring match is fine) to a recipe below. Every recipe below assumes the Safety section has already been followed for that file. If an item doesn't match anything here, say so explicitly rather than fabricating a fix — Site Health's item set changes across WP core versions and this list isn't exhaustive (see references/catalog.md for the fuller list including rarer items).

You should remove inactive plugins / themes — Tier 1

# confirm full site backup exists first (Safety step 2)
wp plugin list --status=inactive --field=name
wp plugin delete <plugin-slug>

wp theme list --status=inactive --field=name
wp theme delete <theme-slug>

Never delete the currently active theme's parent if the active theme is a child theme. Never delete Twenty Twenty-Five (or the current default core theme) if it's the only fallback theme — WordPress needs at least one broken-theme fallback; recommend keeping one bundled default even if inactive. Confirm the exact plugin/theme names with the user before deleting — inactive isn't the same as unused; some plugins are intentionally kept inactive as a staged rollback.

post_max_size smaller than upload_max_filesize — Tier 2

This breaks large file uploads (post data gets truncated before the file size limit is even reached). Fix by raising post_max_size to be >= upload_max_filesize, typically with headroom for form overhead.

Where to set it (pick whichever the host supports, in this order of preference):

  1. Host control panel PHP settings (cPanel "Select PHP Version" > Options, Plesk, etc.) — no code needed, safest option, skip the file-backup steps entirely.
  2. php.ini (if the user has server access) — back up first (cp php.ini php.ini.bak-<timestamp>):<!-- -->
    upload_max_filesize = 64M
    post_max_size = 128M
    
  3. .htaccess (Apache + mod_php only, not on PHP-FPM/nginx) — back up first:<!-- -->
    php_value upload_max_filesize 64M
    php_value post_max_size 128M
    
    <!-- -->A malformed .htaccess directive can 500 the entire site. Run apachectl configtest if available before reloading, or check the live site immediately after saving.
  4. .user.ini (CGI/FastCGI hosts; not mod_php) — back up first, create or edit .user.ini in the WordPress root:<!-- -->
    upload_max_filesize = 64M
    post_max_size = 128M
    
    <!-- -->⚠️ Do not use ini_set() in wp-config.php for these directives — upload_max_filesize and post_max_size are PHP_INI_PERDIR, which means they can only be set before the request starts (php.ini, .htaccess, .user.ini). ini_set() calls silently fail for both, leaving the problem unfixed.

Always set post_max_size strictly greater than upload_max_filesize. Confirm the current values first (wp cli info doesn't show these — check phpinfo() or the host panel) rather than assuming defaults.

You should use a persistent object cache — Tier 2

Requires a caching backend (Redis or Memcached) installed at the server level — this is not something a plugin alone can create out of nothing.

  1. Confirm with the user's host whether Redis or Memcached is available (many managed WP hosts include one).
  2. If available, install a drop-in client plugin: Redis Object Cache or WP Redis (Redis), or Memcached Object Cache (Memcached). wp plugin install redis-cache --activate then wp redis enable. This writes an object-cache.php drop-in to wp-content/ — confirm no existing object-cache.php is being overwritten (check first with ls wp-content/object-cache.php); if one exists, back it up before enabling.
  3. If not available, this is a hosting-tier limitation — report it as such rather than trying to fake a fix; don't recommend switching hosts unprompted, just flag it as the blocker.

Page cache is not detected — Tier 2

  1. Check if the host provides server-level page caching (many managed WP hosts do, and it may already be active but not reporting the headers Site Health looks for — worth confirming with the host before installing a redundant plugin).
  2. If not, install one page-cache plugin (not a full plugin stack) — WP Super Cache, W3 Total Cache, or the host-recommended one. wp plugin install wp-super-cache --activate then enable caching from its settings screen (no reliable WP-CLI toggle across cache plugins — flag manual step to user).
  3. Avoid stacking two caching plugins; if one is already active but not detected, check the plugin's own status page before adding another. Some cache plugins also write rules into .htaccess — back it up first per the Safety section before activating.

Your site is not set to output debug information — usually already passing; if failing — Tier 1

Back up wp-config.php first, lint after editing:

// wp-config.php
define( 'WP_DEBUG', false );         // set to true only while actively debugging
define( 'WP_DEBUG_DISPLAY', false ); // never show errors to visitors
define( 'WP_DEBUG_LOG', true );      // logs to wp-content/debug.log instead

REST API / loopback requests / background updates failing — Tier 2

Usually a security plugin, firewall, or .htaccess rule blocking internal requests. Steps:

  1. Temporarily deactivate security/firewall plugins one at a time, re-check Site Health after each.
  2. Check hosting-level firewall (Cloudflare, Sucuri, host WAF) isn't blocking the site from calling itself.
  3. Verify wp-config.php doesn't have define('DISALLOW_FILE_MODS', true) set incorrectly for background updates specifically, if that's the failing item. Back up before removing/editing that line.

HTTPS not fully active — Tier 2

wp option get siteurl
wp option get home

Both must be https://. Also check for mixed-content (http:// hardcoded in content/theme). Confirm a full database backup exists, then dry-run before applying for real:

wp search-replace 'http://olddomain.com' 'https://olddomain.com' --dry-run

Only remove --dry-run after the user has reviewed the dry-run output and confirmed the replacement count and matched rows look correct.

Phase 4 — What NOT to invent

  • There is no wp site-health Команда WP-CLI в ядре WordPress на момент написания — не выдумывайте её. Исправления применяются через конкретные команды выше, а не одним вызовом CLI для аудита и исправления.
  • Не заявляйте, что исправление завершено, пока пользователь (или повторный запуск Site Health) не подтвердит это — изменения на уровне сервера (уровень 2) особенно могут незаметно не примениться из-за ограничений хостинга.
  • Не угадывайте значения PHP/сервера (текущие upload_max_filesize, доступность кэш-бэкенда и т. д.) — спросите или попросите пользователя проверить phpinfo() / панель хостинга, вместо того чтобы предполагать, что распространённые значения по умолчанию на месте.
  • Не пропускайте и не сокращайте раздел «Безопасность» ни по какой причине, включая «это небольшое изменение» — риск повреждения файла не масштабируется с размером правки; одна пропущенная точка с запятой в wp-config.php так же фатальна, как и крупная правка.

Фаза 5 — Формат вывода

Предоставьте пользователю:

  1. Таблица триажа: элемент | категория | уровень | краткое описание исправления в одну строку
  2. Исправления уровня 1: выполнить напрямую (с подтверждением + резервной копией для удалений), показать до/после
  3. Исправления уровня 2: точный фрагмент + точное место, куда он идёт + команда резервного копирования + команда проверки/линта + команда отката + примечание, что может потребоваться перезапуск хостинга или тикет в поддержку; не помечайте их как «выполненные», пока пользователь не подтвердит, что сайт по-прежнему загружается
  4. Уровень 3 / нераспознанные элементы: по одной строке каждый, только для информации
  5. Рекомендуйте повторно запустить Site Health после изменений уровня 1/2, чтобы подтвердить, что жёлтые элементы исчезли.

Держите весь ответ легко сканируемым — это список задач, а не эссе. Используйте таблицу + короткие блоки-рецепты выше, а не прозаические абзацы, если только пользователь не попросит больше объяснений по конкретному элементу.

Примеры

Пример: Site Health сообщает «Вам следует использовать постоянный объектный кэш»

  1. Триаж → уровень 2 (требуется Redis/Memcached на уровне сервера)
  2. Попросите пользователя уточнить у хостинга, доступен ли Redis
  3. Если да, выполните:
    wp plugin install redis-cache --activate
    wp redis enable
    
  4. Проверьте: ls wp-content/object-cache.php существует
  5. Повторно запустите Site Health, чтобы подтвердить, что элемент исчез

Пример: Site Health сообщает «Ваш сайт не настроен на вывод отладочной информации»

  1. Триаж → уровень 1 (безопасно, обратимо через wp-config.php)
  2. Сделайте резервную копию wp-config.php:<!-- -->
    umask 077
    backup_dir="../wp-site-health-backups/$(date +%Y%m%d-%H%M%S)"
    mkdir -p "$backup_dir"
    cp -p wp-config.php "$backup_dir/wp-config.php"
    
  3. Отредактируйте и проверьте линтом:
    define( 'WP_DEBUG', false );
    define( 'WP_DEBUG_DISPLAY', false );
    
  4. Проверьте php -l wp-config.php проходит
  5. Подтвердите, что главная страница сайта + wp-admin по-прежнему загружаются

Лучшие практики

  • ✅ Делайте резервную копию конкретного файла перед каждой правкой — cp занимает секунды, восстановление мёртвого сайта занимает часы
  • ✅ Меняйте по одной вещи за раз и проверяйте загрузку сайта между каждым изменением
  • ✅ Всегда запускайте php -l после редактирования wp-config.php перед перезагрузкой сайта
  • ✅ Запускайте wp search-replace с --dry-run сначала и покажите вывод пользователю
  • ❌ Никогда не объединяйте несколько правок файлов уровня 2 в один проход — вы не узнаете, какое изменение сломало сайт
  • ❌ Никогда не пропускайте шаг резервного копирования, даже для изменения однострочного комментария

Справочник

references/catalog.md — расширенный список менее распространённых элементов Site Health (элементы категории SEO, такие как генерация llms.txt, элементы конфиденциальности, более редкие элементы безопасности) с той же классификацией по уровням, для отчётов, включающих элементы, не охваченные выше.

Распространённые ошибки

  • Рассматривать каждый жёлтый элемент как требующий действий — Некоторые рекомендуемые улучшения (например, постоянный объектный кэш) находятся на уровне хостинга и могут быть неисправимы. Всегда выполняйте триаж по уровням перед действием.
  • Изменение постоянных ссылок без плана перенаправлений — Переключение на «Имя записи» на индексированном сайте ломает каждый существующий URL. Всегда сначала планируйте 301-редиректы.
  • Использование ini_set() для лимитов загрузки — upload_max_filesize и post_max_size — PHP_INI_PERDIR; ini_set() незаметно не срабатывает. Используйте php.ini, .htaccess, or .user.ini вместо этого.
  • Пропуск пробного запуска на wp search-replace — Неправильный шаблон может повредить сериализованные данные. Никогда не запускайте его без --dry-run сначала.
  • Установка двух плагинов кэширования — Наложение плагинов страничного кэша вызывает конфликты и неочевидные ошибки. Если один уже активен, но не обнаружен, отладьте его, а не добавляйте другой.

Ограничения

  • Не может сам выполнить что-либо на живом сайте — каждый фрагмент WP-CLI/PHP составляется для пользователя или его хостинга; у этого навыка нет доступа к оболочке на реальном сервере пользователя.
  • Не может проверить текущие значения PHP/сервера (лимиты загрузки, доступность кэш-бэкенда, статус HTTPS) — полагается на то, что пользователь сообщит после проверки phpinfo() или его панели хостинга.
  • Не охватывает вариации Site Health, специфичные для мультисайта, или проверки здоровья, специфичные для WooCommerce; оба добавляют дополнительные элементы, которые список рецептов этого навыка не включает.
  • Каталог элементов (основной файл + references/catalog.md) отражает проверки Site Health ядра WordPress по состоянию на середину 2026 года — заголовки/формулировки элементов могут меняться между версиями ядра, поэтому несовпавший элемент следует сообщать как несовпавший, а не насильно подгонять под ближайший рецепт.
  • Не заменяет полный аудит безопасности или сканирование на компрометацию — Site Health отмечает проблемы гигиены конфигурации, а не признаки того, что сайт уже взломан.

Связанные навыки

  • @security-hardening — Для более глубоких аудитов безопасности WordPress за пределами поверхностных проверок Site Health
  • @wp-performance — Для целевой оптимизации производительности после устранения флагов Site Health

Вставить в README

Ссылка на карточку для вашего README — без картинок и счётчиков.

[DarkPlay: wp-site-health-auditor](https://darkplay.ru/ai/skills/sickn33-agentic-awesome-skills-wp-site-health-auditor)

Описание

Превращает отчёт WordPress Site Health в план исправлений с приоритетом по рискам и резервным копированием в первую очередь, с точными сниппетами WP-CLI/PHP. Используйте для отчётов о состоянии сайта, рекомендуемых улучшениях или критических проблемах.

Похожие скиллы и другие разделы каталога

Популярное в разделе «Скиллы»

Самые востребованные скиллов раздела по установкам и звёздам.

find-skillsvercel-labs · Помогает находить и устанавливать навыки агентов по запросам вроде «как сделать X»…
4 400 000 устан.
grill-memattpocock · Настойчивое интервью для доработки плана или дизайна.
1 600 000 устан.
hyperframesheygen-com · Обязательная точка входа для любых задач по видео, анимации и motion-графике в…
1 600 000 устан.
hyperframes-cliheygen-com · Цикл разработки HyperFrames CLI: init, add, render, preview, publish и другие команды.
1 600 000 устан.
agent-browservercel-labs · CLI для автоматизации браузера для ИИ-агентов: навигация по страницам, заполнение форм…
1 600 000 устан.
media-useheygen-com · Agent Media OS: единый навык для медиа в HyperFrames — BGM, SFX, изображения, голос, LUT.
1 500 000 устан.
hyperframes-registryheygen-com · Установка и подключение блоков реестра в композиции HyperFrames через add и catalog.
1 400 000 устан.
grill-with-docsmattpocock · Настойчивое интервью для доработки плана или дизайна, попутно создающее документацию (ADR…
1 300 000 устан.
improve-codebase-architecturemattpocock · Поиск в кодовой базе возможностей для углубления, визуальный HTML-отчёт о них и детальный…
1 300 000 устан.
tddmattpocock · Разработка через тестирование (TDD): red-green-refactor и интеграционные тесты.
1 300 000 устан.
Похожее в других разделах каталога

Соседние разделы каталога: возможно, нужный инструмент живёт там.

Healthcare Revieweraffaan-m · Проверяет медицинский код: клиническая безопасность, CDSS, PHI и целостность данных.
225 587 ★
Network Architectaffaan-m · Проектирует корпоративные и распределённые сети с маршрутизацией и автоматизацией.
225 587 ★
Seo Specialistaffaan-m · SEO-специалист: технический аудит, оптимизация страниц, структурированные данные, Core…
225 587 ★
Skill Healthaffaan-m · Показывает панель состояния портфеля навыков с графиками и аналитикой.
225 587 ★
hyperframesheygen-com · Все навыки HyperFrames в одном статическом наборе. В большинстве случаев лучше…
27 комп.
marketing-skillscoreyhaines31 · 47 навыков маркетинга для технических маркетологов и основателей: CRO, копирайтинг…
47 комп.
brightdata-pluginanthropics · Веб-скрапинг, поиск в Google, извлечение структурированных данных и интеграция…
100 комп.
build-with-wordpressanthropics · Создание сайтов и приложений WordPress продакшн-уровня: от тем и плагинов до коммерции и…
100 комп.
firecrawlanthropics · Веб-скрапинг и обход сайтов на базе Firecrawl. Превращает любой сайт в чистый markdown…
100 комп.
hostingeranthropics · Развёртывание, управление и мониторинг сервисов Hostinger: сайты, домены, ecommerce…
100 комп.

Лучшие ИИ-инструменты для генерации видео

Генерация видео

Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,

VEED.IOVeed
По запросу
5.0
MootionMootion
По запросу
5.0
FlyviFlyvi
Есть бесплатный тариф
4.9
Google Veo 3.1Google
Платно
4.9
Sora (OpenAI)OpenAI
Платно
4.9
PikaPika
Платно
4.9
captions space
Есть бесплатный тариф
4.8
Клайп
Есть бесплатный тариф
4.8
viralpulse.appViralpulse
По запросу
4.8
Viral Maker AIViral-maker
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации текста и копирайтинга

Генерация текста и копирайтинг

Подборка нейросетей для генерации текстов и копирайтинга. Сервисы, которые помогают создавать статьи, посты и рекламные объявления с нуля или по черновику, экономя часы рутинной ра

NeuroscribeNeuroscribe
Есть бесплатный тариф
5.0
GoGPTGogpt
По запросу
5.0
ChatsonicChatsonic
По запросу
4.9
НейроТекстерNeuro-texter
По запросу
4.9
ChatGPTOpenAI
По подписке
4.9
Редактум
Есть бесплатный тариф
4.8
ChadGPTChadgpt
По запросу
4.8
Cosmo ScribeCosmoscribe
Есть бесплатный тариф
4.8
Memo HelperCopilot33
По запросу
4.8
LibraChatLibrachat
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации изображений

Генерация изображений

Подборка нейросетей для генерации изображений от фотореализма до концепт-арта. Сервисы, которые экономят часы ручной работы, создавая визуал для блогов, рекламы и дизайна за минуты

MagviMagvi
По запросу
5.0
DALL-E 3OpenAI
По подписке
5.0
SupaLabSupalab
По запросу
5.0
Freestyling.aiFreestyling
Есть бесплатный тариф
4.9
ArtGeneration.meArtgeneration
Есть бесплатный тариф
4.9
BigjpgBigjpg
По запросу
4.9
Художник от VKVK
Бесплатно
4.9
Wonderink — ИИ-книги
Есть бесплатный тариф
4.8
Avato AI12ai
По запросу
4.8
Virton AIVirton
По запросу
4.8