Title: Faultwright – Error Monitor, Cron &amp; Email Failure Alerts
Author: Emtiaz Zahid
Published: <strong>September 18, 2026</strong>
Last modified: September 18, 2026

---

Search plugins

![](https://ps.w.org/faultwright/assets/banner-772x250.png?rev=3702287)

![](https://ps.w.org/faultwright/assets/icon.svg?rev=3702287)

# Faultwright – Error Monitor, Cron & Email Failure Alerts

 By [Emtiaz Zahid](https://profiles.wordpress.org/emtiazzahid/)

[Download](https://downloads.wordpress.org/plugin/faultwright.1.0.0.zip)

 * [Details](https://wordpress.org/plugins/faultwright/#description)
 * [Reviews](https://wordpress.org/plugins/faultwright/#reviews)
 *  [Installation](https://wordpress.org/plugins/faultwright/#installation)
 * [Development](https://wordpress.org/plugins/faultwright/#developers)

 [Support](https://wordpress.org/support/plugin/faultwright/)

## 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 bring-your-own-key **Explain with AI** button sends
the error details to 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, paste their own API 
key, pick a provider, and then press “Explain with AI” followed by “Send” on an 
individual issue. Nothing is sent automatically, on a schedule, or without that 
second click. Before sending, the screen shows which provider and model will be 
used and a rough token count.

On each click, Faultwright sends one request 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;
 * your API key, in the authorisation header, so the provider can bill you.

It does not send your site URL, page URLs, visitor roles, IP addresses, user accounts,
email addresses, form data or database contents. 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:

 * 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.

Your API key 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

[⌊Issues list: every failure source in one place, grouped, with the likely component.⌉⌊
Issues list: every failure source in one place, grouped, with the likely component
.⌉[

Issues list: every failure source in one place, grouped, with the likely component.

[⌊Issue detail: plain-English explanation, what changed before it started, occurrences
and stack trace.⌉⌊Issue detail: plain-English explanation, what changed before it
started, occurrences and stack trace.⌉[

Issue detail: plain-English explanation, what changed before it started, occurrences
and stack trace.

[⌊Timeline: errors and changes on one axis.⌉⌊Timeline: errors and changes on one
axis.⌉[

Timeline: errors and changes on one axis.

[⌊Cron health: next run, overdue flags, durations and Run now.⌉⌊Cron health: next
run, overdue flags, durations and Run now.⌉[

Cron health: next run, overdue flags, durations and Run now.

[⌊Dashboard widget with the 7-day sparkline.⌉⌊Dashboard widget with the 7-day sparkline
.⌉[

Dashboard widget with the 7-day sparkline.

[⌊Settings: capture sources, early loader, notifications and privacy.⌉⌊Settings:
capture sources, early loader, notifications and privacy.⌉[

Settings: capture sources, early loader, notifications and privacy.

## Installation

 1. Upload the `faultwright` folder to `/wp-content/plugins/` or install it from the
    Plugins screen.
 2. Activate the plugin.
 3. Open **Faultwright** in the admin menu. Click **Install early loader** (recommended)
    and **Send test error** to confirm capture works.
 4. Optional: set digest recipients under Settings  Notifications and an AI key under
    Settings  Explanations.

## 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 click “Explain with AI” with your own key
configured. 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.

### Where is the JavaScript source?

The admin app and the browser collector ship un-minified in `assets/src/`; the files
in `assets/build/` are produced from them with `npm install && npm run build` (the`
package.json` is 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.

Contributors

 *   [ Emtiaz Zahid ](https://profiles.wordpress.org/emtiazzahid/)

[Translate “Faultwright – Error Monitor, Cron & Email Failure Alerts” into your language.](https://translate.wordpress.org/projects/wp-plugins/faultwright)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/faultwright/), check
out the [SVN repository](https://plugins.svn.wordpress.org/faultwright/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/faultwright/) by
[RSS](https://plugins.trac.wordpress.org/log/faultwright/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.0

 * Initial release.

## Meta

 *  Version **1.0.0**
 *  Last updated **1 day ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.4 or higher **
 *  Tested up to **7.1.1**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [cron](https://wordpress.org/plugins/tags/cron/)[debug](https://wordpress.org/plugins/tags/debug/)
   [email](https://wordpress.org/plugins/tags/email/)[error log](https://wordpress.org/plugins/tags/error-log/)
   [monitoring](https://wordpress.org/plugins/tags/monitoring/)
 *  [Advanced View](https://wordpress.org/plugins/faultwright/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/faultwright/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/faultwright/reviews/)

## Contributors

 *   [ Emtiaz Zahid ](https://profiles.wordpress.org/emtiazzahid/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/faultwright/)