WordPress plugin intelligence profile

DockTHOR

DockTHOR is a lightweight WordPress integration for sending PHP errors and exceptions to the THOR monitoring platform.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 6.9
Current version1.0.0
WordPress coverageTested up to WordPress 6.9
Minimum stackWP 5.6 · PHP 7.2
Directory statusactive
Last directory update24 Mar 20267mo ago
Active installationsNewAdoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records DockTHOR version 1.0.0 as active, updated 7mo ago and tested up to WordPress 6.9.

Overview

About this plugin

DockTHOR integrates WordPress with the THOR monitoring platform and automatically reports PHP errors and uncaught exceptions.

The plugin is designed to work silently in the background and has no admin interface. After installation you only need to configure your THOR project credentials.

Features:

  • Automatic reporting of PHP errors and uncaught exceptions
  • Support for custom error filtering
  • Optional user context information
  • Customizable configuration via WordPress constants and filters
  • Minimal performance overhead

This plugin is intended for developers and teams who want to monitor errors occurring in WordPress installations.

Installation

  • Upload the plugin files to the /wp-content/plugins/dockthor directory, or install the plugin through the WordPress plugins screen.
  • Activate the plugin through the Plugins menu in WordPress.
  • Configure your THOR credentials in wp-config.php.

Example configuration:

php

define( 'DOCK_THOR_TOKEN', 'YOUR_THOR_TOKEN' );

define( 'DOCK_THOR_PRIVATE_KEY', 'YOUR_PRIVATE_KEY' );

Once configured, the plugin will automatically begin reporting PHP errors.

Configuration

php file.

DockTHOR Token

php

define( 'DOCK_THOR_TOKEN', 'YOUR_THOR_TOKEN' );

`<h3>Private Key</h3> php

define( ‘DOCK_THOR_PRIVATE_KEY’, ‘YOUR_PRIVATE_KEY’ );

`

Error Types (optional)

“`php

define( ‘DOCK_THOR_ERROR_TYPES’, E_ALL & ~E_DEPRECATED & ~E_NOTICE & ~E_USER_DEPRECATED );

<h3>Send Default PII (optional)</h3>

If enabled, additional context such as the logged-in user and IP address will be attached to the event. php

define( ‘DOCK_THOR_SEND_DEFAULT_PII’, true );

<h3>Site Version (optional)</h3>

Define the version of your website. This can help track which version of the site generated an error. php

0’ );

<h3>Environment (optional)</h3>

Define the current environment. php

define( ‘DOCK_THOR_ENV’, ‘production’ );

`

Filters

DockTHOR provides several filters that allow developers to customize behavior.

dock_thor_user_context

Allows extending the user context sent to THOR.

Example:

php

add_filter( 'dock_thor_user_context', function ( array $user ) {

return array_merge( $user, ['custom_meta' => 'value'] );

});

Note: These values may be exposed publicly when used in JavaScript trackers.

dock_thor_token

Allows overriding the THOR token.

Example:

php

add_filter( 'dock_thor_token', function ( $token ) {

return 'xxxxxxxxxxxxxxxxxxxx';

});

Using the DOCK_THOR_TOKEN constant is recommended instead.

dock_thor_scope

Allows modifying the THOR scope before events are sent.

Example:

php

add_filter( 'dock_thor_scope', function ( \Dock\Thor\State\Scope $scope ) {

$scope->setTag('custom-tag', 'value');

return $scope;

});

dock_thor_options

Allows customizing THOR SDK options.

Example:

php

add_filter( 'dock_thor_options', function ( \Dock\Thor\Options $options ) {

9);

return $options;

});

Advanced Usage

High volume of notices

Some plugins generate large amounts of PHP notices. You can filter them out:

php

define( 'DOCK_THOR_ERROR_TYPES', E_ALL & ~E_NOTICE );

Capturing handled exceptions

If you want to report handled exceptions:

php

try {

myMethodThatCanThrowAnException();

} catch ( \Exception $e ) {

if ( function_exists( 'dock_thor_safe' ) ) {

dock_thor_safe( function ( \Dock\Thor\State\HubInterface $client ) use ( $e ) {

$client->captureException( $e );

});

}

' );

}

Frequently Asked Questions

Does this plugin have an admin panel?

No. php.

Will this slow down my site?

The plugin is designed to have minimal performance impact. Error events are sent asynchronously when possible.

Can I disable certain errors?

Yes. You can configure the error types captured using the DOCK_THOR_ERROR_TYPES constant.

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • error tracking
  • debugging
  • logging
  • monitoring
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 6.9

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 6.9.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to6.9
Minimum requirementsWordPress 5.6 · PHP 7.2
Update activity24 Mar 20267mo ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.