Skip to content

Commit 49f36f5

Browse files
Copilotswissspidy
andcommitted
Add installation instructions for wp profile package
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
1 parent f84b0e0 commit 49f36f5

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

how-to/figure-out-why-wordpress-is-slow.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
`wp profile` is a WP-CLI command to help you quickly identify what's slow with WordPress. It's designed to work alongside Xdebug and New Relic because it's easy to deploy to any server that has WP-CLI. With `wp profile`, you gain quick visibility into key performance metrics (execution time, query count, cache hit/miss ratio, etc.) to guide further debugging.
44

5+
## Installation
6+
7+
First, install the `wp profile` package if you haven't already:
8+
9+
```
10+
$ wp package install wp-cli/profile-command
11+
```
12+
513
### Step 1 - Profile the WordPress load process
614

715
Dealing with a slow WordPress install you've never worked with before? Run `wp profile stage` to see metrics for each stage of the WordPress load process. Include the `--url=<url>` argument to mock the request as a specific URL.

0 commit comments

Comments
 (0)