Description
“The site was fine yesterday.” Faultwright shows you what broke, when it started, which plugin is probably responsible, and what to do about it. No external account, no developer required.
Five failure sources, one timeline
- PHP errors – fatals, uncaught exceptions and warnings, with the file, line and a trimmed stack trace. An optional one-file early loader captures fatals raised while other plugins start up. New lines in debug.log are imported too.
- JavaScript errors – a 1.4 KB collector (no cookies, no dependencies; sampling uses sessionStorage) reports browser errors, attributed to the plugin or theme that shipped the script. Browser-extension noise is filtered out.
- Cron health – detects a dead WP-Cron, overdue events, events whose plugin was removed, and scheduled jobs that crash.
- Email failures – every wp_mail failure plus SMTP-plugin errors, and a warning when orders or form entries happen but no email goes out.
- Update failures – plugin, theme and core updates that could not be installed, auto-update failures and plugins that crash on activation.
- REST / AJAX 5xx – API routes and admin-ajax actions that return server errors.
“What changed right before it started”
Faultwright keeps a change log: plugin and theme installs, updates, activations, deletions, theme switches, WordPress and PHP version changes, permalink and URL changes. Every issue shows the changes in the 48 hours before its first occurrence, ranked by likelihood.
Plain-English explanations
Over forty built-in explanations cover the errors people actually hit: memory exhausted, maximum execution time, undefined function, cannot redeclare, headers already sent, SMTP authentication, cURL timeouts, mixed content, “$ is not defined”, chunk load errors and more. Each one says what it means, the likely cause, what to try, and when to contact a developer or your host.
For anything else, an optional Explain with AI button sends the error details to an AI provider. On WordPress 7.0 and later it can use the AI provider you connect under Settings Connectors, through WordPress’s built-in AI Client, so there is no separate key to manage. On any version you can instead bring your own key for OpenAI, Anthropic, Google Gemini or any OpenAI-compatible endpoint (Ollama, Groq, OpenRouter). Nothing is ever sent automatically.
Everything else
- Issues grouped by fingerprint with count, first/last seen, affected URLs and roles, Open / Resolved / Ignored status and notes. Resolved issues reopen automatically if the error comes back.
- Timeline of errors and changes on one axis (24h / 7d / 30d).
- Cron screen with next run, overdue flags, last duration and Run now (defers to WP Crontrol when installed).
- Dashboard widget with a 7-day sparkline and an admin-bar badge with the open critical count.
- Daily or weekly digest email and an immediate email for the first occurrence of a new critical issue (throttled). Both are on by default, go to the site admin email until you enter recipients, and can be switched off under Settings Notifications.
- Site Health tests: cron running, no fatals in 7 days, emails sending.
- WP-CLI:
wp faultwright issues list,wp faultwright issues show <id>,wp faultwright cron check,wp faultwright changes list,wp faultwright prune,wp faultwright test-error,wp faultwright digest. - Privacy by default: error records hold no user IDs, email addresses, IP addresses or request bodies, and query strings are stripped from URLs. The change log records which logged-in user made a change. Retention is 30 days for events and 90 days for changes.
- Flood protection: per-request and per-minute caps, a file fallback if the database is unavailable, and a kill-switch constant.
Developer hooks
faultwright_ignore_error, `faultwright_js_noise_patterns`, `faultwright_explanations`, `faultwright_severity`, `faultwright_event_recorded`, `faultwright_notification_channels`, `faultwright_capability`, `faultwright_ai_prompt`, `faultwright_retention_days`, `faultwright_mail_activity_count`.
External services
Faultwright runs entirely on your own server. It has no telemetry, no account, no licence check and no update server of its own. The only time anything is sent to a third party is the optional “Explain with AI” feature described below.
Explain with AI (optional, off by default)
Some errors have no built-in explanation. For those, an administrator can turn on “Explain with AI” under Faultwright Settings Explanations and choose where requests go:
- WordPress AI (WordPress 7.0 and later, the default for new installs there): the request goes through WordPress’s built-in AI Client to the AI provider you connected under Settings Connectors. WordPress chooses the provider and model and keeps the API key; Faultwright stores no key for it. The connectors WordPress offers are for the providers listed below, and the terms and privacy policy of the one you connected apply.
- Your own key: you paste an API key for one of the providers below, and the request goes directly from your server to that provider.
They then press “Explain with AI” followed by “Send” on an individual issue. None of the error details are sent automatically, on a schedule, or without that second click. With WordPress AI, pressing “Explain with AI” (and again “Send”) can make WordPress ask the connected provider which models it offers; that request carries the API key but none of the error details. Before sending, the screen shows a rough token count and where the request goes: the provider and model you chose, or the provider connected under Settings Connectors.
On each “Send” click, one request with the error details is sent, containing:
- the error message (as produced by the failing code, so it may contain whatever that code put in it), its severity, source (PHP, JavaScript, cron, email, update or API) and the request type (front end, admin, cron, REST, AJAX, CLI);
- the file path and line number where the error occurred, and the file paths and function names from the stack trace (relative to your WordPress folder, never file contents, never function arguments);
- the plugin or theme Faultwright attributed the error to;
- your WordPress and PHP version numbers;
- the API key, in the request header (your own key, or the one WordPress holds for the connected provider), so the provider can bill you.
It does not send page URLs, visitor roles, IP addresses, user accounts, email addresses, form data or database contents. Requests made with your own key do not include your site URL; requests made through WordPress AI use WordPress’s standard HTTP User-Agent, which includes your site’s address. The provider’s reply is stored in your own database with the issue and is deleted with it. You can adjust or strip the prompt with the faultwright_ai_prompt filter.
The request goes only to the provider you selected, or with WordPress AI to the one you connected:
- OpenAI (api.openai.com) – Terms: https://openai.com/policies/terms-of-use – Privacy: https://openai.com/policies/privacy-policy
- Anthropic (api.anthropic.com) – Terms: https://www.anthropic.com/legal/commercial-terms – Privacy: https://www.anthropic.com/legal/privacy
- Google Gemini (generativelanguage.googleapis.com) – Terms: https://ai.google.dev/gemini-api/terms – Privacy: https://policies.google.com/privacy
- OpenAI-compatible endpoint – any base URL you enter, for example a self-hosted Ollama, Groq or OpenRouter. Data goes to that server under that operator’s terms and privacy policy, which you are responsible for reviewing. If the base URL is left empty this option sends to OpenAI.
If you use your own key, it is stored encrypted in the WordPress options table using your site’s authentication salts, is never displayed again beyond its last four characters, and is removed when you clear it or uninstall the plugin.
Everything else stays on your site
- The browser error collector, loaded on front-end and admin pages when JavaScript capture is on, posts error messages, script URLs, line numbers, stack traces, the page URL with its query string removed and the viewport size to your own site’s REST API only. Sampling is decided per browser session with sessionStorage; no cookies are set. Your server keeps the visitor’s role and browser family, not IP addresses or full user-agent strings.
- Alert and digest emails go through your own site’s wp_mail() to the addresses you enter, or to the site admin email if none are set.
- The plugin links to WordPress.org for reviews; following that link is an ordinary browser visit.
Screenshots






Installation
- Upload the
faultwrightfolder to/wp-content/plugins/or install it from the Plugins screen. - Activate the plugin.
- Open Faultwright in the admin menu. Click Install early loader (recommended) and Send test error to confirm capture works.
- Optional: set digest recipients under Settings Notifications, and turn on AI explanations under Settings Explanations (with the provider connected under Settings Connectors on WordPress 7.0 and later, or with your own API key).
FAQ
-
Does it record warnings that were silenced with the @ operator?
-
Yes. Faultwright never reads or changes PHP’s error-reporting level, so it cannot tell whether a call was wrapped in @. Warnings are grouped and counted, so a silenced call that fails repeatedly shows up as one group. Notices and deprecations are off by default and can be enabled in Settings.
-
Does it slow my site down?
-
No. When nothing goes wrong, the PHP handler costs well under a millisecond and no database queries run on the front end. The JavaScript collector is 1.4 KB and only talks to the server when an error happens. Sampling lets you record a fraction of front-end visitors.
-
Do I need WP_DEBUG on?
-
No. Faultwright captures errors directly. If WP_DEBUG_LOG is on, new lines in debug.log are imported as well and de-duplicated.
-
Does it send data anywhere?
-
No. Nothing leaves your site unless you turn on “Explain with AI”, with a provider connected under Settings Connectors or your own API key, and use it on an issue. There is no telemetry.
-
What is the early loader file?
-
A tiny file copied into wp-content/mu-plugins that loads Faultwright before every other plugin, so a fatal error raised while another plugin starts up is still captured. You can remove it from Settings Capture at any time; uninstalling deletes it.
-
Can it fix errors?
-
It explains them and points at the most likely culprit with the change history. Rolling a plugin back or contacting the author remains a manual step.
-
Is it GDPR friendly?
-
Error records store the visitor’s role, never a user ID, email address or IP address. IP addresses are hashed (/24) for rate limiting only and expire after one minute. Query strings are stripped from recorded URLs by default. Failed-email records keep the subject line and, optionally, the recipient domain, never the full address. The change log records which logged-in user activated, updated or changed something, so you can see who did what. The plugin adds a suggested paragraph to Settings Privacy Policy Guide.
-
No. Faultwright has no server of its own and sends no usage statistics or telemetry. Errors are stored in your own database; the browser collector posts to your own site’s REST API. The only outbound requests are the optional AI explanations described under “External services”, off until you turn them on and connect a provider under Settings Connectors or enter your own API key.
-
Does Explain with AI use the WordPress AI Client?
-
Yes, on WordPress 7.0 and later. Choose “WordPress AI (Settings Connectors)” under Faultwright Settings Explanations (it is the default for new installs there), and requests go through WordPress’s built-in AI Client to the provider you connected, with the key WordPress keeps. On older WordPress versions, or if you prefer, you can enter your own API key for OpenAI, Anthropic, Google Gemini or an OpenAI-compatible endpoint instead.
-
Where is the JavaScript source?
-
The admin app and the browser collector ship un-minified in
assets/src/; the files inassets/build/are produced from them withnpm install && npm run build(thepackage.jsonis included). Nothing else is compiled or obfuscated. -
Is this a developer tool like Query Monitor?
-
No. Query Monitor inspects a single request while you look at it. Faultwright is a persistent history for site owners and the people who maintain sites for them.
-
How do I disable capture without deactivating?
-
Add
define( 'FAULTWRIGHT_DISABLE', true );to wp-config.php.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“Faultwright – Error Monitor, Cron & Email Failure Alerts” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “Faultwright – Error Monitor, Cron & Email Failure Alerts” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.1.0
- New: Explain with AI can use the WordPress AI Client and the provider connected under Settings Connectors (WordPress 7.0 and later). Your own API key still works.
1.0.0
- Initial release.
