=== RankTwin ===
Contributors: wajahatabbas51214
Tags: seo, ai, llms.txt, schema, sitemap
Requires at least: 5.6
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.1.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

SEO for Google, visibility for AI: live keyword score, meta, schema, sitemap, llms.txt and AI crawler controls in one free plugin.

== Description ==

RankTwin is one plugin for both halves of modern search: ranking in Google **and** being found and cited by AI assistants like ChatGPT, Claude and Perplexity.

**For Google (SEO):**

* **Focus keyword analysis** — 13 checks scored live as you type (keyword in title, description, URL, intro, subheadings, keyword density, content length, title/description length, image alt text, internal and external links, keyword used before), shown as a score out of 100 with green/amber/red indicators.
* **Dual SEO + GEO score** — beside the SEO score, every page gets a GEO score for AI readiness (AI summary written, AI crawlers allowed, llms.txt on, subheadings, quotable length, FAQ schema, image alt text).
* **Google preview** — see how the page will look in search results while you edit.
* **Per-page controls** — SEO title, meta description, robots (index/noindex, follow/nofollow) and a custom canonical URL.
* **Front-end output** — document title from a template (%title% %sep% %sitename%), meta description, canonical, Open Graph and Twitter card tags.
* **Schema (JSON-LD)** — Organization and WebSite on every page, Article on posts and WebPage on pages, plus FAQPage schema from a simple per-page FAQ field (one `Question | Answer` per line).
* **SEO score column** in the posts/pages list.
* **XML sitemap** at /ranktwin-sitemap.xml, automatically added to robots.txt; noindex pages are excluded.

**For AI (visibility):**

* **llms.txt generator** — serves /llms.txt, a Markdown index of your published pages and posts for AI systems, using each page's AI summary or excerpt. /llms-full.txt serves the same pages with their full plain-text content.
* **AI crawler controls** — allow or block 11 AI crawlers individually (GPTBot, ChatGPT-User, ClaudeBot, Google-Extended, PerplexityBot, Perplexity-User, Applebot-Extended, Meta-ExternalAgent, CCBot, cohere-ai, Bytespider). Blocked bots are written to robots.txt automatically.
* **AI bot visit tracking** — see which AI crawlers actually visit your site: per-bot hit counts for the last 30 days and the 20 most recent hits, under Settings → RankTwin. Privacy-first: only a hashed visitor IP is stored, never the raw address.
* **Per-page AI controls** — switch any page out of llms.txt and give any page a hand-written **AI summary**: the exact text you want AI assistants to learn about that page.

Global options live under **Settings → RankTwin**, including the AI tab with the crawler toggles and the live llms.txt URLs.

Note: run only ONE SEO plugin at a time. Deactivate other SEO plugins (e.g. Rank Math or Yoast) before activating RankTwin, or titles and meta tags will be duplicated.

== Installation ==

1. In wp-admin go to Plugins → Add New.
2. Search for "RankTwin" and click Install Now on the RankTwin result.
3. Activate the plugin.
4. Open any post or page — the RankTwin panel is under the editor.
5. Global options, including AI crawler controls, live under Settings → RankTwin.

== Frequently Asked Questions ==

= Does blocking GPTBot stop ChatGPT from citing my site? =

No. GPTBot is OpenAI's training crawler; ChatGPT-User is the bot that fetches pages live when answering a user. RankTwin lets you control them separately for exactly this reason.

= Does blocking AI crawlers hurt my Google rankings? =

No. None of the bots in the AI panel is Googlebot. Google-Extended only controls whether Google may use your content for AI training; blocking it does not affect normal search indexing.

= What is llms.txt? =

An emerging standard (llmstxt.org): a Markdown file at yoursite.com/llms.txt that introduces your site to AI systems — similar in spirit to what sitemap.xml does for search engines.

== Changelog ==

= 1.1.1 =
* Renamed to RankTwin for the WordPress.org listing. Same plugin, same features — all settings, meta keys and internal names moved to the new name.

= 1.1.0 =
* New: Schema output (JSON-LD) — Organization and WebSite site-wide, Article on posts, WebPage on pages, and FAQPage schema from a new per-page FAQ field (one `Question | Answer` per line).
* New: AI bot visit tracking — front-end hits from the 11 known AI crawlers are logged (hashed IP only, capped at the 1,000 most recent) and shown in Settings → RankTwin as 30-day per-bot counts plus the latest hits.
* New: GEO score in the editor panel — a second score circle beside the SEO score with 7 AI-readiness checks, updated live as you type.
* Fix: content analysis no longer reads 0 words on pages built from raw HTML blocks — when the editor-supplied content is empty or shorter, the saved post content is analysed instead.

= 1.0.0 =
* First release: focus keyword analysis with live score, meta box with Google preview, meta/OG/Twitter output, canonical and robots control, SEO score column, XML sitemap, settings page.
* AI visibility: llms.txt and llms-full.txt generator, per-bot AI crawler controls in robots.txt, per-page AI opt-out and AI summary field.
