=== Katze Site Preflight ===
Contributors: studiokatze
Tags: dashboard, checklist, site-health, migration, admin
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 0.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Adds a dashboard widget for common pre-launch WordPress checks, with a readiness score.

== Description ==

Katze Site Preflight adds a compact widget to the WordPress dashboard that checks common pre-launch conditions and shows an at-a-glance readiness score.

Each check is weighted and contributes to an overall score out of 100:

* ✅ 100 — Ready to launch
* ⚠️ 80–99 — Ready to launch if no issues
* ⚠️ 60–79 — Please review before launch
* ❌ 0–59 — Must fix before launch

Individual checks cover:

* Search engine visibility setting
* Site icon
* SSL (HTTPS)
* Tagline still set to the WordPress default
* Sample page, "Hello world!" post, and sample comments
* Pending comments awaiting moderation
* `WP_DEBUG` enabled in production
* Published posts or pages with multibyte (e.g. Japanese) slugs, when the permalink structure includes the post name
* Published posts still using the "Uncategorized" category

The plugin is read-only — it never changes any site settings or content.

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/katze-site-preflight` directory, or install the plugin through the WordPress plugins screen.
2. Activate the plugin through the `Plugins` screen in WordPress.
3. Open the dashboard to view the `Katze Site Preflight` widget.

== Frequently Asked Questions ==

= Does this change any site settings? =

No. The plugin only reads WordPress settings and content state, then shows the results in the dashboard.

= Does this only work with a specific theme? =

No. It is designed to work independently from themes.

= Can I add my own checks? =

Yes. Use the `ksp_site_preflight_checks` filter to add, remove, or modify checks. Each check is an associative array with `status` (`pass`, `warn`, or `error`), `message`, and optional `fix` (URL) and `items` (array of strings) keys.

= Can I change the score weights? =

Yes. Use the `ksp_site_preflight_weights` filter to adjust the weight of each check. The array is keyed by check ID (e.g. `ssl`, `search_visibility`, `wp_debug`) with integer values. Higher values make a check count more toward the final score.

= Has this been tested on PHP 7.4? =

Yes. The plugin was linted with `php:7.4-cli` and also activated successfully on a WordPress environment running PHP 7.4.

== Screenshots ==

1. Dashboard widget showing the readiness score and individual check results.

== Upgrade Notice ==

= 0.1.0 =
Initial release.

== Changelog ==

= 0.1.0 =

* Initial release.
