=== DoiWerk – Store Assistant for WooCommerce ===
Contributors: doiwerk
Tags: woocommerce, product data, security, updates, catalog
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.1
Requires Plugins: woocommerce
Stable tag: 0.71.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Check and clean up your WooCommerce store, create products from a photo or a supplier catalog, check security and protect updates.

== Description ==

DOI, your store assistant, looks at your WooCommerce store and shows you in plain words what can be improved and fixed – before your customers notice.

**Free forever – no trial, no time limit:**

* **Store check** – finds products without price, image, SKU or description, duplicate SKUs, broken variations, missing unit prices (EU) and more. Every finding with the full count and 3 affected products per tile, with link and explanation, so you can fix them yourself.
* **Security check** – known vulnerabilities in your plugins and themes, modified WordPress core files, suspicious files in the uploads folder, risky settings.
* **Update guard** – after every update (also automatic ones) DOI checks the home page, product page, cart and checkout and tells you right away if something broke.
* **Ticket back** – the previous version of every updated plugin and theme is kept for 14 days. Restore it in one click; orders, customers and settings stay as they are.
* **Autopilot** – if you switch it on, DOI restores the previous version by itself as soon as cart, checkout, product page or home page break after an update.
* **7 protection switches** – login throttling, checkout protection, security headers and more, each in one click.
* **Try the AI:** 3 products from a photo and one supplier catalog test run (up to 50 items).

**DoiWerk Pro (paid subscription, runs on the DoiWerk service):**

* All affected products in every tile, and repairs with one click (e.g. fill missing data, merge duplicates, fix variations) – the case lists and repair plans are created by the DoiWerk service
* Daily security check against the vulnerability database
* Product texts and categories written by DOI in your store's language
* Products from a photo, supplier price lists and PDF catalogs, scene images

Pro is booked inside the plugin and runs through the DoiWerk service. Prices and conditions: [doiwerk.com](https://doiwerk.com/en/).

**Your data:** Customer and order data never leave your store. Changes are only made after you confirm them, and every repair can be undone.

DoiWerk is made for businesses (B2B). The plugin speaks English and German (all German locales).

== Installation ==

1. Install and activate the plugin (WooCommerce must be active).
2. Open **DoiWerk** in the WordPress admin menu.
3. Click **Connect store** – no account and no sign-up needed.
4. Click **Check store**. The first check usually takes less than a minute.

== Frequently Asked Questions ==

= Does DoiWerk change my store on its own? =

No. DOI shows what it found and suggests a fix. Nothing is changed until you click it, and repairs can be undone.

= Which data is sent to the DoiWerk service? =

See "External services" below. Customer and order data are never sent.

= Does it work with my theme and other plugins? =

DoiWerk reads your products through WooCommerce and works independently of the theme.

= What happens when I delete the plugin? =

The plugin removes its settings and signs your store off at the DoiWerk service. The data stored there for your store is deleted after 90 days.

== External services ==

DoiWerk needs the DoiWerk service to analyse your store and to run the AI features. The plugin connects to the following services:

**DoiWerk service (api.doiwerk.com)** – operated by DoiWerk, Steffen Bauer, Leipzig, Germany.

* When you click "Connect store": store address (URL), admin email address, plugin version.
* When you start a store check: product data (titles, SKUs, prices, stock, categories, attributes, descriptions, image URLs), store address, language, country, currency, tax and unit settings, WordPress, WooCommerce and PHP versions.
* When you start a security check: installed plugins and themes with their versions and update status, WordPress/PHP/WooCommerce versions, administrator accounts (username, registration date, last login – no passwords, no email addresses), WooCommerce REST API keys, application passwords and webhooks (name, user, permissions, dates, target host – never the keys or passwords themselves), payment methods (name, on/off, a fingerprint of their settings to notice changes), security-relevant settings (e.g. debug mode, file editing, wp-config.php permissions, server software), names of PHP files found in the uploads folder and the result of the core file check. File contents are checked locally and not sent.
* When you use AI features (texts, categories, products from a photo, catalogs, scene images): the product data, text or images needed for that task.
* When you book Pro: the checkout runs on Stripe (stripe.com) through the DoiWerk service; the plugin itself does not handle payment data.
* When you disconnect or delete the plugin: a sign-off request.

For the AI features the DoiWerk service uses Anthropic, OpenAI and Photoroom as processors; vulnerability data comes from Wordfence Intelligence. Terms of use: https://doiwerk.com/en/terms.html – Privacy policy: https://doiwerk.com/en/privacy.html

**WordPress.org (api.wordpress.org, downloads.wordpress.org)** – the security check compares your WordPress core files with the official checksums from WordPress.org (WordPress' own function `get_core_checksums()`). Only your WordPress version and language are sent. Privacy policy: https://wordpress.org/about/privacy/

**Your own store** – the update guard and the protection switches load your own home page, login, REST API, cart and checkout to check that they still respond. These requests stay on your server.

== Screenshots ==

1. Free store check: every finding as a tile, sorted by importance.
2. Inside a tile: DOI suggests a fix – you review it before anything is saved.
3. Security check with update guard, daily check and protection switches.
4. Update guard and tickets back: restore the previous version of a plugin in one click – free.
5. Add products from a photo and one sentence, or import a supplier list.

== Changelog ==

= 0.71.1 =
* Security hardening: all admin output is escaped late (wp_kses with an explicit allow-list, esc_html, esc_attr); no HTML inside translatable strings for form labels; prepared statements for all new queries.

= 0.71.0 =
* New: repair "Highlight allergens" in the tile "Food information missing" – makes the allergens in the ingredient list of the product description bold with one click. Only formatting, no word is added or removed; can be undone.

= 0.70.0 =
* New: shop check tiles "Food information missing" and "Health claims" – checks every food and pet food product for ingredients, highlighted allergens, nutrition and manufacturer, and finds disease-related claims. Products count as food when marked in DoiWerk or Germanized Pro, or when they use a reduced tax class.

= 0.69.0 =
* New: pet food / animal feed – type of feed, animal species, composition, analytical constituents, additives, feeding instructions and contact, shown in the tab "Composition & feeding".
* New: hint when a product description may contain disease-related claims (not allowed for food and pet food).

= 0.68.0 =
* New: food information on the product (ingredients, nutrition table, food business operator, storage, origin, alcohol) with a tab "Ingredients & nutrition". Allergens in the ingredients are highlighted automatically. If Germanized Pro manages food information, DoiWerk shows no second tab.

= 0.67.1 =
* Removed the "Emergency link" line from the description – it's not part of this package (it stays a feature of the direct download from doiwerk.com).
* All inline-script output now goes through one shared, failure-safe helper instead of scattered output buffering.
* Build: the WordPress.org package no longer declares a Domain Path, since it ships no bundled translation files.

= 0.67.0 =
* Security check: the uploads-folder PHP-execution check now looks for an existing .htaccess rule instead of placing a test file – no file is written to check this anymore.
* Fixed: file-upload chunks are now validated more strictly (upload origin and size).
* Fixed: a few translated texts weren't escaped correctly before output.
* Removed: the emergency-restore link (which added a small file to wp-content/mu-plugins) is not available in this version; the direct download from doiwerk.com still has it.
* Removed the bundled German translation files from this package – translations are now delivered through WordPress.org.

= 0.66.0 =
* New, free: SEO guard – after every update I also check page title, meta description, canonical link and structured data (schema.org) on your home and product page, and tell you if one of them has disappeared.
* New, free: theme check – shows whether you're using a child theme, so you know if direct changes to your theme would be lost on the next theme update.
* New, free: visibility in AI search (GEO) – a first look at whether your product pages carry the machine-readable data that ChatGPT, Perplexity and Google's AI summaries read before recommending a page.

= 0.65.0 =
* Redeem an invite code later, under Subscription & purchases – for stores that connected before being invited.

= 0.64.0 =
* Invite code field when connecting (for the closed beta).

= 0.63.0 =
* Dates follow your WordPress date and time format.
* The last remaining German labels are now translated.

= 0.62.0 =
* DoiWerk logo in the page header and as the admin menu icon.

= 0.61.0 =
* Fully bilingual: security findings, store check explanations, catalog hints, payment notes and DOI's answers now follow the language of your WordPress admin.

= 0.60.0 =
* Store check: every tile shows the full count and 3 example products for free; all cases and one-click repairs with Pro.

= 0.59.0 =
* Ticket back, autopilot, emergency link and all protection switches are now free for everyone.

= 0.58.0 =
* All DoiWerk pages now load one shared stylesheet and look consistent.
* The connect screen states clearly which data is sent to the DoiWerk service.
* Ticket-back file operations use the WordPress filesystem API.

= 0.57.0 =
* Security: all output and form input are escaped and sanitized following WordPress standards.
* Emergency page after restoring a previous version loads reliably again.

= 0.56.0 =
* DoiWerk speaks English and German, matching the language of the WordPress admin.

= 0.55.0 =
* "Disconnect" and deleting the plugin sign the store off at the DoiWerk service; the data is deleted there after 90 days.

= 0.53.0 =
* DOI writes product texts in the language of your store.
* "Unit price missing" only for stores in the EU.

== Upgrade Notice ==

= 0.63.0 =
Dates in your format, last labels translated.

= 0.62.0 =
New logo and menu icon.
