=== GEO Optimizer Lite ===
Contributors:      pixelnx
Tags:              geo optimization,generative engine optimization,ai seo,llm optimization,chatgpt seo,ai search optimization,ai discoverability,structured data,semantic seo,llms txt,technical seo,metadata optimization,wordpress ai optimization,ai crawler optimization,llm seo
Requires at least: 6.0
Tested up to:      6.9
Stable tag:        1.0.2
Requires PHP:      7.4
License:           GPL-2.0-or-later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html

Free technical GEO features: schema markup, FAQ schema, AI-crawler robots.txt, llms.txt, answer capsule shortcode, and more.

== Description ==

**GEO Optimizer Lite** is the free version of GEO Optimizer — the plugin built to help your content get cited by ChatGPT, Claude, Perplexity, and Gemini.

While traditional SEO optimizes for Google rankings, **Generative Engine Optimization (GEO)** optimizes your content so AI systems extract, cite, and recommend it in their answers.

= Free Features =

* **JSON-LD Schema Markup** — Automatically injects Article, Organization, and Person (E-E-A-T) schema on all posts and pages.
* **FAQ Schema Auto-Detection** — Scans headings ending in "?" and wraps them in FAQPage schema without any extra work.
* **BreadcrumbList Schema** — Adds hierarchy signals that AI systems use to understand your content structure.
* **AI Crawler robots.txt Rules** — One toggle to allow GPTBot, ClaudeBot, PerplexityBot, Google-Extended, Applebot-Extended, and cohere-ai.
* **llms.txt Generator** — Creates `/llms.txt` at your site root — the AI-specific equivalent of `sitemap.xml`, listing your most important URLs.
* **[geo_lite_answer] Shortcode** — Wrap any summary in a styled Answer Capsule that AI systems can easily extract.
* **Freshness Notices** — Automatically appends a "Last updated:" notice with machine-readable `<time>` markup to every post.
* **Meta Description Fallback** — Generates `<meta name="description">` from your post excerpt when Yoast or Rank Math is not active.
* **Bing Sitemap Ping** — Automatically pings Bing on every publish (throttled to once per hour) so ChatGPT's Bing-powered index stays fresh.
* **GEO Audit Dashboard** — A clear pass/fail technical checklist for your site's AI readiness.

= Pro Features (GEO Optimizer Pro) =

Upgrade to Pro to unlock AI-powered content writing:

* **Auto AI-Ready Writer** — One-click enhancement: adds FAQ sections, [geo_lite_answer] capsules, authority signals, and better headings to any existing post using Claude or ChatGPT.
* **Claude (Anthropic) & ChatGPT (OpenAI) provider choice** — Choose your preferred AI engine.
* **Enhancement history & revert** — Restore any post to its original content at any time.
* **Create New Posts from keyword** — Describe a topic, AI writes a complete AI-optimized post.
* **DALL·E 3 Featured Image Generation** — AI creates a featured image for every new post.
* **⚡ AutoPilot** — Schedule automatic bulk enhancement of your oldest posts on autopilot.
* **Bulk enhance unlimited posts at once** — Process your entire archive in one run.

= Why GEO Matters =

Over 40% of online searches now use AI-generated answers. ChatGPT, Perplexity, and Google AI Overviews pull from structured, authoritative, crawlable content. GEO Optimizer Lite makes your WordPress site that kind of content — for free.

== Installation ==

1. Upload the `geo-optimizer-lite` folder to `/wp-content/plugins/`.
2. Activate the plugin through the **Plugins** screen in WordPress.
3. Navigate to **GEO Optimizer → Settings** to configure features.
4. Go to **GEO Optimizer → llms.txt** to generate your AI index file.
5. Run the **GEO Audit** to check your AI readiness score.

== Frequently Asked Questions ==

= Does this plugin conflict with Yoast SEO or Rank Math? =

No. The meta description fallback automatically detects Yoast (`WPSEO_Frontend`) and Rank Math (`RANK_MATH_VERSION`) and skips output when either is active. Schema markup from this plugin is additive.

= What is llms.txt? =

It is a plain-text file placed at your site root that lists your most important URLs in a format designed for AI language models — similar to `sitemap.xml` but purpose-built for LLM crawlers. See the llms.txt standard at [llmstxt.org](https://llmstxt.org/).

= What is the [geo_lite_answer] shortcode? =

Wrap any paragraph or summary in `[geo_lite_answer]Your answer here.[/geo_lite_answer]` to render a visually styled Answer Capsule. AI systems preferentially extract clearly delimited answer blocks. Enable the feature in Settings first.

= Does this plugin slow down my site? =

No. All front-end output is lightweight: a few lines of JSON-LD in `<head>` and an optional freshness paragraph. There are no external HTTP requests on page load.

= What AI crawlers are allowed in robots.txt? =

GPTBot (OpenAI), ClaudeBot (Anthropic), PerplexityBot, Google-Extended, Applebot-Extended, and cohere-ai.

== Third Party / External Services ==

This plugin makes the following external HTTP requests:

**Bing Sitemap Ping**
When you publish or update a post, the plugin sends a one-time GET request to `https://www.bing.com/ping?sitemap=YOUR_SITEMAP_URL` to notify Bing's index (throttled to once per hour). No personal data is transmitted — only your public sitemap URL.
* Service: Microsoft Bing — [Privacy Policy](https://privacy.microsoft.com/en-us/privacystatement) · [Terms of Service](https://www.microsoft.com/en-us/servicesagreement)

No other external services are contacted by this plugin.

== Screenshots ==

1. Dashboard — AI readiness overview with 4 stat cards and recent posts table.
2. GEO Audit — pass/fail technical checklist for your site.
3. Settings — technical toggles and brand identity fields.
4. llms.txt Manager — generate and preview your AI index file.
5. Upgrade — side-by-side Lite vs. Pro feature comparison.

== Changelog ==

= 1.0.2 =
* Removed all inline CSS from PHP output; styles moved to enqueued stylesheet per WP.org guidelines.
* Fixed option/transient/shortcode names to use unique geo_lite_ prefix throughout.
* Replaced deprecated current_time('timestamp') with time().
* Replaced file_get_contents() with WP Filesystem API.
* Fixed duplicate register_setting() calls.
* Added esc_url_raw() to Bing ping URL.
* Added capability checks inside all page render callbacks.
* Added wp_reset_postdata() after setup_postdata() in schema injection.

= 1.0.1 =
* All the technical issues have been sorted.
* Menu position has been updated.

= 1.0.0 =
* Initial release. Includes schema markup, FAQ schema, robots.txt, llms.txt, [geo_lite_answer] shortcode, freshness notices, meta description fallback, Bing ping, and GEO Audit dashboard.

== Upgrade Notice ==

= 1.0.2 =
Code quality fixes for WP.org compliance: inline CSS removed, option prefixes corrected, security hardening.

= AI Crawlers Control =

This plugin allows site owners to control access for AI crawlers (e.g., GPTBot, ClaudeBot) via robots.txt rules. No external API calls are made and no data is shared.