Requirements
System requirements for Burst Statistics v3.7.3.
Server requirements
| Requirement | Minimum |
|---|---|
| WordPress | 6.6 |
| PHP | 8.0 |
WordPress
Burst Statistics requires WordPress 6.6 or higher. The plugin hooks into plugins_loaded (priority 1 and 9) and relies on the WordPress options API, cron API, REST API, and $wpdb for database access.
PHP
Burst Statistics requires PHP 8.0 or higher.
If the active PHP version is incompatible and the plugin fails to bootstrap, Burst catches the error and stores it in the following options:
| Option | Content |
|---|---|
burst_php_error_time | Unix timestamp of the last error |
burst_php_error_count | Cumulative error count |
burst_php_error_detected | Concatenated error messages (newline-separated) |
An admin notice is then shown in the WordPress dashboard:
Urgent action required
Burst can not load due to the following error: …
Resolve the underlying PHP issue to clear this notice.
Optional PHP extensions
Core tracking and reporting need no PHP extensions beyond what WordPress itself requires. The data export and import features use two optional extensions, and degrade predictably when they are missing.
| Extension | Used for | Behaviour when unavailable |
|---|---|---|
zlib (gzopen) | Writing and reading .sql.gz exports, and decompressing a .sql.gz backup during import | Exports fall back to the zip format; a requested sql.gz export is written as plain .sql |
ZipArchive | Writing and reading .zip exports, and extracting .zip archives during import | The zip format is unavailable; the export stays an uncompressed .sql file |
The export status endpoint reports both probes so the UI can offer only the formats the server supports:
| Field | Type | Description |
|---|---|---|
gzip_supported | bool | true when gzopen() exists |
zip_supported | bool | true when the ZipArchive class exists |
Show code
// Read the probes from the export status action.
$status = burst_loader()->admin->app->rest_api_get_action(
new WP_REST_Request( 'GET', '/burst/v1/get_action/export_status' )
);
$data = $status->get_data();
if ( empty( $data['gzip_supported'] ) && empty( $data['zip_supported'] ) ) {
// Neither extension is present: exports are written as plain SQL.
}
If neither extension is present, exports still work — the archive is a plain, uncompressed .sql file, which is considerably larger than a compressed one.
Optional plugin dependency: AI report summary
The ai_summary report block writes a short prose summary of the report period. It is optional: without the dependencies below, every other report block keeps working and the block itself reports why it is unavailable.
Prerequisites
- The WordPress AI plugin, providing either
wp_ai_client_prompt(),WordPress\AI\get_ai_service()or theWordPress\AiClient\AiClientclass - The Abilities API, detected through
wp_register_ability() - Burst's Abilities setting enabled
- A configured provider API key
- Completed connector approvals under Tools > Connector Approvals
Burst probes the prompt builders in that order and uses the first one it finds, so any one of the three is enough.
Show code
use Burst\Admin\Reports\Report_AI_Summary;
// Both the AI client and the Abilities API must be present.
if ( ! Report_AI_Summary::is_ai_plugin_active() ) {
return;
}
// Full availability also covers the Burst setting, the provider key and the approvals.
if ( Report_AI_Summary::is_available() ) {
$summary = apply_filters( 'burst_report_ai_summary', '', $report, $rendered_blocks, null );
} else {
// Translated sentence naming the missing dependency.
$reason = Report_AI_Summary::get_disabled_reason();
}
Return values
| Method | Returns |
|---|---|
Report_AI_Summary::is_ai_plugin_active() | true when the Abilities API and one of the AI client functions or classes are loaded |
Report_AI_Summary::is_available() | true when the setting, the plugin, the provider key and the approvals are all in place |
Report_AI_Summary::get_disabled_reason() | Translated sentence naming the first missing dependency, or an empty string when nothing is missing |
Report_AI_Summary::get_last_error() | Error message of the last failed generation, empty string after a successful one |
The reason messages follow the checks in order: the Abilities setting, the AI client, the provider key, the connector approvals. A generation that fails after all checks pass returns an empty summary; read get_last_error() for the provider message.
Troubleshooting
- The block stays empty while everything is configured. The summary is generated per send and stored on the report row, so a report saved before the dependencies were in place keeps its empty summary until the next scheduled send regenerates it.
- The reason names connector approvals. Approve Burst, the WordPress AI plugin and the provider under Tools > Connector Approvals; the message lists exactly which approvals are still missing.
Request body inspection budget
Burst Pro installs a must-use plugin (Burst REST API Optimizer) that skips unrelated plugins on Burst REST requests. To decide whether the ecommerce integrations must stay loaded, it inspects the raw request body for a should_load_ecommerce flag.
That inspection is capped at 64 KB (BURST_REST_API_OPTIMIZER_BODY_LIMIT). A request whose body exceeds the budget — either by declaring a larger Content-Length or by turning out larger while being read — is never buffered: the optimizer keeps every plugin active for that request, so the request still works, only without the fast path. The REST handler always receives the full body regardless of this limit.
The budget only affects plugin loading, never request data. Large POST bodies to Burst endpoints are handled normally; they simply do not benefit from the optimization.
Show code
// Short-circuit the raw body read (used by the test suite; php://input
// cannot be populated from PHPUnit).
add_filter(
'burst_rest_api_optimizer_pre_request_body',
function ( $raw, int $limit ) {
return wp_json_encode( [ 'should_load_ecommerce' => true ] );
},
10,
2
);
| Parameter | Type | Default | Description |
|---|---|---|---|
$raw | string|false|null | null | null reads php://input, a string is used as the body, false simulates a failed read |
$limit | int | 65536 | Inspection budget in bytes |
Free and Pro compatibility
When both the free and the pro plugin are present, the pro plugin will automatically deactivate the free plugin, and (unless WP_DEBUG is defined) remove it. Pro will not remove the free plugin in debug mode, to allow for easier debugging and development.
As both plugins share the same codebase, the BURST singleton class is only defined once, regardless of which plugin file loads first:
Show code
if ( ! class_exists( 'BURST' ) ) {
class BURST {
public static $instance;
public static function instance(): BURST {
if ( ! isset( self::$instance ) && ! ( self::$instance instanceof BURST ) ) {
self::$instance = new BURST();
}
return self::$instance;
}
}
}
This guard means it is safe to have both plugins present simultaneously during an upgrade; the free plugin is deactivated automatically once pro is active.
Database
Burst Statistics creates and manages custom database tables on activation and upgrade. All tables are prefixed with the site's configured $wpdb->prefix and are created using dbDelta() via WordPress's upgrade API.
| Table | Purpose |
|---|---|
burst_statistics | Raw visitor page-view records |
burst_sessions | Session-level data |
burst_goals | Goal definitions |
burst_goal_statistics | Goal conversion records |
burst_browsers | Browser lookup table |
burst_browser_versions | Browser version lookup table |
burst_platforms | OS/platform lookup table |
burst_devices | Device-type lookup table |
burst_referrers | Referrer URL storage |
burst_query_stats | Search query statistics |
burst_imports | Import registry, one row per import run |
burst_event_names | Custom event name dictionary |
burst_events | Recorded custom events |
burst_page_weights | Rolling average transfer weight per page |
burst_page_weight_history | Historic page weights, one row per accepted sample |
Database engine and feature support
Burst enforces no minimum MySQL or MariaDB version beyond what WordPress itself requires. Core tracking and reporting run on any database WordPress supports.
Burst detects the database engine (mysql, mariadb or sqlite) and its version from the server. Several performance optimisations are gated on database capabilities: when the server does not meet a requirement, Burst skips the optimisation and falls back to a slower but correct query path, so no feature breaks on an unsupported engine.
| Optimisation | Requirement | Fallback when unavailable |
|---|---|---|
| Filter-column histograms | MySQL 8.0.3 or higher; skipped on MariaDB | The weekly ANALYZE TABLE … UPDATE HISTOGRAM is not run; the optimiser estimates the skewed filter columns without a stored distribution |
| Window functions and CTEs | MySQL 8.0.2 or higher, or MariaDB 10.2 or higher | The Sources list runs the untrimmed grouping query instead of the per-category top-N trim |
| JSON functions | MySQL 5.7.8 or higher, or MariaDB 10.2.3 or higher | Scroll analytics returns the scroll-depth metrics only, without the per-zone dwell-time aggregation |
| Instant column drop | MariaDB 10.4 or higher, or MySQL 8.0.32 or higher | The upgrade drops the column with an online ALGORITHM=INPLACE, LOCK=NONE table rebuild instead, which takes longer on a large table but keeps reads and writes running |
Filter-column histograms are refreshed weekly and are limited to MySQL 8.0.3+; MariaDB's PERSISTENT statistics require a full table scan (with table-flush stalls that can reach the tracking path), so Burst does not run them there. Histogram refresh failures are ignored silently, because managed hosts may restrict ANALYZE.
Query execution time limits
Burst caps the execution time of its dashboard and background queries so a degraded query plan cannot hold a PHP worker for its full duration. The mechanism differs per engine, because MySQL and MariaDB implement different features:
| Engine | Mechanism |
|---|---|
| MySQL | The MAX_EXECUTION_TIME optimizer hint on the statement's top-level SELECT. For a WITH … SELECT statement the hint goes on the main SELECT after the CTE list, because a hint inside WITH is ignored |
| MariaDB | A SET STATEMENT max_statement_time=… FOR prefix (MariaDB 10.1 or higher). MariaDB before 12.0 parses MAX_EXECUTION_TIME as a plain comment, so the hint alone would leave the query unbounded |
A query that hits the limit is reported as a timeout, not as an error: the block falls back or returns no data instead of failing the request. Burst recognises the timeout wording of both engines, including MariaDB 12.x, which reports Query was interrupted: execution time limit N sec exceeded where earlier versions report max_statement_time exceeded.
Two filters control the budgets, in milliseconds:
| Filter | Applies to | Default |
|---|---|---|
burst_query_timeout_ms | Dashboard and REST queries | Request-time budget |
burst_query_timeout_ms_background | Cron and other background queries | Background budget |
Show code
// Raise the dashboard query budget to 15 seconds.
add_filter(
'burst_query_timeout_ms',
function ( int $timeout_ms ): int {
return 15000;
}
);
Returning 0 from either filter disables the cap, which lets a slow query run to completion.
Upgrade-time schema changes
The upgrade pipeline drops the columns and the lookup table that earlier releases kept only so a downgrade would run without database errors. The task runs last in the pipeline, after the visitor-identity migration, and only from WP-Cron or WP-CLI — never during a dashboard page load, because the drop can rebuild a large table.
| Server | Behaviour |
|---|---|
| MariaDB 10.4+ or MySQL 8.0.32+ | Instant, metadata-only drop (ALGORITHM=INSTANT), which takes seconds on any table size |
| Older servers, or when the server refuses an instant drop | Online rebuild (ALGORITHM=INPLACE, LOCK=NONE): reads and writes keep working while the table is rebuilt, so the drop takes proportionally longer on a large statistics table |
Every indexed column is dropped from its indexes first, which is a metadata-only change. Each ALTER briefly needs an exclusive metadata lock, during which new writes queue behind it; Burst caps that wait with a session lock_wait_timeout of 10 seconds, so a drop blocked behind a long-running query fails and is retried on a later cron run instead of stalling tracking. One table is handled per cron run, and a table whose drop keeps failing (disk space for the rebuild, repeated lock timeouts) is given up after three attempts: the leftover columns are harmless, and the cleanup must not keep the upgrade dispatcher busy.
This cleanup is non-blocking: while it is pending, the dashboard's fast query paths stay enabled, so a long rebuild never degrades reporting. Read the progress of this and every other upgrade task under Tools > Site Health > Info > Burst, which lists each task's state, attempt count and whether it stalled.
Multisite
Burst Statistics supports WordPress Multisite.
If Burst is activated per site, each site tracks and stores its own data with that site's table prefix.
If Burst is network-activated, the main site can enable network-wide tracking. In that mode, Burst routes tracking to the main site's endpoint and surfaces the dashboard on the main site. If network-wide tracking is left disabled, each site continues to track separately.
Constants
The following PHP constants are available after plugins_loaded fires. They can be used to detect the plugin's presence and version in custom code.
| Constant | Type | Description |
|---|---|---|
BURST_VERSION | string | Current plugin version (3.7.3) |
BURST_PRO | bool | true when the pro plugin is active; undefined otherwise |
BURST_FILE | string | Absolute path to the active plugin's main file |
BURST_PATH | string | Absolute path to the plugin directory (trailing slash) |
BURST_URL | string | Full URL to the plugin directory |
BURST_PLUGIN | string | Plugin basename (e.g. burst-pro/burst-pro.php) |
BURST_PLUGIN_NAME | string | Display name: Burst Pro or Burst Statistics |
BURST_REST_API_OPTIMIZER | bool | true when the REST API optimizer mu-plugin is loaded; undefined otherwise |
BURST_REST_API_OPTIMIZER_BODY_LIMIT | int | Request body inspection budget in bytes (65536) |
The lowercase aliases burst_version and burst_pro are deprecated and kept only for backward compatibility. Do not use them in new code.