WordPress plugin intelligence profile

JS Error Logger

Logs front-end javascript errors, and displays them in a dashboard widget

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 7.1
Current version1.5
WordPress coverageTested up to WordPress 7.1
Minimum stackWP 5.0 · PHP 7.4
Directory statusactive
Last directory update16 Oct 202617d ago
Active installations10Adoption metric — not a quality score
WordPress.org rating5.0 / 5 from 1 ratings
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 JS Error Logger version 1.5 as active, updated 17d ago and tested up to WordPress 7.1.

Overview

About this plugin

The plugin catches most JS errors, logs them, and displays them in a dashboard widget.

Here are some of its features:

- Except for the plugin settings, there is no database storage involved. log” file.

- Display latest JS errors in a dashboard widget.

- Refresh errors from the dashboard widget.

- See the full error log on a separate page.

- Ignore errors if the user agent contains a specific string.

- Ignore errors if the error contains a specific string.

- Ignore errors if the script url contains a specific string.

- See which page and which script triggered the errors.

- Choose the maximum amount of errors to log per page load.

- Exclude logging errors from specific post types.

- Choose how ajax calls are made.

Developer hooks and filters

The plugin cleans the log every 24 hours, to only keep the last 100 entries.

You may use the “jserrlog_max_log_entries” WP filter to enable more or less entries, by returning an integer: add_filter('jserrlog_max_log_entries',function(){return 200;})

Alter error data:

You may use the “jserrlog_pre_insert_error” WP filter to modify the error data before it’s inserted into the log file: add_filter('jserrlog_pre_insert_error',function($error_data){return $error_data;})

Trigger integrations:

) after an error was logged: add_action('jserrlog_after_log',function($error_data){//do something})

Backup old errors:

) before old errors are deleted: add_action('jserrlog_before_log_maintenance',function($errors){//do something})

Request hardening:

You may use the “jserrlog_enforce_same_host_origin” WP filter to require same-host Origin/Referer checks for logging requests (default true): add_filter('jserrlog_enforce_same_host_origin',function(){return true;})

You may use the “jserrlog_rate_limit_requests” and “jserrlog_rate_limit_window” WP filters to control request throttling (defaults: 60 requests per 60 seconds): add_filter('jserrlog_rate_limit_requests',function(){return 120;}); add_filter('jserrlog_rate_limit_window',function(){return 60;});

You may use the “jserrlog_max_payload_bytes”, “jserrlog_max_batch_errors” and “jserrlog_max_error_field_length” WP filters to limit incoming payload sizes (defaults: 16384 bytes, 20 errors per batch, 512 chars per field): add_filter('jserrlog_max_payload_bytes',function(){return 32768;});

You may use the “jserrlog_duplicate_window” WP filter to suppress duplicate errors for a short period (default: 60 seconds): add_filter('jserrlog_duplicate_window',function(){return 30;});

Multisite

The plugin works with multisite. There’s one error log per site.

WordPress.org metadata

Plugin tags

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

  • dashboard widget
  • error reporting
  • debug
  • javascript
  • js
Compatibility & maintenance

Compatibility & maintenance

Tested with WP 7.1

Marked as tested with the current WordPress 7.1 release.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to7.1
Minimum requirementsWordPress 5.0 · PHP 7.4
Update activity16 Oct 202617d 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

WordPress compatibility7.0.47.1.3
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.