100% Free · Open Source GPLv2 · Zero setup requiredGet the Plugin

Opens in a new tab
ITX UserOps

Database

Three tables free, thirteen more in premium, one option — and nothing in wp_options per user.

All names take your WordPress table prefix.

Free

itxuo_activity

The event log.

id             BIGINT UNSIGNED  AUTO_INCREMENT
event          VARCHAR(64)
severity       TINYINT UNSIGNED  DEFAULT 1
user_id        BIGINT UNSIGNED   DEFAULT 0
actor_id       BIGINT UNSIGNED   DEFAULT 0
ip             VARBINARY(16)     NULL
user_agent     VARCHAR(255)      NULL
meta           LONGTEXT          NULL
chain_prev     CHAR(64)          NULL
chain_hash     CHAR(64)          NULL
created_at     DATETIME

KEY user_event  (user_id, event, created_at)
KEY event_time  (event, created_at)
KEY actor_time  (actor_id, created_at)
KEY created_at  (created_at)
KEY ip_time     (ip, created_at)

ip is VARBINARY(16) — packed binary, so one column holds IPv4 and IPv6 and can be indexed and range-queried. Not a string.

user_id and actor_id are separate because they differ whenever an administrator acts on somebody else. A log with only one of them is not an audit trail.

chain_prev and chain_hash are nullable, for rows written before schema 2, and are deliberately not indexed — nothing looks a row up by hash, and this table's hot path is inserting.

itxuo_sessions

The session mirror.

id             BIGINT UNSIGNED  AUTO_INCREMENT
user_id        BIGINT UNSIGNED
token_hash     CHAR(64)
ip             VARBINARY(16)    NULL
user_agent     VARCHAR(255)     NULL
browser        VARCHAR(32)      NULL
os             VARCHAR(32)      NULL
device         VARCHAR(16)      NULL
country_code   CHAR(2)          NULL
login_at       DATETIME
last_activity  DATETIME
expires_at     DATETIME

UNIQUE KEY token          (token_hash)
KEY        user_id        (user_id, last_activity)
KEY        last_activity  (last_activity)

token_hash, never the token. The mirror can report a session and end it; it cannot be used to impersonate one.

itxuo_email_log

The email log.

id             BIGINT UNSIGNED   AUTO_INCREMENT
status         TINYINT UNSIGNED  DEFAULT 0
handler        TINYINT UNSIGNED  DEFAULT 0
category       VARCHAR(32)
to_email       VARCHAR(255)
to_hash        BINARY(8)         NULL
to_count       SMALLINT UNSIGNED DEFAULT 1
from_email     VARCHAR(255)
subject        VARCHAR(255)
content_type   VARCHAR(64)
attachments    TINYINT UNSIGNED  DEFAULT 0
error          VARCHAR(255)      NULL
body           MEDIUMTEXT        NULL
body_bytes     MEDIUMINT UNSIGNED NULL
created_at     DATETIME

KEY status_id  (status, id)
KEY to_hash    (to_hash)

to_hash is the first 8 bytes of a SHA-256 of the lowercased address — the same trick as ip VARBINARY(16): "everything sent to this address" indexes in 8 bytes instead of the 80 a utf8mb4 prefix index would reserve. Queries match on to_hash and to_email, so a collision costs two row reads and cannot return a wrong answer.

body is NULL unless storing message contents is switched on, which is why the envelope-only default keeps this table small.

Premium

TableHolds
itxuo_alert_rulesAlert rule definitions
itxuo_alert_deliveriesDelivery attempts and outcomes
itxuo_passkeysWebAuthn credentials
itxuo_password_historySuperseded password hashes for reuse prevention
itxuo_known_devicesRecognised devices for adaptive step-up
itxuo_groups / itxuo_group_membersGroups
itxuo_delegationsDelegation scopes
itxuo_temp_linksTemporary access links
itxuo_workflow_templates / itxuo_workflow_runsWorkflows and their manifests
itxuo_sync_runsDirectory sync history
itxuo_historyImported historical records

Options

itxuo_settings — one autoloaded option holding every setting, flat keys and dotted paths together.

Plus small bookkeeping options: itxuo_schema_version, itxuo_premium_schema_version, itxuo_tracking_since, itxuo_email_logging_since, itxuo_chain_state, itxuo_can_use_premium_code.

On multisite, itxuo_network_policy is a network option — see Network.

What is not stored

Nothing in wp_options per user. No itxuo_user_1234 rows. That pattern bloats the autoloaded option table and slows down every request on the site, including front-end ones.

Nothing in post meta.

Which is why a large activity log costs you disk and nothing else. The tables it lives in are not read on a front-end page view.

Scheduled jobs

HookDoes
itxuo_purge_activityApplies free retention, daily
itxuo_purge_email_logApplies email log retention, daily
itxuo_sweep_sessionsRemoves expired session rows
itxuo_compliance_purgePer-category retention
itxuo_sweep_app_passwordsIdle application-password revocation
itxuo_inactive_sweepInactive account rules
itxuo_expire_accountsAccount expiry, hourly
itxuo_dirsync_runDirectory sync
itxuo_report_weekly / itxuo_report_monthlyReports
itxuo_alert_drain / itxuo_logstream_drainDeferred alert and SIEM delivery
itxuo_history_backfillHistorical import batches
itxuo_chain_anchor_publishChain anchoring

All on WP-Cron. See the DISABLE_WP_CRON note under constants.

Schema versioning

itxuo_schema_version and itxuo_premium_schema_version track the installed schema. Migrations run on load when the stored version is behind.

They are tested against populated tables, not empty ones — a migration that works on a fresh install and fails at 200,000 rows is the only kind that matters.

Capability

itxuo_manage, granted to the administrator role at activation. Every console surface is gated on it rather than on manage_options.

Log in

Vote on ideas, submit your own and join the discussion.