WordPress-specific functionality

The PHP agent captures special metrics for WordPress websites. When these metrics are collected, a WordPress tab appears in the New Relic user interface: From the New Relic menu bar, select APM > Applications > (selected app) > Monitoring > WordPress.

wordpress.png
Applications > (selected app) > Monitoring > WordPress: Example of special metrics for WordPress websites.

Configuration

The collection of WordPress-specific metrics can be controlled by the ini setting newrelic.framework.wordpress.hooks. It is enabled by default (in versions 5.3 or higher), and can be disabled with:

newrelic.framework.wordpress.hooks = false

Though this setting uses the word "hooks," it controls the collection of all WordPress metrics: hooks, plugins, and themes.

Metrics

The PHP agent collects metrics for the following:

  • Hooks: These metrics indicate time spent within each WordPress hook. Time is calculated from the hook dispatch functions apply_filters, apply_filters_ref_array, do_action, and do_action_ref_array.
  • Plugins and themes: These metrics indicate time spent within each WordPress plugin and theme. Time is calculated from the hook dispatch functions above.

Integration with New Relic partners

By integrating your WordPress application with New Relic APM, you can view performance directly from your Wordpress app's Administration page. For example, W3 Total Cache is one of New Relic's Connect partners that specializes in WordPress apps.

WordPress plugin for browser monitoring

Signing up for a New Relic account and adding New Relic Browser monitoring to your WordPress site is fast and easy with the New Relic Browser plugin for WordPress. This plugin, and New Relic Browser monitoring, do not require the special access required to install the New Relic APM PHP agent. This makes them generally compatible with all WordPress hosting providers.

This plugin is supported by the authors and the WordPress community.

For more help

Join the discussion about PHP in the New Relic Online Technical Community! The Technical Community is a public platform to discuss and troubleshoot your New Relic toolset.

If you need additional help, get support at support.newrelic.com.