=== Mihenk Link – Smart Internal Linking & Orphan Page Finder ===
Contributors: mihenk
Tags: internal linking, orphan pages, link suggestions, broken links, SEO
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
Stable tag: 2.1.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html

Find orphan pages, review link health, and add internal links from your dashboard or the block editor.

== Description ==

Mihenk Link scans published posts and pages to show where your internal links go and which pages receive none. Open a suggestion to read the source sentence, see the destination, and choose the words to link. Approving the suggestion saves a standard HTML link in the original content.

* **Link health.** See incoming, outgoing, and external links, a site health score when coverage supports it, and a count of confirmed broken internal links.
* **Internal PageRank.** See an editorial score for indexed content based on the scanned internal link graph.
* **Orphan pages.** Find published posts or pages with zero detected incoming links in the scanned content.
* **Local suggestions.** Review candidate links based on content, titles, taxonomy terms, and available SEO focus keywords. The matching engine includes English and Turkish stop-word lists.
* **Block editor.** Open the Mihenk Link sidebar and select a paragraph to review matching destinations. Add a link to the draft, use the editor’s Undo if needed, and save with WordPress.
* **Editorial control.** Adjust the anchor text, select **Approve** or **Ignore**, or use **Undo** in Overview. If the source has changed in a way that makes an edit unsafe, refresh and review it again.
* **Background scanning.** Pause or resume a scan. Later scans reuse the analysis of unchanged content.
* **Guided setup.** The admin screen includes a five-step walkthrough, searchable help, light and dark themes, and English and Turkish text.

Published links use WordPress's normal rendering. Mihenk Link adds no public-facing scripts or styles. It does its indexing and suggestion work through the admin and background jobs.

A separately installed Pro add-on provides a visual link map, preview and recovery for bulk URL edits, anchor conflict analysis, Search Console CSV opportunities, WooCommerce catalog prioritization, and optional API-assisted suggestions. The workflow above is available in Mihenk Link Free without an account or API key.

== Installation ==

1. From your WordPress dashboard, go to **Plugins > Add New Plugin > Upload Plugin** and select the Mihenk Link Free ZIP.
2. Activate **Mihenk Link** and open it in the admin menu as an administrator.
3. In **Overview**, select **Scan site**. After the scan, open **Suggestions** to review links or **Orphan pages** to see pages with no detected incoming links.

PHP's DOM extension is needed to inspect and safely edit saved HTML. The database user needs permission to create and upgrade the plugin's three tables. On multisite, open Mihenk Link in each site's dashboard to manage that site's scan.

== Frequently Asked Questions ==

= What does the scanner count as an internal link? =

Reports cover links found in the saved editorial content within the scan scope. Theme menus, dynamically rendered blocks, and links inserted by display-time filters fall outside that scope. The report indicates limited coverage when the scanner can only partly read a static area. A broken URL is counted after an eligible check returns HTTP 404.

= Does it work with the block editor and page builders? =

Mihenk Link can insert links into compatible saved block editor paragraphs and classic content. In the block editor, open the **Mihenk Link** sidebar and select a compatible paragraph. Draft suggestions are computed on your site and are kept out of the site-wide suggestion queue. It skips protected areas such as headings, existing links, and shortcodes. Recognized static text in Elementor, Bricks, and WPBakery can contribute to analysis when available. Builder-managed fields that cannot be edited safely are skipped for insertion. The matcher can use available focus keywords from Yoast SEO, Rank Math, and All in One SEO.

= What happens when I deactivate or delete the plugin? =

Links saved in published content stay in place. Deactivation stops scheduled work. Uninstall keeps the scan index, suggestions, history, and settings by default so they are available after reinstallation. To delete them on uninstall, enable **Delete plugin data on uninstall** under **Settings & AI > License & data**, save, and then delete Mihenk Link from the Plugins screen. If you installed the Pro add-on, remove it first in a separate action. On multisite this choice applies to each site separately.

= Does the free plugin contact an external service? =

The free plugin performs its matching on your site. For broken-link checks, it can make anonymous HTTP requests to eligible public URLs on the same site, without sending login cookies. External links can be counted without requesting their destination. The free plugin sends no usage analytics and does not use AI APIs.

== Privacy ==

Mihenk Link stores a local index of scanned content, link information, suggestion excerpts, preferences, and activity history in the WordPress database. To support undo, the journal can keep the changed HTML fragment before and after the edit, nearby context, content hashes, and the WordPress user ID responsible for the change. Review the data retention setting before deleting the plugin. The separate Pro add-on documents its optional external providers in its own readme.

= What does the PageRank score measure? =

PageRank reflects the incoming link structure of the site's last completed index. It helps you compare content within that scan. It is independent of Google ranking data.

== Source and build ==

The `source/` directory in this plugin contains the readable TypeScript and CSS for the Free administration and block-editor bundles, the locked npm dependencies, and the build script. See `source/README.md` for reproducible build commands. WordPress supplies React and the WordPress localization runtime.

== Changelog ==

= 2.1.1 =
* Fixes activation on the WordPress SQLite integration and preserves existing indexes on upgrade.
* Uses WordPress language packs for PHP translations. Adds clearer health, orphan and index coverage indicators in both themes.

= 2.1.0 =
* Introduces an edge-to-edge dashboard with light and dark themes, quick search, and grouped settings.
* Adds a five-step walkthrough, searchable help, and previews of common actions.

= 2.0.0 =
* Adds the block editor sidebar with local suggestions and native Undo.
* Reports internal PageRank in link health and upgrades the existing site index.
* Improves site-specific multisite provisioning and keeps previously saved links and history.

= 1.1.1 =
* Includes the readable Free administration source and reproducible build instructions.

= 1.1.0 =
* Refreshes the administration workspace and adds settings search.
* Reports the current scan scope after archived content is removed from the index.

= 1.0.0 =
* First release with site scans, link health, orphan reports, local suggestions, and editable anchor previews.
* Adds directly saved HTML links, activity history, and undo.
* Includes the English and Turkish admin experience, guided setup, and a data retention preference.
