跳到内容

Shibisty Sharing Activity Detector

v5.0.2

Alexander Shibisty · 2026年9月29日 上架

Tracks user sessions/requests, flags suspicious multi-device activity, and gives admins an interactive timeline, a full request log, and settings.

正在使用
10 以下
评分
暂无
累计下载
208
最近更新
2026年9月29日
需要 WordPress 5.0+已测试到 7.1.5PHP 7.4+

Shibisty Sharing Activity Detector logs requests (page views, REST/AJAX calls, admin-area hits, and optional heartbeat pings) into a dedicated database table, then groups them into sessions per user/device. From that it computes, for each user:

  • Range — the sum of all active time intervals (how long the user was actually on the site).
  • Total per device — the sum of each device’s active time, computed separately.
  • Parallel time — Total − Range. A value greater than zero means two or more devices were active for the same user at the same time, which is the core signal this plugin is built to detect (e.g. a shared account being used from two locations at once).

Session boundaries are computed with a simple gap rule: if two consecutive requests from the same user/device are ≤ 5 minutes apart, they belong to the same session and the time between them is counted; a gap of more than 5 minutes is treated as the user having left, and that gap is not counted toward active time.

Admin screens

All screens live under Suspicious Activity in the admin menu (manage_options capability required):

  • Activity (wp-suspicious-activity) — list of users with a suspicious-activity timeline, sortable/filterable.
  • Request Logs (wp-sad-request-logs) — full paginated log of every recorded request, with filters and sortable columns.
  • Settings (wp-sad-settings) — logging rules and heartbeat.
  • Log View (wp-sad-log-view, hidden) — detail view of a single log entry, linked from the Request Logs list.
  • Activity View (wp-sad-activity-view, hidden) — detail view of a single user’s activity/timeline, linked from the Activity list.

Filter selections on the Activity and Request Logs screens are remembered in the browser (localStorage) and restored on your next visit; the Reset button always clears them and returns to the default view. Wherever a user is identified from a session, their name links directly to their WordPress profile/edit-user page.

Settings

Found under Suspicious Activity Settings:

  • Audience (who gets logged) — All users (including guests), Registered users only, or Admins only.
  • Logging scope (what gets logged) — all pages/API/admin area, only pages and heartbeat, only the site excluding admin area and heartbeat, only admin area and heartbeat, or stop logging entirely.
  • Logging window (when to log) — Always, or only during a specific time-of-day window (from–to). Windows that cross midnight (e.g. 22:00–06:00) are supported.
  • Heartbeat — enable/disable, plus a configurable ping interval (15–600 seconds). When enabled, a small script pings the plugin’s own REST endpoint (/wp-json/wp-sad/v1/heartbeat) at that interval for as long as the browser tab is open and visible, so active time is counted accurately even between page loads, without relying on admin-ajax.php.

Localization

The plugin’s source strings are in English (shibisty-sharing-activity-detector text domain, .pot template included in /languages) and hand-written translations already exist for 30 additional languages — Ukrainian, Russian, German, French, Spanish, Italian, Portuguese (Brazil), Portuguese (Portugal), Polish, Dutch, Romanian, Czech, Hungarian, Bulgarian, Greek, Turkish, Swedish, Finnish, Lithuanian, Croatian, Serbian, Georgian, Azerbaijani, Kazakh, Belarusian, Arabic, Hebrew, Hindi, Chinese (Simplified), and Japanese. Like every WordPress.org-hosted plugin, translations are delivered through translate.wordpress.org and applied automatically based on each admin’s own profile language — there’s no plugin-specific language setting.

Architecture

The plugin is split into logic and presentation layers rather than one monolithic file:

`

shibisty-sharing-activity-detector/
├── shibisty-sharing-activity-detector.php # Bootstrap: constants, requires, activation
├── includes/
│ ├── class-plugin.php # Orchestrator: hooks, wiring
│ ├── class-db.php # Table name/schema, install + upgrade (dbDelta), checked on every init
│ ├── class-settings.php # Settings storage and sanitization
│ ├── class-request-logger.php # Classifies + gates + records each request
│ ├── class-heartbeat.php # REST heartbeat route + front-end pinger
│ ├── class-session-analyzer.php # Pure session/timeline/risk calculation logic
│ ├── class-view-helpers.php / class-query-helpers.php
│ ├── class-admin-menu.php # Menu registration, asset enqueueing
│ └── admin/ # Page controllers (Activity, Request Logs, Log View, Activity View, Settings)
├── views/ # Plain PHP templates — no business logic or queries
├── assets/ # css/, js/ (timeline UI, filter persistence, heartbeat pinger)
└── languages/ # .pot template (translations delivered via translate.wordpress.org)
`

Request records carry a request_type (page, api, admin, or heartbeat), set at write time, which the session analyzer uses to decide what counts as a genuine presence signal versus administrative/system noise.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums