SoraDigital Internal Linker

Description

SoraDigital Internal Linker helps you build a healthy internal link structure without manual work on every article.

Full details and a feature tour live on the plugin homepage, and step-by-step guides are published on the SoraDigital plugin blog.

Automatic keyword linking (dynamic mode)
Define keyword rules once and matching phrases in your content become links when the page is displayed. Your article content is never modified. Rules can target posts, pages, custom post types, categories, tags, or external URLs (with an optional rel="sponsored" flag for affiliate links). Per-post keyword panels let each article declare the phrases other posts should use to link to it.

Safety limits are built in: maximum links per article, per keyword, and per target; no self-links; no links inside headings, existing links, code, or other protected elements; blacklists for words, posts, and categories; and a whitelist of post types. Matching is Unicode-aware, normalizes curly quotes and dashes from wptexturize, decodes HTML entities, and only matches within a single text node, so your markup outside inserted links stays byte-identical.

Link graph dashboard and orphan detection
See inbound and outbound internal links per article across two layers: links stored in your content and links generated dynamically by your rules. Orphan posts (no incoming internal links) are listed with relevant source articles that could link to them. Click depth from the homepage is computed with BFS.

Local relevance suggestions
A local index of your titles, headings, and content powers BM25-based suggestions in the editor, with Indonesian and English stopwords and light Indonesian affix normalization. Insert a suggested link with one click. No data ever leaves your hosting.

Permanent mode with undo
Prefer real links in your content? “Apply Inline” in the editor writes a suggested link into the exact sentence it belongs to (you see a preview first). Every permanent change is recorded in the Change Log and can be undone individually or rolled back per batch. Broken internal links get a suggested living replacement with one-click Replace, logged the same way.

Reports and tools
Equity estimate (PageRank-style) per post, a Structure tab with click-depth and top-equity charts, anchor text distribution, keyword gaps, CSV export for every report, one-click import of existing keyword rules, and WP-CLI commands (wp sdil build-index, rebuild-graph, scan-broken, verify-broken, stats, import-ilj, equity).

Compatibility
Works with Polylang (links and suggestions stay within the same language) and WooCommerce (products join auto-linking, indexing and the graph). Detects other auto-linking plugins and warns about conflicts. Purges LiteSpeed Cache, WP Rocket, or W3 Total Cache when rules change, when those plugins are active.

External Services

This plugin does not connect to any external service.

Screenshots

Installation

  1. Upload the plugin folder to /wp-content/plugins/, or install it through the WordPress plugins screen.
  2. Activate the plugin.
  3. Go to Internal Linker in the admin menu to add keyword rules, or set per-post keywords in the editor sidebar.
  4. Open Link Graph and click Build Index, then Rebuild Graph.

FAQ

Where can I find guides and documentation?

The plugin homepage has the full feature tour, and the SoraDigital plugin blog publishes step-by-step guides, including how to enable the optional AI mode with your own API key.

Does the plugin modify my article content?

Dynamic mode (the default) never touches your stored content: links are generated when a page is displayed. Permanent mode writes real links into content only when you explicitly click “Apply Inline” or “Replace” — and every such change is logged and can be undone.

Does it send data to external servers?

No. There are no external calls, no tracking, and no trialware.

Which languages are supported for suggestions?

Indonesian and English stopwords are included, with light normalization for common Indonesian affixes.

How long does the first build take on a large site?

It depends on post count, rule count and hosting speed. Small sites finish in minutes. On a 1,500-post site with 1,200 keyword rules on shared hosting, a full graph rebuild can take considerably longer. The admin buttons process small batches per request and are usually fastest on shared hosting; the WP-CLI commands (wp sdil build-index, wp sdil rebuild-graph) print progress per batch, keep a flat memory profile so low-limit hosts don’t kill them, and are safe to leave running unattended or from cron. Day-to-day edits update the index and graph incrementally, so full rebuilds are a one-time cost.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“SoraDigital Internal Linker” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.6.1

  • Admin notices are now fully scoped: the conflicting-auto-linker warning and its confirmation message only appear on this plugin’s own screens and the Plugins screen, never across the whole dashboard.

1.6.0

  • Link Graph page performance: only the active tab renders server-side; the other six tabs load on first click via AJAX. On a 1,500-post site this cuts the initial page render from all seven reports to one.
  • Multisite support: network activation creates the plugin tables on every site, new sites in a network-active install get tables automatically, and uninstall cleans up per site. Settings stay per site.
  • WPML support: post language is now read from WPML as well as Polylang, so suggestions stay within the same language on WPML sites.

1.5.3

  • AI mode prompt reverted to the original wording: a two-rater audit of the stricter 1.5.2 prompt (267 suggestions) showed no proven gain over the original — the swapped-in suggestions scored neutral with one rater and negative with the other, and the headline consensus difference was rater drift on unchanged items. The prompt-revision marker in the verdict cache key is kept, so upgrading re-judges instead of reusing verdicts from the other prompt.

1.5.2

  • AI mode prompt tuning (from a 267-suggestion two-rater audit): the keep/reject criteria now spell out the common failure shapes — generic anchor to a specific subtopic (or the reverse), verb/adjective fragments, a different brand than the target, anchor words used in a different sense, and passing mentions — with worked keep/reject examples, and an explicit “when unsure, drop it” bias toward precision. Cached verdicts are keyed to the prompt revision, so upgrading re-judges instead of reusing old verdicts.

1.5.1

  • AI mode robustness: larger reply budget for reasoning models, answer parsing takes the final JSON list, and providers that return text in a reasoning field are handled.

1.5.0

  • Optional AI mode for suggestions (off by default): with your own API key for any OpenAI-compatible chat endpoint (OpenAI, OpenRouter, Groq, Gemini, …), the top candidates are re-ranked by the model and only the ones it judges relevant are shown. One request per suggestion list, verdicts cached per data version, and any error falls back to the built-in ranking. Settings: endpoint, API key, model, timeout.

1.4.33

  • Suggestion anchor quality gates (from a 293-suggestion rating audit): anchors made only of title-pattern words (“cara memulai usaha”, “peluang usaha”) are rejected, anchors naming a brand the target title never mentions are rejected, truncated proper names (“Meningkatkan Daya” from “Daya Ingat”) are rejected, and anchors never start with punctuation or end on a dangling word (“… paling”). Editor keyword phrases are exempt.

1.4.32

  • Crash fix: invalid UTF-8 bytes in old post content (or anchors corrupted by byte-based trimming) could make the suggestion engine fatal with a TypeError on PHP 8 (preg_split with /u returns false on bad bytes). All word-splitting now goes through a guarded helper, and anchors that are not valid UTF-8 are skipped.

1.4.31

  • Render cache invalidation fix: the content/ACF render cache keys now include the data version, so publishing a post or running a build/rebuild refreshes dynamic links site-wide immediately (previously new links could stay invisible for up to a day until the render transients expired). Programmatic keyword changes (WP-CLI, imports) now also bump the rules version.

1.4.30

  • Staged, resumable builds: index/graph build progress is now saved after every batch. If a build is interrupted (closed tab, host kill, timeout), the admin buttons become “Resume (X/Y)” with a Start over option, and WP-CLI gains –staged (one 200-post stage per run, cron-friendly) and –restart. Full CLI runs also resume from saved progress.

1.4.29

  • Batch priming now uses the ID-based _prime_post_caches() and skips postmeta (page-builder meta can be huge and batch workers do not read it per post) — fixes PHP warnings from 1.4.28 and keeps the memory plateau at the proven-safe level while retaining the speed gain.

1.4.28

  • Faster bulk builds with the same flat memory profile: each batch primes post/meta/term caches in a few bulk queries, and graph rows are written with one multi-row INSERT per post instead of one INSERT per link.
  • Deleted posts are now removed from the index, graph and broken-link tables immediately, and the suggestion corpus only counts published posts (stale rows for deleted posts could skew scoring).

1.4.27

  • Plugin Check clean again: View-link output in report tables is passed through wp_kses_post (the helper already escapes internally; this satisfies the output-escaping check).

1.4.26

  • WP-CLI bulk commands keep the proven flat-memory profile (object-cache additions suspended, small 25-post batches) after the 1.4.25 adaptive guard was shown not to protect on hosts that kill on physical memory. Large-site hints now note that the admin buttons are usually fastest on shared hosting.

1.4.25

  • WP-CLI bulk commands are adaptive: the object cache stays on for speed and cache additions are suspended only if memory usage crosses 70% of the PHP limit, so large-site runs stay alive on shared hosting without the full no-cache slowdown. CLI batch size is now 50 posts.
  • Duration hints: WP-CLI bulk commands announce the post count (and warn on large sites) before starting; the Link Graph screen notes that the first full build on 1,000+ post sites can take a while and points to WP-CLI/cron; new readme FAQ entry.

1.4.24

  • WP-CLI: hyphenated subcommands (build-index, rebuild-graph, scan-broken, verify-broken, import-ilj) now work as documented — previously only the underscore forms were registered.
  • WP-CLI bulk commands suspend object-cache additions so long runs keep a flat memory profile on shared hosting.

1.4.23

  • Hardening: suggested-source edit links on the Orphan Posts tab fall back to the standard edit URL when the capability-filtered link is unavailable.

1.4.22

  • Report rows now pair every edit-post link with a View link to the live page (Orphan Posts, Anchor Texts drill-down, Keyword Gaps examples, Broken Links, Change Log). Suggested link sources on the Orphan Posts tab are links too (edit + view) instead of plain text.

1.4.21

  • Fix: the keyword-migration notice now disappears after importing via WP-CLI too — the dismissed flag is set inside the import itself, not only by the admin buttons.

1.4.20

  • When another auto-linking plugin is active alongside SoraDigital Internal Linker, the conflict warning (and the post-import success notice) now offers a one-click “Deactivate the other auto-linking plugin” button with a confirmation, so migrations finish cleanly without duplicate links.

1.4.19

  • WP-CLI batch commands (build-index, rebuild-graph, scan-broken, verify-broken) now flush caches between batches, so long runs no longer die out-of-memory on shared hosting.
  • Orphan Posts report: suggested sources and the auto-fix recommendation now load lazily per row via AJAX, so Link Graph pagination renders immediately instead of scoring 25 orphans first.

1.4.18

  • Performance: the decoded content index is now loaded once per request and shared by suggestions, orphan auto-fix and broken-link replacements (previously reloaded for every scored post). Broken-link replacement suggestions are also cached per data version, so report pagination no longer recomputes them on every load.

1.4.17

  • Orphan posts and Broken links stat cards are now red (were orange) so problems stand out at a glance.

1.4.16

  • Mobile: fixed the remaining page overflow on the main screens — the tab layout now stretches to the screen width instead of sizing to its widest content, so cards fit and only tables scroll sideways inside their wrapper.

1.4.15

  • Performance: Link Graph reports (stats, equity, anchor distribution, orphan auto-fix) are now cached in transients keyed by a data version that bumps whenever the graph or index changes. Page flips on large sites no longer recompute everything on every load.

1.4.14

  • Mobile: fixed page-wide horizontal overflow on the Keyword Rules and Settings screens — form fields now size to the card width (width:100% + border-box) instead of their fixed desktop width, so nothing is cut off and tables scroll inside their wrapper.

1.4.13

  • Mobile: the search button no longer overflows the card — the small-screen media query now sits after the base rules so its overrides (flexible search input, stacked tools row) actually win the cascade.

1.4.12

  • Settings: excluded posts and categories are now picked by name instead of typing IDs — excluded posts get a search-by-title picker with removable chips, excluded categories a checkbox list. Stored format unchanged, existing exclusions keep working.

1.4.11

  • Mobile tables fixed properly: WordPress core’s small-screen list-table stacking is now neutralized inside the plugin’s scroll wrapper, so every report table (All Posts, Broken Links, Orphan Posts, Anchor Texts, Keyword Gaps, Change Log, rules) keeps real columns and scrolls horizontally instead of stacking values without labels.

1.4.10

  • Fixed the missing Broken Links icon: it used a non-existent dashicon class (admin-unlink) and now uses editor-unlink, in both the tab and the stat card.

1.4.9

  • Mobile-friendly admin: all report tables now scroll horizontally on small screens instead of collapsing into stacked fragments, and the search and pagination rows stack cleanly.

1.4.8

  • Auto-links are no longer inserted inside table-of-contents containers (any TOC plugin or block, detected via class/id), so TOC entries stay pure navigation.

1.4.7

  • The migration recommendation notice now dismisses itself after a successful keyword import (both the notice button and the Tools tab importer), instead of reappearing on every visit.

1.4.6

  • Batch robustness: Build Index and Rebuild Graph now skip a single failing post instead of stalling the whole run, and the browser retries a failed batch request up to 3 times before reporting an error with its offset.

1.4.5

  • Orphan auto-fix: each orphan post now shows a per-post recommendation (best source post + anchor text) with an Apply button. Applying writes the permanent link through the existing change log (undoable); nothing is applied globally without a click.

1.4.4

  • Fix: after “Apply Inline” succeeds the editor now reloads, so saving from the editor can no longer overwrite the applied link with stale content. The confirmation dialog now also labels the anchor text explicitly.

1.4.3

  • Renamed the first submenu item to “Settings” (it opens the main keyword rules / settings / tools page) instead of repeating the parent menu name.

1.4.2

  • Code cleanup for the WordPress.org submission: removed unused helper methods and internal notes; competitor brand names removed from user-facing text.

1.4.1

  • Readme refresh for the WordPress.org listing (permanent mode, reports, WooCommerce and WP-CLI now documented).

1.4.0

  • Permanent mode: “Apply Inline” in the editor meta box writes a real link into post content (with a sentence preview before applying). Every write is recorded in the new Change Log tab and can be undone individually or rolled back per batch.
  • Broken links get a suggested replacement (best-matching living post by anchor + URL slug terms) with one-click Replace, logged and undoable like any permanent change.
  • Equity estimate: PageRank-style score per post from the internal link graph, shown as an All Posts column and a top-10 chart.
  • New Structure tab: posts-by-click-depth chart plus top equity posts (server-rendered SVG, no JS libraries).
  • CSV export for every report: orphans, all posts (incl. equity), anchors, broken links, keyword gaps, change log.
  • WooCommerce: when WooCommerce is active, products join auto-linking, indexing and the graph (toggle in Settings; product categories/tags work as targets).
  • WP-CLI: wp sdil build-index|rebuild-graph|scan-broken|verify-broken|stats|import-ilj|equity.

1.3.7

  • Link Graph search moved from the page top into each tab, on the same row as pagination (pagination left, search right).

1.3.6

  • Migration recommendation: when another keyword-based auto-linking plugin is active (or its keyword data remains), SDIL screens and the Plugins page show a one-click import notice with keyword/post counts and a duplicate-link warning. Dismissible.
  • Search box on the Link Graph page filters every tab (posts, anchors, gaps, broken links) by title/anchor/URL.

1.3.5

  • Broken Links: only HTTP 404/410 count as broken (401/403 auth blocks and 5xx stay “unknown”), and the same target is recorded once per source post.

1.3.4

  • Link Graph tabs moved to the top so report tables use the full width.

1.3.3

  • New Broken Internal Links report on the Link Graph page: scan collects internal URLs that no longer match any published post, then an HTTP verification pass keeps only the real failures (working archives and files are dropped automatically). Batched scan and verify, per-row dismiss, broken count in the stat cards.

1.3.2

  • Window anchors must share at least one surface word with the target title; purely stemmed matches no longer qualify.
  • Window anchors containing a copula or auxiliary (“adalah”, “tidak”, “merupakan”, …) are rejected as clause fragments.
  • Twin-title demotion: targets whose title is near-identical to the source title (Jaccard >= 0.7) are demoted to reduce cannibalization between series-template articles.

1.3.1

  • Generic-pair penalty: source/target pairs that only share common low-IDF words are demoted, so vocabulary coincidences stop outranking real topical matches.
  • Refill: when the main pool leaves a source short of the requested number of suggestions, the best below-floor candidates top it up under the same anchor gate and dedup rules (the absolute minimum-score setting still applies as a hard floor).

1.3.0

  • New setting “Minimum suggestion score”: an absolute relevance floor on top of the built-in relative floor (0 disables it; larger sites often use 30-40).
  • One anchor text per source: the same phrase is never suggested twice for different targets on one page.
  • The suggestion export also caps any single anchor text at 3 appearances across the export.
  • More function words (“secara”, “bukan”, “sendiri”) can no longer start or end a window anchor.
  • Citation lines and report titles are excluded from anchor contexts.
  • A window anchor naming a brand the target title never mentions is skipped as a likely wrong-brand guess.

1.2.9

  • Four-tier suggestion ranking: editor keywords, then specific title phrases, then generic title phrases, then word windows. A clean generic phrase now stays above sentence fragments cut by the window.
  • Window quality gate: windows carrying brackets, quotes, a colon or comma, a digit, or a question-word opening are skipped in favor of the next clean window.
  • Number/date fragments (“240 juta”, “Indonesia 2026”) are no longer used as title-phrase anchors.
  • Cleaner suggestion contexts: citations, methodology notes, captions, list introductions, and title-like lines are excluded from anchor contexts.
  • Stricter relevance floor: candidates under 60% of the top score are dropped.
  • Suggestion export caps any single target at 3 appearances across the export.

1.2.8

  • Phrase specificity: a verbatim title phrase made only of common words (“media sosial”, “Google Ads”) no longer outranks more specific anchors; it ranks with window anchors instead.
  • Format-phrase blacklist: title-template fragments such as “panduan lengkap”, “cara kerjanya”, “tips sukses”, and “3 fakta” are never used as anchors.
  • Brand guard: when a target title names a platform or brand, anchors from sentences about a different brand are rejected.
  • Fixed phrase matching across hyphens: “SEO Off” no longer matches inside “SEO off-page”.

1.2.7

  • Phrase-first suggestions: candidates are now ranked by anchor kind first (editor keyword phrase, then verbatim title phrase, then word window) and by relevance score within the same kind, so suggestions with a guaranteed natural anchor always surface first.
  • Editor keyword phrases are matched longest-first, so “kopi tubruk” wins over “kopi”.

1.2.6

  • Suggestions now prefer a key phrase from the target title found verbatim in the source body (2-4 whole words, e.g. “thin content”, “Google Search Console”) over a word-window cut around a single term.
  • Hard anchor edge rule: an anchor never starts or ends on a function word. Window edges are trimmed, and when no clean phrase remains the suggestion is not shown.

1.2.5

  • Anchor phrases are tidier: the 2-5 word window around the rarest matched title term is now chosen to carry the most title terms and to avoid starting or ending on a function word, so anchors read like natural phrases.
  • Hub penalty in suggestions: pages that already collect many internal links are gently demoted (by stored-link indegree), spreading suggestions toward less-linked pages.

1.2.4

  • Suggestions now carry a real anchor phrase: a 2-5 word phrase that actually appears in the source body (editor keyword phrases first, otherwise a window around the rarest matched title term). Suggestions with no anchorable phrase are no longer shown.
  • Anchor/context sentences now exclude headings, reference lines with URLs, captions and bylines.
  • Export Suggestions uses the same anchor + sentence as the admin suggestions, so exported ratings measure the real output.

1.2.3

  • Suggestions: anchorability boost is now IDF-weighted, so a rare title term found in the source counts far more than generic terms.
  • Index cleaning now also drops “Baca:” and “Lihat juga:” read-also lines (rebuild the index to apply).
  • Export Suggestions: context sentences are picked with IDF-weighted scoring and skip read-also lines, tables of contents, reference lists and over-long blocks.

1.2.2

  • Fixed: JSON exports (rules and suggestions) now download as clean JSON files instead of being embedded in the admin page HTML.

1.2.1

  • Migration tool: import keyword definitions left by another auto-linking plugin (Tools tab, shown when such data is detected). Duplicates are skipped; per-post blacklist words are reported but not migrated.

1.2.0

  • Anchor Texts report on the Link Graph page: frequency per anchor with click-through to the posts using it.
  • Keyword Gaps report: keyword mentions that have no link to their target yet.
  • Custom fields (ACF): configured field names are indexed and auto-linked when ACF renders them.
  • Minimum role setting: choose which role can open the Internal Linker screens (settings saving stays Administrator-only).
  • All Posts table: post titles link to the editor, plus Edit/View actions.
  • SDIL screens now hide other plugins’ admin notices (SDIL’s own notices still show).

1.1.2

  • New Tools export: download the top-3 suggestions (with a context sentence for each) for a sample of published posts as JSON, for offline quality review.

1.1.1

  • Suggestions are now ranked by anchorability: candidates whose title terms actually appear in the source post are boosted, and those with no anchorable phrase are demoted.

1.1.0

  • Suggestion quality: the index now ignores tables, table-of-contents blocks, related-posts widgets, and “Baca juga” lines, so matching reflects the article body.
  • Suggestions never repeat a target the post already links to.
  • The front page and the privacy policy page are excluded from the index (never suggested, never receive suggestions).
  • Weak matches under half the top score are dropped instead of always filling the list.

1.0.9

  • Pagination (25 rows per page, navigation above and below) on the Keyword Rules table, the Orphan Posts table, and the All Posts table, so long lists no longer stretch the page.

1.0.8

  • Fix Plugin Check late-escaping error on the Link Graph orphan table (wrap suggestion titles in wp_kses_post).

1.0.7

  • Main admin page reorganized into vertical tabs (Keyword Rules, Settings, Tools) with icons; active tab remembered via URL hash; without JavaScript all sections stay visible. Field names, nonces, and save behavior unchanged.

1.0.6

  • Admin menu label shortened to “SD Internal Linker”.

1.0.5

  • Premium admin UI: gradient header with version badge, card-based sections, icon stat cards on the Link Graph page, styled suggestion box. All assets bundled locally (assets/admin.css), no external requests.

1.0.4

  • Admin UI polish: labeled form tables with descriptions for Keyword Rules and Settings, summary stat cards and a proper orphan table on the Link Graph page.

1.0.3

  • Final Plugin Check polish: justified ignores for the remaining custom-table delete and the LiteSpeed Cache purge hook.

1.0.2

  • Remaining Plugin Check warnings reviewed: input sanitization via absint/intval, justified ignores for custom-table queries.

1.0.1

  • Faster cold rendering and graph rebuilds (keyword prefilter, normalization cache, ASCII fast path, cached slug map).
  • Suggestion scoring now boosts taxonomy matches only for top BM25 candidates and queries terms by weight.
  • Link graph marks posts with shortcodes or blocks as estimates.
  • Coding standards fixes from Plugin Check (escaping, wp_parse_url, translators comments, input unslashing).

1.0.0

  • Initial release: dynamic keyword auto-linking, two-layer link graph with orphan detection, BM25 relevance suggestions, keyword import from titles and SEO plugin focus keywords, JSON export/import of rules.