Operanse
Sign inSign up

How it works

A technical look at how Operanse collects data from a WooCommerce store, learns what is normal for it, investigates incidents, and what all of that costs the site.

Install and connect your store

Operanse is a WordPress plugin (on wordpress.org) and a hosted service. Install the plugin, add the site in the dashboard, and pair the two with a one-time token pasted into Settings → Operanse. Pairing gives the plugin its own credentials, and every request it makes to us from then on is signed. Nothing inbound is required: the plugin calls out on its own schedule, and the dashboard reads from our side. The steps are in the documentation; the owner’s version is on getting started.

Two lines in wp-config.php keep the plugin’s buffer in a private directory outside the web root and run WordPress cron from the system instead of from visitor requests. The plugin checks both and shows a notice until they are in place; server setup has the lines, with paths for common hosts.

The first thing the plugin sends is an inventory: WordPress, PHP and database versions, plugins and themes with their versions, WooCommerce configuration (gateways by id, never credentials), scheduled tasks and REST routes. Each later inventory is compared with the previous one, and that difference is what a review means by “a recorded change at 13:58”.

What it observes

FamilyWhat is readHow
UptimeYour site’s public URL and the plugin’s own probe endpoint, every minute; on Watch, the public URL every 5 minutesFrom our side
Payments and renewalsCompleted and failed payments, renewals and refunds, by gateway. Orders paid for and still pending after 15 minutes, with their total. Failure rates are based on first attempts; retries are counted separately, so no payment is counted twiceWooCommerce hooks and two aggregate queries on cron
Background jobsAction Scheduler pending, past-due, running, stuck and failed actions; whether the backlog is growing or shrinking, and the estimated time to clear it; WP-Cron spawn healthOn cron, from the queue’s own tables
IntegrationsOutbound HTTP calls made through the WordPress HTTP API, counted by host: calls, failures, maximum response time, error class. Never a path, query, header or body. Calls made with cURL directly or through a vendor SDK’s own client are not seen; report them yourselfThe WordPress HTTP API’s own hooks, written once per request at shutdown
FormsSubmissions and failures per form. Every submission attempt is counted; form events are not sampled. A submission the form rejected (validation, spam, captcha, honeypot) is counted separately and never treated as a failureForm plugin hooks
MailEvery message WordPress hands to its mailer, and every one the mailer refused, by mailer plugin and error class. This tracks the handoff to the mailer, not delivery to the recipient. Never an address, subject or bodyCore’s own mail hooks, so SMTP and API mailer plugins are seen alike
Request timeThe storefront is judged on its average sampled request, over at least eleven requests and leaving out the slowest, so one slow page is not a slow store; a storefront alert needs an average of 5 seconds held for 30 minutes. wp-admin and AJAX/REST are judged the same way against their own baselines and never go above warning. The slowest request per surface is kept as a reading to look at, never as a problemOne request in fifty (2 %), timed in PHP; the uptime probe and WP-CLI are never sampled
ErrorsPHP error classes with redacted messages; checkout errorsError handler; the PHP error log’s tail on cron (Insight)
HostLoad, CPU, memory, disk, database status counters, opcache. Each reading says whether it describes the site’s container, its own server or a shared serverFrom inside PHP on cron, as the web user. Nothing installed (Insight)
Your own codeCustom forms, events, values, timings, integration calls and errors you choose to recordSix WordPress actions, below

Events are appended to a local spool file and uploaded in gzipped batches by cron. The service validates every event against a schema and a per-type list of allowed attributes, redacts free text a second time, removes duplicates, and rolls the events up into one-minute, five-minute, hourly and daily series.

On Watch, the free plan, the plugin collects exactly what it does on every plan, but nothing learns from it or alerts on it. Watch runs fixed checks on two things: our own check of the public URL, and the plugin’s heartbeat. The heartbeat carries a few counts from the Action Scheduler and WooCommerce Subscriptions tables (actions past due and failed, renewal orders created and failed) and whether the store can take an order: how many payment methods are enabled, the status of the checkout, cart and shop pages, how many products are in stock, and when each last worked.

How Operanse learns what’s normal

Operanse builds a separate baseline for each metric and each hour of the week. Monday morning’s orders are compared with previous Monday mornings, not with Sunday night.

Each baseline is the median and the median absolute deviation (MAD) of the five-minute measurements for that hour. Both resist outliers, so one bad hour last week does not move the band much. A reading is compared with that band, not with a threshold someone typed.

Low-volume metrics get a second check over a longer period: the last hour’s total is compared with the total the baseline expected, so a store that takes six orders an hour is judged fairly, and a single quiet five minutes does not raise an alert.

Operanse also detects activity that has stopped. When a counter sits at zero for longer than its longest previous gap, it is reported as stopped, after checking it against its own rate just before and against the rest of the site in the same hour, so a quiet midnight does not page anyone.

How severity is decided

An alert’s severity depends on how far outside the band the reading is, and a critical alert also needs a change that is large in absolute terms: ten failed payments, not five that only look dramatic because the store normally has none. A failure rate is judged over at least twenty attempts, reaching back up to an hour on a quiet store, so one decline in a quiet five minutes is not a 33 % failure rate.

Slow database queries are a diagnostic signal and never go above warning. Warnings still create incidents and send alerts, but they don’t use up an AI review.

An anomaly is a reason to look, not a verdict. The detectors are tuned to tell you early, so some alerts will be an unusual hour with an ordinary explanation. Each alert says what it saw and which normal it compared against, so you can tell quickly.

When monitoring becomes available

  • 48 hours of continuous data before a baseline is ready.
  • Two weeks for a store whose renewals run weekly. The dashboard reads the renewal schedule from WooCommerce Subscriptions to know this.
  • From day one, fixed rules apply until the baselines are ready, and each alert they raise states the time period and threshold it used. The site page shows when each baseline will be ready.

Incidents and revenue impact

Related anomalies detected within 30 minutes of each other on the same environment are grouped into one incident. If the site is down, that becomes the incident’s primary issue.

Every open anomaly is given a business impact based on the store’s own historical hourly sales: an estimated shortfall for a metric that carries revenue, such as orders or renewals; the amount at risk for one that doesn’t; or, when the figure needed is missing, a statement of which figure is missing rather than a guess. Technical metrics such as server load are never converted into money.

Reviews: Monitor and Insight

MonitorInsight
How an incident is investigatedA rule-based planner gathers the relevant observationsThe same evidence, analysed by an AI model
AI model callNoneOne review per critical incident
ResultThe relevant observations, in orderA likely explanation, with every statement citing its evidence

An Insight review is written from labelled evidence records. Every statement in it must cite evidence that exists, and a validator rejects the review otherwise. AI conclusions are stored separately from observed facts and never replace the original evidence. 6 reviews a day per site are included; more are charged at $1.50 each, and only if you set a ceiling for them.

Notifications

When an incident triggers a review, Operanse briefly holds the first email so the diagnosis arrives in the message that reports the incident, not in a later one. If the review hasn’t finished within 15 minutes, the alert is sent without it, and the review appears on the incident page when it completes.

Alerts go to email, Slack (an incoming webhook, or the “Add to Slack” install), SMS and WhatsApp. SMS and WhatsApp carry critical alerts only, because they are paid per message. Every destination confirms by double opt-in before it receives anything.

Who gets what is set in two places: a rule is the organisation’s policy on which sources, sites and hours alert, and each recipient has its own minimum severity, so “everything by email, critical by SMS” is two recipients and no extra rule. Recipients, rules, quiet hours and summaries are in alerts and notifications.

What it costs the site, measured

0.02 msPHP time added to a page view
0Extra database queries on a visitor request, with a private data directory configured
0Outbound HTTP calls made during a visitor request

During a visitor’s request the plugin only registers its hooks, decides whether to sample the request, and, when the request produces an event, appends one line to the spool file under flock. Collection, upload, discovery, the host collector and job polling all run from cron. A page served from your cache never loads the plugin at all, which is also why page views are not something this product counts.

How it was measured. A 200-request benchmark against a control arm with the plugin deactivated counted zero outbound HTTP calls attributable to the plugin and no added database query; the PHP time was measured directly. Whole-request timing on a store that takes 460 ms per page cannot resolve a difference that small, so the benchmark reports it as NOT RESOLVED rather than claim a number. Queries and network calls can be counted exactly, so those are the claims made. The host collector runs to a two-second budget per cron run, reads at most 1 MiB of the error log, and reports its own run time with every reading.

Without a private data directory. If the plugin cannot find a writable directory outside the web root, it buffers events in one bounded database table instead. That adds a SELECT and an INSERT, about 1.8 ms, to each request that produces an order, payment or form event; other requests are unaffected. The admin notice says so and cannot be dismissed, and adding the OPERANSE_DATA_DIR line above ends it on the next page load.

The plugin's settings page, on your siteSettings → Operanse

What Operanse costs a visitor’s request

Every page view: about 0.02 ms of PHP time and no extra database query. This is what 100 % of your visitors’ requests cost — hook registration and one random draw.

A sampled request: about 0.03 ms more, and no database query: the event is appended to a local file. Operanse samples 2 % of requests (one in fifty).

Database buffering: not in use. Nothing is written to your database on a visitor request. Events go to a private file outside your web root.

The host, with nothing installed

A PHP process can read its own host without special privileges: /proc, the cgroup files, disk_free_space(), SHOW GLOBAL STATUS, opcache_get_status(), and the error log its own PHP wrote.

Not every server metric describes resources dedicated to your site, though. Once per run the collector works out which kind of host it is on, and labels every measurement with that scope.

ScopeWhat the measurement describes
cgroup (container)The site’s container, measured against its own resource limits.
hostA server the site has to itself: a VPS, a droplet, a dedicated machine.
sharedA server shared with other sites, so the figure includes their activity. It is kept, because a server at load 40 is still why the site is slow, and every alert says it is the server’s figure. Your account’s share is never guessed.
unreadable (unavailable)The measurement cannot be read: Windows, open_basedir, or a disabled PHP function. The reason is reported.

On a managed VPS such as Cloudways the figures are your own server’s and nothing needs installing. Web-server access logs and syslog are not read: they need root, and they are full of visitor IPs and URLs. The PHP error log is read because it is the one log with no visitor data in it; it passes through the redactor, with paths reduced to file names.

Two host readings, each labelled with its scopescope on every reading
memory
61 % — this container’s memory, of its 2.0 GB limit cgroup
load
3.4 on 8 CPUs — the host’s load, not this account’s shared
database
12 / 151 connections — the server’s, not this site’s own shared
disk
71 % used, 14.2 GB free — the filesystem the site lives on host

Your own code

Operanse automatically monitors the WooCommerce, form-plugin and WordPress HTTP API activity described above. For custom code outside those, such as a form posting to its own REST route, an import running on cron or a call made through a vendor SDK, six ordinary WordPress actions report a form, an event, a timing, an integration call or an error. Each lands where the built-in kind does: a custom form joins the forms pipeline and can become a monitor with its own baseline, and a named event gets its own dashboard tab, its own MCP tool and its own monitor type. If the plugin is not installed the call does nothing, so the lines are safe to leave in.

do_action( 'operanse_event', 'lead.created', array( 'value' => 149.0, 'label' => 'Lead created' ) );

These are PHP actions, called on the server; a front-end form reports from the WordPress endpoint that receives its submission. The six actions, their arguments and their limits are in reporting from your own code.

Connect your own AI through MCP

Both paid plans include a hosted MCP server. A client such as Claude, ChatGPT or Cursor adds it by URL, signs in with an Operanse account on our sign-in page, and chooses which organisations it may read. The server only provides read access: every answer states its source and how fresh it is, and a member limited to certain sites sees only those sites over MCP. Connecting an assistant.

How a read job reaches the site

When the dashboard, an MCP client or a review needs a live read from the site, it creates a job from a fixed list of read capabilities. By default the plugin checks for pending jobs on cron, and no inbound endpoint exists. A site can instead hold an outbound stream open from a process on the host, so jobs arrive in seconds, or accept signed inbound requests on a REST route it chooses to enable. All three run the same closed list of read-only capabilities through the same executor, with the same audit record. Connection modes.

What it deliberately does not do

  • No visitor analytics: no URLs visited, referrers, cookies, sessions, IP addresses or visitor identifiers are collected. This is operational analytics, how the store is running, not visitor analytics, which is a different product.
  • No remediation: no updates, rollbacks, fixes or snippets. The ability to change a site is absent by design, not switched off.
  • No log ingestion beyond the PHP error log’s counts and three redacted samples per level.
  • No simulated checkouts or test orders. Payment and checkout problems are detected from the store’s real activity, so a front-end script failure that produces no event is seen when orders stop arriving, which takes about thirty minutes.
  • No automatic monitors: a form the product thinks matters is proposed, and an owner or admin confirms it.

Reference material, from installing the plugin to troubleshooting it, is in the documentation.