=== Noshi-Kanamer – WordPress Pre-Launch Checklist & Client Handoff Toolkit ===
Contributors: nokazehayato
Tags: developer-tools, pre-launch, checklist, toolkit, maintenance
Requires at least: 6.2
Tested up to: 7.0
Stable tag: 0.5.8
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

WordPress pre-launch checklist & client handoff toolkit. Auto-detects WP_DEBUG, noindex & unused media before delivery. Generates a proof report.

== Description ==

**Stop forgetting to disable WP_DEBUG before client handoff.**
Noshi-Kanamer is a WordPress pre-launch checklist & client handoff toolkit built for freelancers and agencies. It auto-detects the things that always slip through — WP_DEBUG, noindex, test content, unused media — and generates a shareable proof report of every check, so you have something to show your client.

Unlike file-collection portals, Noshi-Kanamer focuses on the engineering side of handoff — catching WP_DEBUG, noindex, debug.log, and other technical loose ends before delivery.

Unlike manual checklists, Noshi-Kanamer detects problems rather than just listing them. When all checks clear, click "Generate Report" to produce a copyable proof list — shareable with your client or kept for your own records.

Noshi-Kanamer supports two halves of a client project: tools that help while you build — Hide Blocks, Block Showcase, Test Posts, Media Manager, and Site Check — and a final checklist that confirms everything is ready before you hand off: Pre-Launch.

= Block Showcase =

Instantly render every registered block on any page or post. Insert the Block Showcase block, click "Generate Showcase", and all available blocks appear in one place — ready for client review or your own reference.

No more hunting through the block inserter to find what's available.

= Hide Blocks =

Remove unwanted default blocks (social links, YouTube embed, etc.) from the editor with a single click. Applied globally across all users — not just per-user preferences.

When you're ready to deliver, the Pre-Launch tab generates a `functions.php` snippet to make the setting permanent. Deactivate or remove the plugin without losing your configuration.

= Test Posts =

Generate flagged test posts in one click. Each post is marked internally, so you can delete all test content before launch with zero risk of touching real posts.

= WordPress Pre-Launch Checklist =

A checklist that actually does the work. Before handing off the site, the Pre-Launch tab handles everything in one screen:

* **Delete all test posts** — removes every flagged test post instantly
* **Move Block Showcase pages to trash** — cleans up pages containing the Block Showcase block
* **Flush rewrite rules** — prevents 404 errors after migration to production
* **Search engine indexing** — detects if your site is still set to noindex, with a direct link to fix it
* **Admin email address** — shows the current email with a direct link to update it
* **WP_DEBUG status** — alerts if debug mode is still on, with a copy-paste fix
* **File editor, XML-RPC, debug.log, and the default 'admin' username** — checks four common security loose ends, each with a one-click fix or guidance to resolve it
* **Persist block visibility** — generates a `functions.php` snippet to keep your Hide Blocks settings after deactivating or removing the plugin

A live progress card and sticky Next Action card keep you oriented on what's left. When all tasks are complete, a **"All pre-launch checks are complete!"** banner confirms the site is handoff-ready — click **"Generate Report"** for a shareable proof list of every verified check.

= Site Check =

Taking over an existing site? The Site Check tab scans every installed plugin (active and inactive) against WordPress.org and flags anything that hasn't been updated in 6+ months or 1+ year — with results sorted so the plugins that need attention appear first. It's the fastest way to spot outdated, possibly abandoned plugins before you start working on a client's site.

= Media Manager =

Keep your media library clean while you build. The Media Manager tab (Tools > Noshi-Kanamer) scans every image in your library and flags the ones that aren't referenced anywhere in your content, so clutter doesn't quietly pile up over the course of a project.

Each image in the media library is scanned automatically:

* **"Unused" badge** — appears on any image that isn't used in post content, featured images, or custom fields (including ACF image and gallery fields)
* **"Used In" field** — open any media attachment to see exactly which posts or pages reference it
* **Bulk delete** — select unused images in the Media Manager tab and permanently delete them in one go — handy for a final sweep before client handoff, too

= Built for WordPress Freelancers & Agencies =

WordPress freelancers and agencies who've ever shipped a site with WP_DEBUG still on, noindex still set, or test posts left behind — this plugin eliminates those repetitive, error-prone steps before delivery.

Hundreds of downloads since launch — built by a working WordPress developer.

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/noshi-kanamer`
2. Activate through the Plugins screen in WordPress
3. Go to **Tools > Noshi-Kanamer**

== Frequently Asked Questions ==

= I just installed Noshi-Kanamer. Where do I start? =

Head to **Tools > Noshi-Kanamer** in your WordPress admin. If you're starting a new build, head to **Pre-Launch** when you're ready to run through the handoff checklist. If you're taking over an existing site, start with **Site Check** to see which installed plugins need attention. If you want to hide blocks from your client's editor, go to the **Hide Blocks** tab.

= Will deleting test posts affect my real content? =

No. Noshi-Kanamer marks each test post with a hidden flag. Only flagged posts are deleted — your real content is never touched.

= Does Hide Blocks affect all users or just me? =

It applies globally to all users on the site, using the `allowed_block_types_all` filter.

= What happens to my Hide Blocks settings when I deactivate or remove the plugin? =

Use the Pre-Launch tab to generate a `functions.php` snippet beforehand. Paste it into your theme and your block visibility settings remain permanent — even without the plugin active.

= What does the Pre-Launch progress card actually show? =

The Pre-Launch tab displays a live progress card (X of Y complete) and a sticky Next Action card that always surfaces the single most important unresolved item — with a direct link to the fix for settings-based checks, and clear next-step guidance for the rest. You're never left guessing what's still outstanding.

= How does code-level noindex detection work? =

Beyond the standard WordPress Reading Settings check, Noshi-Kanamer also inspects the `wp_robots` filter output and — on hosts that support server-to-server loopback requests — the actual rendered HTML `<meta name="robots">` tag. This catches noindex directives injected by your theme or an SEO plugin that a Reading Settings check alone would miss.

= Why are some blocks missing from the Block Showcase? =

Blocks exclusive to Full Site Editing (FSE) — such as `core/template-part` and query pagination blocks — cannot be rendered on standard pages or posts. All blocks usable in the standard block editor are included.

= Does Block Showcase work with Elementor? =

Block Showcase requires the Gutenberg block editor and is not compatible with Elementor. When Elementor is active, pages are managed through the Elementor editor, which does not support Gutenberg blocks. Other features (Hide Blocks, Test Posts, Pre-Launch Cleanup) work normally alongside Elementor.

= Is this a developer tool or a client-facing plugin? =

It's purely a developer tool — designed for WordPress freelancers and agencies during the build phase. It is not intended for clients. We recommend deactivating or removing it before handing off the site.

= Can I use this on every client project? =

For most WordPress setups, yes. Pre-Launch Cleanup, Hide Blocks, and Test Posts work across standard and FSE themes. Note that Block Showcase requires the Gutenberg block editor and is not compatible with Elementor-powered pages — other features work normally alongside Elementor.

= What should I check before handing off a WordPress site to a client? =

Noshi-Kanamer covers the full checklist across two tabs for a clean client handoff. The Pre-Launch tab handles test content, rewrite rules, search engine indexing (noindex), WP_DEBUG, the admin email address, and four security loose ends (file editor, XML-RPC, debug.log, the default admin username) — all in one screen. The Media Manager tab finds and removes unused images before client delivery. When the **"All pre-launch checks are complete!"** banner appears, your site is clean and ready to hand off.

= When should I deactivate Noshi-Kanamer? =

Most engineers deactivate or remove it just before handing off the site — keeping the client's dashboard clean and focused. That said, you can always reactivate it later for maintenance, post-launch adjustments, or follow-up work.

== Source Code ==

The compiled JavaScript in the `build/` directory is generated from the JSX source files in `src/` using Vite. The full source code is included in the plugin package under `src/`.

== Screenshots ==

1. The goal — every check cleared before you hand off the site.
2. Step 0 — Taking over an existing site? Start here: Site Check flags outdated plugins before you touch anything.
3. Step 1 — Keep the editor clean: hide blocks your client won't need.
4. Step 2 — Show your work: render every registered block in a shareable catalog for client review.
5. Step 3 — Build with confidence: generate flagged test posts, wipe them safely before launch.
6. Step 4 — Clean up unused media before delivery.
7. Step 5 — Track what's left: the progress card and Next Action card keep you oriented until every check clears.

== Upgrade Notice ==

= 0.5.8 =
Every tab now has a Guide button — a quick how-it-works explainer, right where you need it.

= 0.5.7 =
Bundles the finalized Japanese translation set (100% coverage on WordPress.org) and gives the activation notice a friendlier welcome that nudges you straight to the Pre-Launch tab.

= 0.5.6 =
The Pre-Launch tab now shows a progress card and a sticky Next Action card so you always know what to do next. Code-level noindex (theme or SEO plugin) is now detected in addition to the Reading setting — no more silent launches that fail to appear in Google.

= 0.5.5 =
Each tab now opens with a one-line orientation message, and the Pre-Launch tab has a brand-color top border to mark your handoff milestone.

= 0.5.4 =
First-time tool-page visitors now get a welcome modal pointing to Pre-Launch; returning users see Hide Blocks as the default tab again.

= 0.5.3 =
The "All checks passed" modal now appears every time all checks pass. Review prompt is shown once per day only.

= 0.5.1 =
Better first-time experience: sidebar menu, Pre-Launch tab opens by default, and items show what's already clean — no need to click every button.

= 0.5.0 =
New: Site Check tab scans installed plugins and flags ones not updated in 6+ months or 1+ year on WP.org.

= 0.4.0 =
New: Pre-Launch adds 4 security checks — file editor lock, XML-RPC, debug.log, and 'admin' username — plus one-click debug.log cleanup.

= 0.3.0 =
New: Pre-Launch tab now generates a copyable summary report of your cleanup checks — handy for client handoff.

= 0.2.4 =
A small "Leave a review" link now appears in the footer of every Noshi-Kanamer admin tab.

= 0.2.3 =
The review prompt now also appears for returning users (7+ days, 3+ visits to the Noshi-Kanamer screen), even before pre-launch is complete.

= 0.2.2 =
Japanese admin UI is now available. Displays automatically when WordPress is set to Japanese. No configuration needed.

= 0.2.1 =
Improved review prompt copy — clearer message after pre-launch completion.

= 0.2.0 =
New: Media Manager tab — find and delete unused images before client handoff. Also adds usage info to the media modal and Unused badges in the media library.

= 0.1.2 =
Confirmed compatibility with WordPress 7.0. Screenshots updated to reflect the new admin UI. No code changes.

= 0.1.1 =
Pre-Launch now shows a review nudge once a day — not pushy, just a small ask.
Your feedback genuinely helps us improve.

== Changelog ==

= 0.5.8 =
* Added: Every tab now has a "Guide" button that opens a short how-it-works modal — see how each tool fits into your Develop → Deliver workflow without leaving the tab.
* Added: The Pre-Launch guide walks through Checks, Actions, Code Generator, and Report as separate pages, so first-time and returning users alike can skim exactly the section they need.

= 0.5.7 =
* Improved: Activation notice now gives new users a warmer welcome and a nudge to check the Pre-Launch tab — even a test environment that looks clean can have something left to resolve.
* Improved: Description now describes the live progress card, sticky Next Action card, and code-level noindex detection.
* Improved: Bundled Japanese translations are now 100% complete on WordPress.org (v0.5.5 + v0.5.6 additions submitted and approved).

= 0.5.6 =
* Added: Pre-Launch tab now shows a progress card with `N/10 complete` and a sticky Next Action card (bottom-right) so you can see exactly what's left and how to do it — no more guessing why "All checks complete" isn't appearing.
* Added: Each pending step in the Next Action card includes a hint sentence and (where applicable) a one-click link to the relevant settings screen.
* Added: Code-level noindex detection — Pre-Launch now also checks the `wp_robots` filter output and inspects the rendered HTML for `<meta name="robots" content="noindex">`, so theme/SEO-plugin-driven noindex directives are no longer silently missed even when the Reading setting says "indexed".
* Improved: When all checks pass, the Pre-Launch tab background turns a soft green and the progress card is replaced by a green completion banner with a Generate Report button — the handoff-ready moment is more obvious.
* Improved: Progress card shows red while items are pending, gray while the check is still loading.

= 0.5.5 =
* Improved: Pre-Launch tab now has a distinctive brand-color border accent so it stands out as the handoff milestone in the tab bar.
* Improved: Each tab now shows a heading that names the tool and its purpose (e.g. "Hide Blocks — Hide blocks your clients won't need"), so users can orient themselves at a glance.
* Improved: Each tool tab now opens with a one-line orientation sentence ("Develop —" or "Deliver —") so new users immediately understand where they are in the build-to-handoff flow.
* Improved: All tabs now have icons, the active tab gets a brand-color top border, and a persistent "Check first" badge on Pre-Launch signals it as the handoff milestone.
* Improved: Pre-Launch sections are now ordered Checks → Actions → Code Generator → Report, matching the natural "review then act" flow.

= 0.5.4 =
* Improved: A welcome modal now greets you on your first visit to the tools page, pointing you to the Pre-Launch check — your suggested starting point.
* Improved: Default tab returns to Hide Blocks so returning users no longer have to navigate away from Pre-Launch every visit.
* Improved: The activation notice now highlights auto-detection of debug mode, noindex and test data, and the proof report for client handoff.
* Fixed: Bundled translations now correctly apply when WordPress.org pulls older translation files, so new UI strings are no longer shown in English on translated sites.

= 0.5.3 =
* Improved: The "All checks passed" modal was only shown on the very first completion; it now appears every time all checks pass, so returning users always see the handoff-ready moment.
* Improved: The review prompt is shown once per day — if you've already seen it today, only the "Generate Report" reminder appears, so it never interrupts your flow on repeat visits.
* Improved: Engaged modal body text is now line-broken for readability.

= 0.5.2 =
* Fixed: Pre-Launch tab now re-checks status every time you switch back to it, so it no longer shows stale "not used" results after generating or removing content in other tabs.

= 0.5.1 =
* Improved: Noshi-Kanamer now appears in the sidebar (in addition to Tools), Pre-Launch tab is the default view, plugin description clarifies the Pre-Launch / Handoff focus, an activation notice guides you to the Pre-Launch tab, and Pre-Launch items show "not used" when no cleanup is required.

= 0.5.0 =
* Added: New "Site Check" tab scans all installed plugins (active and inactive) and flags ones not updated on WordPress.org in 6+ months (warning) or 1+ year (critical), with results sorted so plugins needing attention appear first. Batch scanning keeps things responsive on sites with many plugins.
* Added: A link to the Site Check tab now appears on the Plugins screen (wp-admin/plugins.php).
* Added: The Pre-Launch summary report now includes an outdated plugins count and flags inactive plugins that are also outdated, based on the Site Check scan.

= 0.4.0 =
* Added: Pre-Launch tab now checks 4 more items: DISALLOW_FILE_EDIT (file editor lock), XML-RPC, debug.log, and the default 'admin' username — each with a one-click fix or guidance to resolve it.
* Added: A one-click "Delete debug.log file" action on the Pre-Launch tab.

= 0.3.0 =
* Added: A new "Report" section on the Pre-Launch tab generates a plain-text summary of your cleanup checks (test posts, catalog pages, rewrite rules, indexing, WP_DEBUG, hidden blocks) that you can copy for client handoff.

= 0.2.4 =
* Added: A small "Leave a review" link now appears in the footer of every Noshi-Kanamer admin tab, alongside the existing review prompts.

= 0.2.3 =
* Added: The review prompt now also appears for returning users — after 7 days since activation and 3+ visits to the Noshi-Kanamer screen — even if pre-launch isn't complete yet.
* Improved: The returning-user review prompt now respects a 60-day cooldown, so it never reappears day after day.
* Fixed: Japanese translation for the returning-user review prompt (it previously showed in English even on Japanese sites).

= 0.2.2 =
* Added: Japanese (ja) localization for all admin UI — all tabs and dialogs now display in Japanese when WordPress is set to Japanese.

= 0.2.1 =
* Improved: Review prompt copy — rewritten to emphasize achievement and community value over personal ask

= 0.2.0 =
* Added: Media Manager tab (Tools > Noshi-Kanamer) — browse unused images, select, and permanently delete them before handoff
* Added: "Used In" field in the media attachment modal — shows which posts/pages reference the image, or "Unused" if none
* Added: "Unused" badge on images in the media library grid and list views
* Note: detection covers post_content, core post_meta (featured image), and ACF image/gallery fields.

= 0.1.2 =
* Confirmed compatibility with WordPress 7.0
* Updated screenshots to reflect the WordPress 7.0 admin UI

= 0.1.1 =
* Added: After completing Pre-Launch, a gentle review nudge appears once per
  day. We'd love to hear how it's working for you — even a quick note helps
  a lot!

= 0.1.0 =
* Initial release
