=== Tedrix – SEO & AI Visibility Check ===
Contributors: tedrix
Tags: seo, meta description, seo title, seo audit, ai seo
Requires at least: 5.7
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 2.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

See how Google and AI assistants like ChatGPT read your site: cut-off titles, missing descriptions, duplicates and blocked AI crawlers.

== Description ==

More and more people ask ChatGPT, Perplexity or Google's AI answers instead of clicking through search results. Whether your business gets mentioned depends on things you can't see from inside WordPress: whether AI crawlers are allowed in, whether your text exists without JavaScript, whether your company can be confirmed elsewhere. And in ordinary Google results, titles over 60 characters get cut off and pages without a description get one invented from the middle of a sentence.

This plugin shows both in one screen, under Tools → Tedrix check.

**Google and AI check (one click)**

Press "Check my site" and the home page is checked the way Google and AI assistants read it:

* Whether robots.txt shuts out AI crawlers such as ChatGPT, Claude or Perplexity
* Whether WordPress itself asks search engines to stay away
* Whether the text is there without JavaScript
* Whether the page answers something early, and has contact details and prices as text
* Whether the page states who you are in structured data
* Whether your company name can be found in public registers

**Titles and descriptions (runs locally)**

The plugin reads your published posts and pages and lists the ones that show up wrong in Google:

* Titles longer than 60 characters, which Google cuts off
* Pages with no meta description, where Google writes its own
* Descriptions over 155 characters, which get cut, or under 70, which waste the space
* Two or more pages sharing the same title, competing with each other

Each row links straight to the editor. It reads whichever SEO plugin you already use (Yoast SEO or Rank Math), so it reflects what actually gets sent to Google.

No account and no signup are needed for either check.

**Optional: connect a Tedrix account**

[Tedrix](https://tedrix.io) is a paid service that watches your site in Google Search Console, finds the pages getting fewer visitors, and writes the fixes. If you connect an account under Settings → Tedrix, the plugin can also apply fixes you have approved there:

* Every change is approved by you in Tedrix first, or by the autopilot you switched on.
* Requests are signed with a secret that lives only on this site and in your Tedrix account. Unsigned or mismatched requests are rejected.
* Each change is saved as a normal WordPress revision, and the previous state is stored so a revert restores exactly what was there.
* Only whitelisted fields are touched: title, meta description, content and structured data.

== External services ==

This plugin connects to the Tedrix service, operated by Tedrix (Sweden), in two situations. Swedish-language admins are sent to tedrix.se and everyone else to tedrix.io; it is the same service. Nothing is sent before you take one of the actions below.

1. **Google and AI check.** When you press "Check my site" under Tools → Tedrix check, the plugin sends your site's home address and your admin language to `https://tedrix.io/api/wp/kontroll` (or `https://tedrix.se/api/wp/kontroll` for Swedish admins). The service fetches your public home page and robots.txt, and looks up the company name in public registers (Allabolag, Hitta, Wikipedia), then returns the result. The address is stored for at most 14 days to check that the results are correct, and is never used to contact you.
2. **Connected account (optional).** If you enter a Site ID and secret under Settings → Tedrix, the Tedrix service sends signed requests to this site's REST API (`/wp-json/tedrix/v1/`) to apply or revert changes you approved. The plugin answers those requests; it does not send your content elsewhere.

The titles and descriptions check makes no external requests.

* Service: https://tedrix.io (Swedish: https://tedrix.se)
* Terms of use: https://tedrix.io/terms
* Privacy policy: https://tedrix.io/privacy

== Installation ==

1. Install the plugin from Plugins → Add New, or upload the folder to `/wp-content/plugins/`.
2. Activate it.
3. Go to Tools → Tedrix check and press "Check my site".

== Frequently Asked Questions ==

= Do I need an account? =

No. Both checks work without an account. The account is only needed if you want Tedrix to apply approved fixes for you.

= What is sent to Tedrix? =

Only when you press "Check my site": your home address and admin language. See "External services" above. The titles and descriptions check reads your own database and sends nothing.

= Does it work with Yoast or Rank Math? =

Yes. The check reads the title and description from whichever of those is installed. With no SEO plugin it falls back to the post title.

= Will it change anything by itself? =

No. The checks only read and report. Nothing is modified unless you connect an account and approve a change in Tedrix.

= Why does the check say my site runs on a local address? =

A site on localhost or a private network can't be fetched from the internet. The Google and AI check works once the site is online; the titles check works everywhere.

= How many pages does the titles check cover? =

The 300 most recently modified posts and pages, so it stays fast on large sites.

== Screenshots ==

1. Tools → Tedrix check: the Google and AI check of the home page, and every page with a title or description problem.

== Changelog ==

= 2.0.1 =
* Translations are now delivered through translate.wordpress.org.

= 2.0.0 =
* New: Google and AI check. One click checks whether AI crawlers can read the home page, whether the text exists without JavaScript, structured data, and whether the company can be found in public registers.
* New: warning when WordPress asks search engines not to index the site.
* New: Swedish translation. Links go to tedrix.se for Swedish admins and tedrix.io for everyone else.
* Titles check shows its results in the viewer's language.

= 1.3.0 =
* New: free SEO check under Tools. Finds truncated titles, missing or badly sized meta descriptions, and duplicate titles.

= 1.2.0 =
* Structured data (JSON-LD) can be applied as its own field, stored as post meta and output in wp_head.

= 1.1.0 =
* IndexNow key endpoint so updated pages can be submitted for recrawl.

= 1.0.0 =
* First release: signed apply and revert of approved title, meta description and content changes.
