WordPress plugin intelligence profile

New Relic Reporting for WordPress

New Relic APM reports for WordPress.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 6.8
Current version1.3.3
WordPress coverageTested up to WordPress 6.8
Minimum stackWP 6.3 · PHP 8.0
Directory statusactive
Last directory update11 Aug 20251y ago
Active installations500Adoption metric — not a quality score
WordPress.org rating5.0 / 5 from 4 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 New Relic Reporting for WordPress version 1.3.3 as active, updated 1y ago and tested up to WordPress 6.8.

Overview

About this plugin

WP New Relic (WPNR) is designed to use with New Relic APM which uses New Relic PHP Agent API to properly augment existing metrics with valuable WordPress details such as templates, users, request type, transaction names etc. 9.

New Relic is a trademark of New Relic, Inc.

Admin Settings

After activating the plugin, You will see a new option named New Relic under the Tools menu in your WordPress Dashboard. If you are running WordPress in Network Mode, the settings page will be found in your Network Dashboard.

Capture URL Parameters: If Capture URLs setting is enabled, it will capture URL parameters for displaying in transaction traces.

Basic Config

By default plugin will setup 3 configs.

appname

capture_params

framework (value is wordpress)

appname and capture_params config can be override using wp_nr_config filter. wp_nr_setup_config action hook can also be used to setup any extra config.

New Relic Custom Attributes

Certain useful custom attrribute (just like WordPress post meta) will be set for each event which can provide additional information using key-value pair. You can query events and filter them using these attributes in New Relic Insights. See NRQL reference for more details on how to query events.

-

User

User attribute is getting set using newrelic_set_user_attributes. If user is logged in, user ID will be set to user attribute and if not it will be set to not-logged-in.

Ex: In New Relic Insights you can query transactions for non-logged in users as

SELECT * FROM Transaction WHERE appName = ‘{appName}’ AND user = ‘not-logged-in’

-

Post ID

For single post, post ID will be set via post_id custom parameter in transaction.

Ex: Get all transactions for a post ID 190.

SELECT * FROM Transaction WHERE appName = ‘{appName}’ AND post_id = ‘190’

One can also query for post view count for post 190.

SELECT count(*) FROM Transaction WHERE appName = ‘{appName}’ AND post_id = ‘190’

-

Template

For each request, template being used getting set as template custom parameter in transaction.

Ex: You can query all transactions for a particular template as following.

SELECT * FROM Transaction WHERE appName = ‘{appName}’ AND template = ‘{Absolute Template Path}’

-

Theme

Current theme is getting set as theme custom parameter in transaction.

Ex: Query all transactions for “Twenty Fifteen” theme.

SELECT * FROM Transaction WHERE appName = ‘{appName}’ AND theme = ‘Twenty Fifteen’

-

Request type

There can be 3 type of requests namely web, ajax and cli. Current request type getting set as request_type custom parameter in transaction.

Request type can be override using wp_nr_request_type filter.

Ex: Get all transaction for “ajax” request type

SELECT * FROM Transaction WHERE appName = ‘{appName}’ AND request_type = ‘ajax’

-

Transaction Name

Transaction name is getting set as per the main WP_Query parameters using newrelic_name_transaction.

Possible values are Default Home Page, Front Page, Blog Page, Network Dashboard, Dashboard, Single – {post_type}, Page – {pagename}, Date Archive, Search Page, Feed, Archive – {post_type}, Category – {cat_name}, Tag – {tag_name}, Tax – {taxonomy} – {term}

-

Custom Error Logging

Using wp_nr_log_errors function, any plugin/theme can log errors/notices to New Relic for current transaction.

Note: This function can be used more than once but only last use will be considered to log the error to New Relic. It’s limitation of PHP Agent API.

wp_nr_log_errors( ‘Error message’, Exception $exception );

-

Runtime of async tasks

This plugin also tracks runtime of gearman async tasks. Gearman async task run for a particular hook and it’s runtime can be track using “wp_async_task-{hook}” custom attribute in New Relic Insights.

Issues

-

PHP version

11 or greater appears to resolve these issues. For more details, see issue#39.

-

Have an issue to report?

If you identify any errors or have an idea for improving the plugin, please open an issue. We’re excited to see what the community thinks of this project, and we would love your input!

WordPress.org metadata

Plugin tags

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

  • apm reporting
  • new relic
  • new relic apm reporting
  • new relic reporting
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 6.8

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

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to6.8
Minimum requirementsWordPress 6.3 · PHP 8.0
Update activity11 Aug 20251y 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.