If you install New Relic for WordPress websites, the PHP agent receives additional metrics. A WordPress page appears in the New Relic user interface: Go to one.newrelic.com APM & services > (select a WordPress app).
You can control which WordPress-specific metrics your app sends to New Relic by using the PHP agent's
newrelic.framework.wordpress.hooks. This is enabled by default in versions 5.3 or higher, and it can be disabled with:
newrelic.framework.wordpress.hooks = false
Although this setting uses the word
.hooks, it controls all WordPress metrics sent to New Relic, including hooks, plugins, and themes.
The PHP agent receives metrics for the following:
- Hooks: These metrics indicate time spent within each WordPress hook. Time is calculated from the hook dispatch functions
- Plugins and themes: These metrics indicate time spent within each WordPress plugin and theme. Time is calculated from the dispatch functions for hooks.
By integrating your WordPress application with APM, you can view performance directly from your WordPress app's Administration page. For example, W3 Total Cache is one of New Relic's partners that specializes in WordPress apps.