=== Instant Indexing & Check ===
Contributors: arthurseofr
Tags: seo, indexing, google indexing, instant indexing, rank math
Requires at least: 5.8
Tested up to: 6.9
Stable tag: 1.5.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Force instant indexing of your content on Google. Use Google API (Free) or Premium Force Index (90% Success Rate) and Check Status without API.

== Description ==

**Instant Indexing & Check** is the ultimate WordPress plugin to get your content indexed faster on Google and monitor your indexing status directly from your WordPress dashboard.

Our plugin solves the biggest SEO issue today: getting Google to discover and index your new articles quickly.

=== Core Features ===

The plugin is divided into two major capabilities: **Checking Status** and **Indexing**.

**1. Verification Modes (Check Status)**
*   **Google API Mode (Free):** Use your own Google Cloud Service Account (JSON key) to check the Google Search Console status of your URLs. It is free but requires a complex setup and is subjected to strict Google API quotas.
*   **NO API Mode (Premium):** Skip the complex Google Cloud API configuration. Our "NO API" mode allows you to check your URL's indexing status instantly. It consumes 0.2 credits per check, requires zero technical setup, and bypasses daily Google API limits.

**2. Indexing Modes**
*   **Google API Indexing (Free):** Send indexing requests directly to Google via the standard Google Indexing API. This is basic indexing with an average success rate.
*   **Premium Force Index (Premium):** A high-performance, authoritative indexing service boasting an over 90% success rate for stubborn and hard-to-index URLs. Stop waiting weeks for Google to index your content. Consumes 1 credit per URL.
*   **Instant Indexing (Premium):** Directly push your URLs to Google's crawler. Your links show up in the Google index in just 1 to 5 minutes. Best for time critical pages and hard to index links. Consumes 10 credits per URL.

**3. Auto-Indexing**
*   Automatically send your new posts or updated pages to Google the exact moment you hit publish. You can choose to auto-index using the Free Google API or force it with Premium indexing.

=== Why go Premium? ===
The Premium version unlocks the **NO API** check mode, the **Premium Force Index** network, and **Instant Indexing**, saving you hours of tedious API configuration while guaranteeing unparalleled indexing speed. You manage your credits directly from the dashboard.

== Privacy & Terms ==

This plugin relies on the following external services to function:

1. **Google Indexing API & Search Console API**
   - **Used for:** Sending indexing requests to Google and checking URL status (in Google API Mode).
   - **Data Sent:** The URLs of your content and your Google Cloud Service Account credentials (stored locally).
   - **Privacy Policy:** [Google Privacy Policy](https://policies.google.com/privacy)

2. **Instant Indexing Premium Relay (wp-instant-indexing.com)**
   - **Used for:** Processing "Premium" indexing requests, NO API status checks, and validating licenses.
   - **Data Sent:** Your site URL, license key, and the specific URLs you request to index/check.
   - **Privacy Policy:** [WP Instant Indexing Privacy Policy](https://wp-instant-indexing.com/privacy.php)

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/instant-indexing-check` directory, or install the plugin through the WordPress plugins screen directly.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. Click on the "Instant Index" menu item to access the dashboard.
4. Click on "⚙️ Settings" to configure your preferred mode (Google API or NO API) and enter your license key if you are a Premium user.

== Frequently Asked Questions ==

= Do I need a Google Cloud account? =
If you choose the "Google API" mode, yes. You will need to create a Service Account in Google Cloud, enable the Search Console API, and provide the JSON key.
If you choose the "NO API" mode (Premium), you do not need any Google Cloud account or technical configuration.

= How do credits work? =
Premium features use credits:
*   Checking a URL's status using NO API mode costs **0.2 credits**.
*   Forcing indexing using Premium Indexing costs **1 credit**.
*   Submitting a URL via Instant Indexing costs **10 credits**.
You can view your remaining balance in real-time in the plugin dashboard and top it up via your account.

= Can I use both modes? =
Yes! If you are a Premium user, you can configure the free Google API for standard tasks and switch to Premium indexing for specific stubborn URLs directly from the dashboard actions.

== Screenshots ==
1. Dashboard view with indexing status, bulk actions, and filters.
2. Configuration settings: Choose between Google API and NO API modes.

== Changelog ==

= 1.5.0 =
* New: Added "Instant Indexing" functionality. Directly submit your URLs to Google's crawler and have them appear in the index within 1 to 5 minutes!

= 1.4.9 =
* New: FAQ & Help page integrated into the dashboard to clearly explain feature functionality, Google vs. Premium modes, and quota limits.
* Tweak: Clarified Premium usage limits - Free users are now strictly locked from querying historical URL data beyond the past 30 days.

= 1.4.8 =
* Fix: Added support for Search Console Domain properties when the user enters a bare domain like `mondomaine.fr`.
* Fix: Improved Search Console setup help text and validation for `sc-domain:` property values.
* Fix: Added better logging for URL inspection requests to simplify debugging of forbidden Search Console errors.

= 1.4.7 =
* Fix: URL statuses were not automatically updated after a bulk Google indexing job — the table now refreshes itself at the end of every operation.
* Fix: Credit balance was not synced when reopening the plugin — credits are now silently reloaded from the server on dashboard load.
* Fix: Removed the 60-URL cap on bulk Premium checks 400+ URLs can now be sent in a single operation.

= 1.4.6 =
* Fix: Premium checks (NO API mode) no longer show a "Timeout" error when the service is under heavy load. The check now runs without a time limit as long as the page is open.
* New: A patience notification is displayed after 30 seconds, informing the user that the check is still running and asking them not to close the page.
* New: Pending check tasks are now persisted in the database. If the user closes and reopens the plugin before the check completes, the polling automatically resumes and the results are displayed upon completion — no credit loss.
* Fix: URLs sent to Premium Indexing in bulk are now correctly marked as "Waiting" in the database so they appear in the "Pending" tab even after a page reload.
* Tweak: Increased all relay server timeouts to better handle high-load periods.

= 1.4.5 =
* New: The plugin's activity console has been completely redesigned into an interactive live view. You can now filter logs (Errors, Success, Info) and search actions in real-time.
* New: Exhaustive logging added. Important actions such as plugin configuration, bulk operations, and post deletions are now properly recorded in your console for full transparency.
* New: Category Indexing is now natively supported. You can bulk check and index WordPress Categories directly from the Advanced Options.
* Tweak: Added a manual "Refresh" button on the dashboard to instantly update and sync your live credit balance.

= 1.4.1 =
* Fix: Prevented API timeouts when checking large blocks of URLs.
* Fix banner

= 1.4 =
* New: Added an awesome "Advanced Options" modal inside the dashboard, featuring two powerful Premium tools.
* New: Export your currently filtered URLs directly to a CSV file in one click.
* New: "WordPress Cleanup" tool automatically trashes all posts with a 'Not Indexed' status without leaving the dashboard.
* New: The native WordPress posts table (Articles > All articles) now features a fully stylized status filter dropdown.
* Tweak: Massive visual improvements for advanced indexation modes and UI components.
* Fix: Prevented API timeouts when checking large blocks of URLs.

= 1.3.7 =
* Fix: Complete backend overhaul for pagination and filters to establish maximum stability when handling hundreds of URLs.
* Fix: "Global Selection" now correctly targets precise URLs based on the active table filter (ex: not indexed only).
* New: Real-time and accurate rendering of global statistics fetched directly from the database.

= 1.3.6 =
* optimisation speed index et patch security

= 1.3.5 =
* optimisation speed index

= 1.3.4 =
* Patch blank screen

= 1.3.2 =
* New: Added a discrete "Advanced option" panel for Premium users to submit and index external URLs using the Premium Force Indexer network.
* Tweak: Formatted credit display to show one decimal place.

= 1.3.1 =
* Fix: Addressed selection bug where filtering did not reset "select all" properly.
* Fix: Real-time update of the global Statistics Bar directly after checking an URL status.

= 1.3.0 =
* New: Added global status filter chips (All, Indexed, Not Indexed, Waiting, Unknown) for rapid table filtering.
* New: Live Statistics Bar showing global indexation rate and categorized totals right in the dashboard.
* Fix: Prevented routing loop during initial setup when selecting the "NO API" mode.
* Tweak: Improved UI aesthetics for the dashboard stats bar and translations.

= 1.2.2 =
* Ajout d'un sélecteur du nombre d'URLs affichées par page (20, 50, 100, Tout).
* Bouton de re-soumission Premium (🔄) pour les URLs bloquées en statut "En attente".
* Message conseil : améliorer le contenu et utiliser la GSC avant de re-soumettre.
* Correction : les pages déjà indexées n'affichent plus que le lien GSC.

= 1.2.1 =
* Integration of a native tutorial video player into the plugin (replacing the Twitter/X tweet).
* Improved multi-site tracking: all sites linked to a license are recorded.

= 1.2 =
* Launched "NO API" Mode for instant status checking without Google Cloud setup.
* Revamped dashboard UI with separate Google and NO API/Premium bulk check and index actions.
* Added exact credit cost estimations before confirming actions.
* Minor UI and support link fixes.

= 1.1 =
* Added Auto-indexing feature.
* Support for credit-only licenses.
* Included translations (English / French).

= 1.0 =
* Initial release.
* Added dual indexing mode (Google API + Premium Relay).
