=== Jeet Sanwal Shortcode Leftover Finder ===
Contributors: jeetsanwal
Tags: shortcodes, content audit, cleanup, review
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Find saved shortcode-like tags that are not registered in the current admin request. Review their locations and export a small CSV without executing or deleting content.

== Description ==

The old plugin left. Its square brackets did not get the memo.

Review saved WordPress post/page body and excerpt text for shortcode-like tags. See each tag’s opening occurrence count and whether it is registered in the current administrator request. Open the native editor when you decide a change is needed.

* Registered-here and not-registered-here observations for saved tag candidates.
* Tag, body/excerpt location and opening occurrence count without displaying attributes.
* Nested tag review and escaped double-bracket literal omission within stated parser limits.
* Title, tag text and state filters inside each permitted candidate batch.
* One content ID or 20-candidate batches with protected current-review CSV.
* No shortcode execution, content removal, saved reports, external requests or frontend assets.

This is a review of saved body/excerpt text against the registry available in this administrator request. Themes or plugins can register tags only on frontend requests, and ordinary bracketed words may resemble shortcodes. Neither state proves a tag is broken, safe or useful. Registered callbacks are never executed. Separate saved text segments are not joined across HTML elements. Saved HTML attributes, code/pre/script/style text, comments, custom fields, builder metadata, menus and rendered output are outside scope. Lone closing tags, malformed syntax and unsupported nesting may not be represented.

== Scope and limits ==

A request considers 20 native post/page candidate IDs plus one lookahead; filters run after edit access and inside that batch. Continue with Next even after empty filtered results. Up to 1,000 batches are addressable; an explicit content ID can review another item. Each item is limited to 500 KB of combined saved body/excerpt and 5,000 parsed elements per field. Per field, discovery considers at most 500 openings and 100 distinct names of up to 64 bytes, then at most 500 regex matches and six nested recursion levels. At most 100 observation rows per item and 200 per request are retained. Hitting a work/parser/display limit shows incomplete coverage.

Only native posts/pages in publish/private/draft/pending/future states are candidates. Titles and source fields are read only after per-object edit access. There is no entire-catalog matching total. Offset batches can shift after live insertions/deletions. Invalid HTML/UTF-8 or unavailable DOM parsing may produce incomplete observations. Plugin PHP syntax compatibility does not replace the active WordPress version's own requirements.

== Installation ==

1. Upload this individual plugin ZIP using Plugins > Add New > Upload Plugin and activate it.
2. Open Tools > Shortcode leftovers.
3. Review the current candidate batch, or enter one post/page ID.
4. Read scope and incomplete-coverage notices. Use the native editor if you decide to change content.
5. Optionally export the current review CSV. Continue through Next even after empty filtered batches.

== Frequently Asked Questions ==

= Does “not registered here” mean I can remove the tag? =
No. Registration can depend on frontend context, another integration or the active theme. Ordinary bracketed text can also resemble a shortcode. Review the live use before editing anything.

= Will registered shortcodes run during review? =
No. The plugin checks registration and saved syntax only. It does not call shortcode callbacks or render their output.

= Are shortcode attributes copied into the CSV? =
No. Rows contain the tag, field, count and observation. Attribute values and enclosed content are not displayed or exported.

= Does it find every possible shortcode? =
No. It uses a bounded saved-text parser, skips code/literal examples and excludes dynamic or unsupported content. Read incomplete-coverage notices and inspect another content ID when needed.

= Why is a filtered batch empty while Next is available? =
Filters apply to permitted records in the current candidate batch. Continue through Next or enter one content ID; this is not a whole-library matching search.

= Is the whole plugin free? =
Yes. All features are GPL-2.0-or-later, free and ad-free. Later versions are installed manually from an individual ZIP.

== Privacy ==

With optional installation reports off, administrator-level settings access and edit permission for the individual post/page are required. No reports or settings are stored. CSV is freshly generated for the current review and can change after concurrent edits. Private exports follow your own data-handling rules. No calls, email, tracking, signup, ads, paid tier or public credit.

== Updating an existing installation ==

Download this plugin's individual ZIP from https://jeetsanwal.in/tools/jeet-shortcode-leftover-finder . Make a normal site backup and try the update on staging first. In WordPress, use Plugins > Add New > Upload Plugin and choose Replace current with uploaded when WordPress detects the existing installation. Keep the same plugin folder; do not uninstall/delete the plugin as an update step. Confirm the displayed version is 1.0.4, then reopen the plugin's normal screen and check one representative workflow described above. Clear relevant page caches if public output remains stale.

Updates are installed manually; a matching Update URI prevents unrelated directory plugins from replacing this package, but does not provide an update service. If replacement fails, check hosting upload limits and write permissions before retrying. To roll back, replace the plugin files with your saved previous ZIP; file replacement alone does not restore database records or deleted files. Use your site backup when data restoration is needed. Read this plugin's retention notes before deliberately uninstalling it.

Author and support: Jeet Sanwal — https://jeetsanwal.in/contact

== Optional installation reports ==

Installation reports are optional and OFF by default. Installing, activating, or using this product does not submit a report. Administrators can choose consent separately for each product under Settings > Jeet Sanwal Reports. All product features remain available with reporting off.

After explicit consent, the client sends the website URL, a random installation ID, product/WordPress/PHP versions, reported state, and an observed activation timestamp when available to https://jeetsanwal.in/api/v1/plugin-reports. While that product is active and consent remains enabled, a daily WordPress cron check-in can update its last-known status. WP-Cron depends on site traffic and hosting; it is not a continuous monitor.

Pause stops future reports without deleting records already shared. Forget requests deletion of the remote installation entry and history, retrying deletion if delivery fails. Records automatically expire after 90 days without a check-in. The plugin does not send page content, files, database exports, administrator email addresses, or raw IP addresses. Server rate limiting keeps a keyed IP hash for up to 24 hours; ordinary hosting access logs are governed separately by the privacy policy.

Review the fields and consent before enabling reporting. Read https://jeetsanwal.in/privacy for the reporting endpoint, retention, and deletion details. Reporting does not authorize remote control, automatic updates, or access to the website.

== Changelog ==

= 1.0.4 =
* Updated the product display name to Jeet Sanwal Shortcode Leftover Finder and retained the Jeet Sanwal author website.
* Added voluntary installation/status reports with per-product consent OFF by default, pause/forget controls, and documented fields and retention.
* Preserved existing identifiers, stored data, permissions, and earlier release history.


= 1.0.3 =
* Hardened CSV text-cell protection for formula-like values after Unicode spacing/format prefixes and invalid UTF-8 input.


= 1.0.2 =
* Added a complete US English installation and update guide; kept documented permissions, limits and manual rollback steps.


= 1.0.1 =
* Clarified the manual replacement, verification and rollback workflow, with direct author support details.
* Rechecked package metadata, source/archive consistency and existing isolated regressions.


= 1.0.0 =
* Initial release: bounded saved-content observations, explicit uncertainty and protected CSV.

Created by Jeet Sanwal — https://jeetsanwal.in
