=== FajaedeSEO AI ===
Contributors: fajaede
Tags: seo, ai, openai, sitemap, meta tags
Requires at least: 5.8
Tested up to: 7.0
Stable tag: 2.4.8
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

The GEO & AI Visibility Platform for WordPress. Optimize your content for Google AI Overviews, ChatGPT, and Gemini.

== Description ==

**FajaedeSEO Free: The Ultimate SEO Foundation for WordPress**
Powerful, lightweight, and completely free forever.

Discover our all-in-one SEO platform and transform your Gutenberg editor into an intelligent optimization assistant. FajaedeSEO Free provides a rock-solid foundation for your WordPress SEO strategy without any unnecessary bloat or complex menus. You get an intuitive, lightning-fast SEO sidebar that gives you complete control over your content, technical settings, and site visibility.

= Real-Time Content & Writing Analysis =
Optimize your pages effortlessly with real-time SEO scoring, actionable feedback, and clear color indicators. Simply set your primary focus keyword and let our intelligent local content analysis evaluate your text on the fly. The plugin actively monitors your keyword density, sentence length, passive voice usage, and Flesch reading ease to ensure your content is perfectly crafted for both readers and search engines. The live editor also detects your headings, counts your internal links, spots missing image alt texts, and even flags broken or invalid URLs while you type. Struggling for inspiration? The system automatically extracts keyword suggestion chips directly from your content to help you stay on topic.

= Technical SEO & Structured Data =
Take charge of your technical SEO without touching a single line of code. FajaedeSEO automatically generates a high-performance XML sitemap to ensure search engines can discover your pages instantly. You maintain full control over your website's crawling instructions with a fully configurable, virtual robots.txt manager and custom canonical URL settings directly from the sidebar. To help search engines perfectly understand your content, the free version automatically applies compliant Schema.org Article structured data to your posts, increasing your chances of securing rich search results. You can also easily manage your global Homepage SEO meta title and description from a clean, centralized dashboard.

= Live 3D Tracking & Privacy Tools =
Keep a pulse on your global audience in style. FajaedeSEO Free includes our stunning 3D Live Visitor Globe, an interactive dashboard that visualizes your top visiting countries in real-time. Built with a privacy-first approach, the tracker operates seamlessly without storing personal IP addresses. To further help you stay legally compliant, the free tier includes a built-in Privacy Policy generator that creates a professional, tailored policy document in seconds. FajaedeSEO Free is the perfect, secure, and native WordPress standard to kickstart your online visibility.

= Upgrade to Pro, Premium, or Agency =
Unlock advanced AI-driven content generation, OpenAI GPT-4o integration, Bulk SEO actions, SERP competitor analysis, advanced Schema.org types (Recipe, Course, Event, etc.), 301 Redirect Managers, and White-Label PDF reports by upgrading to one of our premium plans. With our transparent Bring Your Own Key (BYOK) model, you only pay for the AI you actually use!

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/fajaedeseo-ai` directory, or install the plugin through the WordPress plugins screen directly.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Navigate to the FajaedeSEO AI settings page to configure your site and API keys.
4. Edit any post or page in the block editor. You will see a new "FajaedeSEO" button in the top right of the editor sidebar to open the SEO tools.

== Frequently Asked Questions ==

= What is FajaedeSEO AI and who is it for? =
FajaedeSEO AI is an advanced AI SEO Automation Platform for the WordPress Block Editor (Gutenberg). It automatically handles meta tags, social previews, XML sitemaps, robots.txt, and JSON-LD schema, while providing AI advice directly in the editor. It is built for webshops, entrepreneurs, marketers, agencies, and developers who want a fast, SEO-optimized WordPress site without complicated menus or bloated dashboards.

= Are AI generations included in the plugin price? =
No, the plugin acts as an intelligent bridge between your WordPress site and OpenAI (ChatGPT). To use the AI features, you simply enter your own (secure) OpenAI API key once in the settings. This ensures you always have access to the latest AI models, without us adding any markup to your AI usage.

= Why do I need a ValueSERP API key for Competitor Analysis? =
We believe in cost transparency. Instead of forcing you into a pricey monthly SEO subscription, FajaedeSEO lets you connect your own ValueSERP account. ValueSERP gives you 100 free searches per month. By using your own free key, you get real-time Google search data directly in your WordPress editor without paying any markup fees to us! Simply create a free account at ValueSERP.com, copy your API key, and paste it into the FajaedeSEO settings.

= How does the AI help me write better SEO titles and descriptions? =
The AI in FajaedeSEO takes the heavy lifting out of writing optimized meta titles and descriptions. Depending on your plan, it helps you in three ways:
1. **One-Click Generation (Pro & Premium):** While writing, click "Title Suggest" or "Desc Suggest". The AI reads your content and writes a perfectly sized proposal (60/160 chars) enforcing your focus keyword.
2. **Advanced Copywriting Triggers (Premium & Agency):** The plugin uses the powerful GPT-4o model to add psychological triggers, strong Call-to-Actions (CTAs), and LSI (Latent Semantic Indexing) keywords to maximize your Click-Through Rate (CTR).
3. **Bulk Actions (Premium & Agency):** Optimize dozens of old blog posts or products at once. The AI generates unique titles, descriptions, and keywords for all selected pages in the background.

= What is the difference between the FAQ feature in Pro and Premium? =
**Pro Plan (Manual):** You unlock the technical "FAQ Page" Schema markup. You write your own questions and answers in the WordPress editor, and our plugin automatically wraps them in the correct Google-friendly JSON-LD code behind the scenes.
**Premium Plan (Fully Automated):** You get the AI FAQ Builder (GEO). You simply click one button, and our advanced AI reads your article, generates the most relevant questions, writes perfectly sized answers (optimized for Google AI Overviews), and instantly inserts both the text and the Schema code into your page. It does 30 minutes of work in 5 seconds!

= Will FajaedeSEO slow down my website? =
No! FajaedeSEO actually speeds up your website. It is built with native JavaScript/React for the editor and is highly optimized for fast loading times, with dedicated one-click performance features to improve your Core Web Vitals (LCP) and overall speed.

= Which Schema.org (JSON-LD) structured data is supported? =
The free plugin automatically adds WebSite and Article JSON-LD. Pro users unlock 18+ advanced Schema types including FAQPage, HowTo, Product, LocalBusiness, Recipe, Event, SoftwareApplication, and more.

= Does it work for custom post types? =
Yes! By default, FajaedeSEO supports all public post types, including posts, pages, portfolios, WooCommerce products, and the homepage.

= Does the plugin include privacy and cookie features? =
Yes! FajaedeSEO includes a complete, automated generator for all your legal documents. With a few clicks, you can generate a custom Privacy Policy, Cookie Policy, Terms of Service, Disclaimer, and GDPR Compliance statement. This perfectly aligns your SEO with Google's E-E-A-T trust signals.

= Where can I find my sitemap? =
By default, your sitemap is automatically generated at `/fajaede-sitemap-index.xml` (e.g., `https://yourdomain.com/fajaede-sitemap-index.xml`). You can also find the exact link in the FajaedeSEO settings dashboard.

= Why do I get a 404 error on my sitemap? =
Simply go to the FajaedeSEO Settings > Dashboard and click the "Refresh Sitemap Cache" button to instantly resolve this.

= Can I edit the robots.txt file? =
Yes, absolutely. The contents are served dynamically, and you can edit them directly from the settings. By default, your sitemap URL is automatically included.

= Can I use my own social media handles? =
Yes, via the settings dashboard. These are automatically added to your Open Graph (Facebook) and Twitter Card meta tags.

= What if I don't set a featured image? =
A customizable fallback image (configured in the settings) will be used for your social previews to ensure you never have empty social cards.

= Is it compatible with other SEO plugins? =
Yes. It is designed for non-overlapping, lightweight usage. You can safely use FajaedeSEO AI alongside other SEO plugins, and even easily disable our Schema output if needed to avoid conflicts.

= Do I get explanations or training with the plugin? =
Yes, the plugin includes a visual `fajaedeseo-visual-marketing-book` PDF with practical SEO explanations tailored specifically to the plugin and your workflow.

== Changelog ==

= 2.4.8 =
* **Security**: Hardened Mollie Webhook data processing with stricter input sanitization.
* **Improvement**: Refactored the Legal Documents generator for better maintainability (DRY code).
* **Improvement**: Centralized CSV Export logic and Checkout form rendering.
* **Fix**: Added missing translator comments to resolve PHPCS warnings and removed duplicate H1 tags from generated policies.

= 2.4.7 =
* **Feature**: Added EU VIES API validation for B2B VAT numbers during checkout with smart fallback.
* **Feature**: Added Extended Visitor Geography (7 and 30 days full lists) to the Live Globe dashboard.
* **Fix**: Resolved PHPCS security warnings by strengthening database queries and input sanitization.

= 2.4.6 =
* **Feature**: Massively expanded the Technical SEO toolbox with 18+ new advanced Schema.org types (including LocalBusiness, Event, Recipe, Course, SoftwareApplication, and more) for Pro users.
* **Feature**: Added Bulk CSV Import and Export functionality to the 301 Redirect Manager for effortless URL migrations (Premium).
* **Improvement**: Added `composer.json` for better dependency management and package tracking.
* **Improvement**: Silenced false-positive WordPress.org plugin updater warnings in PHPCS, acknowledging our custom premium update delivery system.
* **Fix**: Standardized line endings in `agency-hub.php` for better cross-platform compatibility.

= 2.4.5 =
* **Feature**: Updated Agency plan pricing structure to €499/yr (Lock-in introductory price).
* **Feature**: Added Grandfathering (Lifetime Price Lock) and Failed Payment rules to the Terms of Service generator.
* **Feature**: Complete B2B & B2C VAT Calculator with automatic EU OSS compliance, B2B Reverse Charge, and Non-EU 0% Export.
* **Feature**: Enhanced Checkout Form with live country-based VAT calculation and dynamic B2B VAT ID validation.
* **Feature**: Automatic Professional PDF Invoice Generator including per-country VAT breakdown and reverse charge notices.
* **Feature**: Enhanced Monthly Accounting CSV Export with 5 new tax columns (perfect for accountant OSS filing).
* **Improvement**: Mollie payment gateway updated to process dynamic VAT amounts securely.

= 2.4.4 =
* Improved live visitor tracking and caching for the Globe dashboard.
* Added frontend My Account shortcode ([fajaedeseo_my_account]) for license management.
* Optimized AI API requests and response handling.

= 2.4.2 =
*   **Feature**: Added Custom External Sitemaps (Premium/Agency) to seamlessly index non-WordPress URLs.
*   **Feature**: Added Advanced Facebook Integration (`fb:admins`, `fb:pages`) for Premium & Agency users.
*   **Feature**: Added dynamic Twitter Cards (Live Reading Time & Author integration) for Pro users.
*   **Feature**: Boosted Google Discover visibility with advanced `max-image-preview:large` and `max-snippet:-1` robots tags.
*   **Feature**: Added Microdata fallbacks (`itemprop`) for broader social sharing compatibility.
*   **Feature**: Expanded White-Label PDF Reports (Agency) with Visitor Geography (Top Countries, Regions, Cities) data.
*   **Feature**: Added the secure `/agency-status` REST API endpoint to power the upcoming centralized SaaS Dashboard.
*   **Improvement**: Enhanced the Gutenberg sidebar UI with a visual "Pro Upsell" lock on Social Previews.
*   **Improvement**: Fallback dynamically to `get_the_excerpt()` or `post_content` when no custom meta description is set for immediate indexing.
*   **Improvement**: Segregated Social and Local SEO tags strictly based on Pro, Premium, and Agency plans.

= 2.4.1 =
*   **Fix**: Improved IP detection for the Live Visitor Globe to support Nginx and Cloudflare proxies.
*   **Fix**: Resolved an edge case with MariaDB strict mode during database inserts.
*   **Fix**: Cleared ghost update notifications from the WordPress cache after a successful update.

= 2.4.0 =
*   **Feature**: Added Live Visitor Globe & Geography Stats (Top Countries, Regions, Cities) with privacy-first tracking (No IP storage).
*   **Security**: Hardened REST API database queries against SQL injections.
*   **Security**: Enhanced `.htaccess` protection rules to block advanced case-insensitive malware scripts.
*   **Fix**: Resolved a critical error when generating H2 headers and text content by finalizing the transition to the OpenAI API.
*   **Improvement**: Optimized the `uninstall.php` script for clean and GDPR-compliant data removal.

= 2.3.1 - 2026-05-31 =
*   **Feature**: Added `[fajaedeseo_checkout_success]` shortcode for a professional post-payment order confirmation page.
*   **Feature**: Clarified BYOK (Bring Your Own Key) pricing transparency on the checkout page.
*   **Security**: Advanced Code Hardening including CSV Injection prevention for accounting exports and strict SSL verification for API calls.
*   **Security**: Added empty `index.php` files to all asset directories to prevent directory listing.
*   **Fix**: Agency plan licenses now correctly activate across unlimited client websites instead of locking to the first domain.
*   **Improvement**: Removed deprecated XSLT stylesheets from XML sitemaps to guarantee future compatibility with Google Chrome and Edge.

= 2.3.0 - 2026-05-31 =
*   **Feature**: Introduced **GEO (Generative Engine Optimization)** tools!
*   **Feature**: Added **AI FAQ Builder (GEO)** to generate AI-Overview-friendly FAQs directly into your content.
*   **Feature**: Added **AI Extraction Optimizer** to restructure paragraphs to maximize Gemini/AI Overview extraction.
*   **Feature**: Expanded technical schema options with `FAQPage` and `HowTo`.

= 2.2.1 - 2026-05-26 =
*   **Enhancement**: Redesigned the White-label Agency PDF Reports with a professional cover page and beautiful styling.
*   **Fix**: Updated the default OpenAI Image model to `gpt-image-2` to comply with OpenAI's latest API changes and model retirements.

= 2.2.0 - 2026-05-24 =
*   **Feature**: 100% OpenAI Integration! Lightning-fast text and meta generation via the powerful OpenAI API.
*   **Feature**: GPT-Image Generator integrated directly into the Gutenberg sidebar.
*   **Feature**: White-Label PDF Reports (Agency) are now generated locally and securely on your own server using Dompdf.
*   **Feature**: AI H2 Header Suggestions to quickly outline your articles.
*   **Feature**: Bulk Meta Generation (Premium) for processing multiple post IDs at once from the settings dashboard.
*   **Feature**: Deep integration with Lemon Squeezy API for automated checkouts and tax compliance.
*   **Feature**: Built-in responsive pricing tables for the `[fajaedeseo_checkout]` shortcode.
*   **Feature**: Multi-site Dashboard for Agency users to manage all connected domains.
*   **Feature**: Automated Accounting system with automatic monthly CSV exports.
*   **Feature**: Smart AI routing: Pro users get the lightning-fast GPT-4o-mini, while Premium & Agency users unlock the advanced GPT-4o model.
*   **Feature**: Tier-based Prompt Engineering: Premium & Agency users get advanced LSI (Latent Semantic Indexing) and psychological triggers in their generated meta data.

= 2.1.2 =
*   **Fix**: Resolved PHP warnings related to missing namespaces in Pro feature checks.

= 2.1.1 - 2026-05-20 =
*   **Feature**: Added Terms of Service and GDPR Compliance generators to the admin dashboard.
*   **Feature**: New shortcodes: `[fajaedeseo_terms_of_service]`, `[fajaedeseo_gdpr_compliance]`, and `[fajaedeseo_disclaimer]`.
*   **Fix**: Resolved issue where policy containers were showing empty content by implementing backend generation logic.

= 2.1.0 - 2026-05-19 =
*   **Feature**: Added real-time 'Competitor Analysis (SERP)' module to the Gutenberg sidebar for Pro users.
*   **Fix**: Automatic rewrite rule flushing on activation to prevent sitemap 404 errors.
*   **Fix**: Restored visibility and functionality of the 301 Redirect Manager in the admin dashboard.
*   **Fix**: Resolved JavaScript ReferenceError (linkStats) in the sidebar.
*   **Improvement**: Full English localization for the SERP analysis interface and sidebar tools.

= 2.0.19 - 2026-05-11 =
*   **Feature**: Support for Tiered Pricing (Pro, Premium, Agency) in the checkout.
*   **Feature**: Modular AI endpoints for SEO, Keywords, and SERP.
*   **Feature**: Improved Health Check tool for the AI service.
*   **Feature**: Mollie iDEAL integration with automatic billing.
*   **Feature**: Automatic monthly CSV reports for accountants.
*   **Feature**: Live Visitor Globe visualization (Admin).
*   **Fix**: REST API security improved with `permission_callback` validation at Post ID level.
*   **Fix**: Text Domain corrected to `fajaedeseo-ai` for full internationalization.
*   **Fix**: Robots.txt output provided with late escaping (`esc_html`).
*   **Fix**: Accessibility of form labels in the dashboard improved.

= 2.0.18 - 2026-01-18 =
*   **Feature**: Added a lightweight 301 Redirect Manager (Pro) to the settings page to fix broken links.
*   **Improvement**: Optimized redirect performance using native WordPress hooks.

= 2.0.17 - 2026-01-18 =
*   **Feature**: Added 'FAQ Page' to Schema Type options for Pro users.
*   **Improvement**: Added an upsell teaser in the sidebar for free users to discover Pro Technical SEO features.
*   **Feature**: Added 'Style & Typo Check' to the sidebar for Pro users to catch common writing errors.

= 2.0.16 - 2026-01-18 =
*   **Feature**: Added advanced Link Manager to sidebar (Edit URLs, Unlink, Nofollow, Open in New Tab).
*   **Feature**: Added Technical SEO module for Pro users (Robots Index/Follow, Schema Type selection).
*   **Feature**: Added 'Remove Query Strings' performance tweak for Pro users to improve GTMetrix/Pingdom scores.
*   **Improvement**: Enhanced Pro License management with subscription cancellation and expiration tracking.
*   **Improvement**: Added Undo/Redo buttons to the SEO sidebar for better UX.
*   **Fix**: Resolved memory exhaustion issues during sitemap generation on large sites.
*   **Fix**: Fixed saving of SEO meta data by properly registering REST API fields.
*   **Fix**: Various UI improvements and bug fixes in the Gutenberg sidebar.

= 2.0.15 - 2026-01-13 =
*   **Feature**: Introduced Pro Licensing system for advanced automation.
*   **Feature**: Added automated daily monitoring for content freshness and technical health.
*   **Improvement**: Replaced placeholder data with real-time Page Speed (TTFB) and Overall SEO Score calculations.
*   **Enhancement**: Added email reporting for critical SEO issues.

= 2.0.14 - 2026-01-13 =
*   **Maintenance**: Transition to new version and directory structure.
*   **Fix**: Finalized text domain and folder name consistency.

= 2.0.13 - 2026-01-11 =
*   **Security**: Improved REST API permission callbacks to check capabilities for specific post IDs.
*   **Security**: Added late escaping to robots.txt output.
*   **Fix**: Corrected Text Domain to match plugin slug for full internationalization support.
*   **Fix**: Ensured all admin strings are properly translatable.

= 2.0.12 - 2026-01-06 =
*   **Security**: Hardened REST API and AJAX endpoints with strict permission callbacks and nonce verification.
*   **Fix**: Resolved issue where Facebook handle was not generating meta tags.
*   **Fix**: Improved site name detection in Gutenberg sidebar.
*   **Improvement**: Excluded password-protected posts from the XML sitemap.
*   **Improvement**: Improved word count accuracy in Page Audit API by stripping shortcodes.
*   **Code Quality**: Modernized date handling in AJAX responses.

= 2.0.11 - 2025-12-06 =
*   **Feature**: Added `changefreq` and `priority` tags to the XML sitemap for better search engine guidance.
*   **Enhancement**: Translated all admin-facing strings and code comments to English for international use.
*   **Enhancement**: Refactored admin settings page into a tabbed interface for better organization and future scalability.
*   **Enhancement**: Enabled SEO meta fields and front-end tags for all public post types, not just posts and pages.
*   **Feature**: Added option to disable automatic JSON-LD Schema output to prevent conflicts with other plugins.
*   **Refactor**: Centralized the logic for counting indexed pages to remove code duplication and ensure consistency.

= 2.0.10 - 2025-11-15 =
*   **Security**: Hardened REST API and AJAX endpoints with strict permission callbacks and nonce verification.
*   **Fix**: Replaced hardcoded URLs with dynamic WordPress functions (`admin_url`, `home_url`) for better compatibility.
*   **Fix**: Improved JSON-LD output encoding to ensure proper escaping of data.

= 2.0.9 - 2025-11-01 =
*   **Feature**: Implemented a robust page speed score using the Site Health API with transient caching.

= 2.0.8 - 2025-10-25 =
*   **Feature**: Added REST API endpoints for site-wide and page-specific audits.

= 2.0 - 2025-10-08 =
*   **Major Update**: Transition to version 2.0 framework and structure.
= 1.0 - 2025-07-15 =
*   Initial release with focus keyword and meta tag management.

== Screenshots ==

1.  The Fajaede SEO sidebar in the block editor, showing real-time score and analysis.
2.  The clean, tabbed settings page for managing site-wide SEO.
3.  The automated XML sitemap index generated by the plugin.
4.  The live SEO statistics dashboard with overall score and page speed(featured).

== Upgrade Notice ==

= 2.3.1 =
This release contains important security hardening for API calls and CSV exports, along with the new checkout success shortcode. Upgrading is highly recommended!
