Title: Liaison Site Prober Viewer
Author: Liaison
Published: <strong>March 4, 2026</strong>
Last modified: March 4, 2026

---

Search plugins

![](https://s.w.org/plugins/geopattern-icon/liaison-site-prober-viewer.svg)

# Liaison Site Prober Viewer

 By [Liaison](https://profiles.wordpress.org/liaison/)

[Download](https://downloads.wordpress.org/plugin/liaison-site-prober-viewer.1.0.0.zip)

 * [Details](https://en-au.wordpress.org/plugins/liaison-site-prober-viewer/#description)
 * [Reviews](https://en-au.wordpress.org/plugins/liaison-site-prober-viewer/#reviews)
 *  [Installation](https://en-au.wordpress.org/plugins/liaison-site-prober-viewer/#installation)
 * [Development](https://en-au.wordpress.org/plugins/liaison-site-prober-viewer/#developers)

 [Support](https://wordpress.org/support/plugin/liaison-site-prober-viewer/)

## Description

A dynamic Gutenberg block for Liaison Site Prober that fetches and displays real-
time
 system logs via the REST API. Engineered for performance and security, it 
provides a seamless way to visualize site activity without compromising page speed.

### Architecture

Plugin structure:

liaison-site-prober-viewer/
 ├── src/ │ ├── edit.js # Block editor UI │ └── editor.
scss # Block editor styles ├── build/ │ └── index.js # Compiled block code ├── **
tests**/ # Jest unit tests ├── liaison-site-prober-viewer.php # Plugin bootstrap
└── package.json / node_modules # JS dependencies

Architecture Diagram (textual):

[Database: liaison-site-prober activity table]
 | v [WordPress REST API endpoint:
wp-json/site-prober/v1/logs] | v [Gutenberg dynamic block: liaison-site-prober-viewer]
| v [Editor/UI: renders logs in a table inside the block]

### Data Flow

 1. liaison-site-prober writes activity logs into the database.
 2. The REST API (`wp-json/site-prober/v1/logs`) exposes logs in JSON format.
 3. The dynamic Gutenberg block (`Edit` component) calls `apiFetch({ path: '/site-prober/
    v1/logs' })`.
 4. The block maintains internal state:
 5.  * `loading`  shows Spinner
     * `error`  shows Notice
     * `logs`  renders table rows
 6. Logs are displayed dynamically in the block editor and frontend (if rendered).

### Why Dynamic Block

 * Logs are constantly changing; storing static markup would show stale data.
 * Dynamic block fetches fresh logs each render.
 * No need for manual updates in post content.
 * Leverages REST API + React state for live data.

### Security Considerations

 * Permissions:
    - REST endpoint uses `permission_callback` to restrict access.
 * Sanitization:
    - All output in the block uses `esc_html()` to prevent XSS.
 * Deactivation checks:
    - Plugin checks that `liaison-site-prober` is installed and meets minimum version.
 * Avoid exposing sensitive data:
    - Only logs intended for admin or authorized users are returned.
 * Use `wp_die()` for activation errors, preventing unsafe state.

### Trade-offs / Limitations

 * Pros:
    - Easy to use in Gutenberg editor.
    - Always shows live logs.
    - Minimal custom PHP; relies on WordPress REST API.
 * Cons:
    - Slightly slower in editor due to API fetch.
    - Unit testing does not hit real database (mocked).
    - Requires liaison-site-prober to be installed.
    - Not fully decoupled from REST API; block depends on API stability.

### Testing

 * Run JS unit tests:
    `bash npm ci npm test

Block uses Jest with @wordpress/scripts preset.

REST API calls are mocked; tests cover loading, empty, and error states.

## Blocks

This plugin provides 1 block.

 *   Liaison Site Prober Viewer Display Site Prober logs in a table.

## Installation

 1. Install `liaison-site-prober` plugin (v1.2.0+ required).
 2. Upload `liaison-site-prober-viewer` to `wp-content/plugins/`.
 3. Activate plugin in WordPress admin.
 4. Add “Liaison Site Prober Viewer” block to a post/page.
 5. Logs will automatically load in the block editor.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Liaison Site Prober Viewer” is open source software. The following people have 
contributed to this plugin.

Contributors

 *   [ Liaison ](https://profiles.wordpress.org/liaison/)

[Translate “Liaison Site Prober Viewer” into your language.](https://translate.wordpress.org/projects/wp-plugins/liaison-site-prober-viewer)

### Interested in development?

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

## Changelog

#### 1.0.0

Initial release: dynamic Gutenberg block for viewing liaison-site-prober logs.

## Meta

 *  Version **1.0.0**
 *  Last updated **7 months ago**
 *  Active installations **Fewer than 10**
 *  WordPress Version ** 6.0 or higher **
 *  Tested up to **6.9.10**
 *  PHP Version ** 7.4 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/liaison-site-prober-viewer/)
 * Tags
 * [block](https://en-au.wordpress.org/plugins/tags/block/)[gutenberg](https://en-au.wordpress.org/plugins/tags/gutenberg/)
   [logs](https://en-au.wordpress.org/plugins/tags/logs/)
 *  [Advanced View](https://en-au.wordpress.org/plugins/liaison-site-prober-viewer/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/liaison-site-prober-viewer/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/liaison-site-prober-viewer/reviews/)

## Contributors

 *   [ Liaison ](https://profiles.wordpress.org/liaison/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/liaison-site-prober-viewer/)