=== Jeet Sanwal Commercial Link Review ===
Contributors: jeetsanwal
Tags: links, sponsored, content, editorial, review
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Review saved links to domains you select and their sponsored or nofollow attributes. A private, bounded report without fetching URLs or editing content.

== Description ==

A quick rel-ationship check for the domains you actually work with.

Choose merchant or partner domains, review a small batch of saved posts/pages, and open the native editor when an observation needs attention. Jeet Sanwal Commercial Link Review does not infer which links are paid and does not add attributes automatically.

* Exact-host and subdomain-boundary matching for 1–20 user-selected ASCII/Punycode hostnames.
* Saved body and excerpt HTML, including saved text/image ALT labels.
* Recognizes sponsored or nofollow in comma- or whitespace-separated rel values, case-insensitively.
* A missing value prompts a relationship/live-output review, not an automatic policy failure.
* Private report, bounded candidate pagination, exact-ID review, literal title filtering and current-review CSV.
* With optional installation reports off, no HTTP requests, rendered shortcodes/blocks, content changes, external accounts or retained scan database.

== Installation ==

1. Install this individual ZIP through Plugins > Add New > Upload Plugin and activate it.
2. Open Tools > Commercial links with administrator settings access.
3. Enter 1–20 hostnames such as merchant.example, separated by spaces or commas. Use hostnames, not full URLs or wildcard patterns.
4. Select Review saved links. Read the current candidate batch and its coverage notes; use Next batch even if the current filtered result is empty.
5. Inspect a permitted post/page ID for a closer check. Use the native editor link for any actual content change.
6. Use CSV of current review to download a fresh, permission-checked working copy. Recheck after content or output behavior changes.

== Scope and limits ==

This reads native saved post/page body and excerpt HTML for published, private, draft, pending and scheduled items that the current administrator can edit. It checks access before reading source fields or applying a title filter. Each batch uses 20 unfiltered candidate IDs plus one lookahead ID; title/state filtering applies only within that permitted batch. No global private-text search or full-site matching count is provided. Pagination stops at 1,000 batches; exact-ID inspection is available separately. Custom post types, revisions, trashed content, menus, comments, builder metadata and separately stored template content are outside scope.

The combined saved body/excerpt limit is 250 KiB per item. Markup/element budgets are 5,000, and at most 500 anchor elements are considered across both fields. The first 100 selected-domain links per item and 200 current-report link rows can be shown/exported. Coverage is marked incomplete when a limit or missing DOM support prevents a complete review. Filters may omit rows before the final report cap. A link destination longer than 4,096 bytes, a non-absolute HTTP(S) destination, an ambiguous backslash URL or a URL containing control/space bytes is not checked. Inert script/style/template/noscript/textarea content is excluded. Labels are shortened to 120 characters and displayed rel text to 250 characters.

A selected host matches itself and its subdomains with a dot boundary. merchant.example does not match notmerchant.example or merchant.example.other. A selected www host does not automatically cover its parent host. Use ASCII/Punycode for international domains. Hostnames must include a dot; schemes, paths, ports, wildcard inputs and raw IP addresses are rejected. The plugin does not follow redirect networks or discover merchant relationships; enter the redirect host separately when appropriate.

Saved sponsored or nofollow qualifies the observation; sponsored is the more specific value for paid placements. Other saved attributes or runtime-added values require human review. This is not a crawler, automated link repair, ranking guarantee, advertising-disclosure check, legal opinion, security scan or proof that a live page complies with any policy. The page's actual output and the relationship with the destination remain your responsibility.

With optional installation reports off, pHP DOM is needed for parsing; an explicit coverage note appears when it is unavailable. No theme hook, public badge, credit, ad, paid tier, telemetry or automatic update service is included.

== Privacy and storage ==

Access requires manage_options and native edit_post permission for each inspected item. Denied item details are not included in HTML or CSV. Exports rebuild the bounded report after checking the current user's permission and nonce; they do not trust an older browser snapshot.

The plugin creates no options, scan transients, records or stored report files. Domain/title filters can remain in browser URLs/history or normal server operational logs. The report can contain authorized private titles and complete saved URLs, including query strings; keep downloaded CSV working copies private and do not share secret-bearing links. Browser/server caches and downloaded copies are outside plugin retention. Deactivation or uninstall has no plugin-created persistent records to remove.

== Frequently Asked Questions ==

= Does it visit linked sites? =
No. Matching and rel observations come from saved HTML only. Relative, dynamic, redirected and externally injected output needs a separate live-page review.

= Does every external link need sponsored or nofollow? =
No. Choose domains you want to review, then decide whether each relationship calls for an attribute. Ordinary editorial links need not be marked merely because they are external.

= Is nofollow treated as a failure? =
No. Saved sponsored or nofollow is recognized. The report explains that sponsored is more specific for paid placements without treating nofollow as absent.

= Does an empty batch prove the site is clear? =
No. Filters apply inside the current candidate batch, and coverage limits are explicit. Continue through Next or inspect a specific ID.

= Is everything free? =
Yes. All included features are free and ad-free under GPL-2.0-or-later, with no signup or paid tier.

== Updating an existing installation ==

Download the latest individual ZIP from https://jeetsanwal.in/tools/jeet-commercial-link-review . Back up the site and try the replacement on staging. Use Plugins > Add New > Upload Plugin and choose Replace current with uploaded. Do not uninstall as an update step. Confirm the displayed version and review a known saved item. Updates are manual; Update URI protects against unrelated directory replacement but is not an update service. A previous ZIP restores plugin files; a site backup is needed when data restoration is required for another change.

== 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.1 =
* Updated the product display name to Jeet Sanwal Commercial Link Review 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.0 =
* Initial bounded domain/rel review with permission-first saved-content inspection and current-review CSV export.

Created by Jeet Sanwal — https://jeetsanwal.in
Support: https://jeetsanwal.in/plugin-support
