Skip to content

Commit 04c20f2

Browse files
authored
Merge pull request #191 from josevarghese/patch-1
2 parents ab3b9d1 + 0120d7e commit 04c20f2

File tree

3 files changed

+20
-18
lines changed

3 files changed

+20
-18
lines changed

README.md

+10-9
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Quick links: [Overview](#overview) | [Using](#using) | [Installing](#installing)
1111

1212
`wp profile` monitors key performance indicators of the WordPress execution process to help you quickly identify points of slowness.
1313

14-
Save hours diagnosing slow WordPress sites. Because you can easily run it on any server that supports WP-CLI, `wp profile` compliments Xdebug and New Relic by pointing you in the right direction for further debugging. Because it runs on the command line, using `wp profile` means you don't have to install a plugin and deal with the painful dashboard of a slow WordPress site. And, because it's a WP-CLI command, `wp profile` makes it easy to perfom hard tasks (e.g. [profiling a WP REST API response](https://danielbachhuber.com/tip/profile-wp-rest-api/)).
14+
Save hours diagnosing slow WordPress sites. Because you can easily run it on any server that supports WP-CLI, `wp profile` compliments Xdebug and New Relic by pointing you in the right direction for further debugging. Because it runs on the command line, using `wp profile` means you don't have to install a plugin and deal with the painful dashboard of a slow WordPress site. And, because it's a WP-CLI command, `wp profile` makes it easy to perform hard tasks (e.g. [profiling a WP REST API response](https://danielbachhuber.com/tip/profile-wp-rest-api/)).
1515

1616
[Identify why WordPress is slow in just a few steps](https://danielbachhuber.com/tip/identify-wordpress-slowness/) with `wp profile`.
1717

@@ -97,15 +97,16 @@ render based on the main query, and renders it.
9797
+--------------------------+---------+-------------+
9898
| hook | time | cache_ratio |
9999
+--------------------------+---------+-------------+
100-
| muplugins_loaded:before | 0.2335s | 40% |
101-
| muplugins_loaded | 0.0007s | 50% |
102-
| plugins_loaded:before | 0.2792s | 77.63% |
103-
| plugins_loaded | 0.1502s | 100% |
104-
| after_setup_theme:before | 0.068s | 100% |
105-
| init | 0.2643s | 96.88% |
106-
| wp_loaded:after | 0.0377s | |
100+
| muplugins_loaded:before | 0.1767s | 33.33% |
101+
| plugins_loaded:before | 0.103s | 78.13% |
102+
| plugins_loaded | 0.0194s | 19.32% |
103+
| setup_theme | 0.0018s | 75% |
104+
| after_setup_theme:before | 0.0116s | 95.45% |
105+
| after_setup_theme | 0.0049s | 96% |
106+
| init | 0.1428s | 76.74% |
107+
| wp_loaded:after | 0.0236s | |
107108
+--------------------------+---------+-------------+
108-
| total (7) | 1.0335s | 77.42% |
109+
| total (8) | 0.4837s | 67.71% |
109110
+--------------------------+---------+-------------+
110111

111112

bin/readme/overview-body.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
`wp profile` monitors key performance indicators of the WordPress execution process to help you quickly identify points of slowness.
22

3-
Save hours diagnosing slow WordPress sites. Because you can easily run it on any server that supports WP-CLI, `wp profile` compliments Xdebug and New Relic by pointing you in the right direction for further debugging. Because it runs on the command line, using `wp profile` means you don't have to install a plugin and deal with the painful dashboard of a slow WordPress site. And, because it's a WP-CLI command, `wp profile` makes it easy to perfom hard tasks (e.g. [profiling a WP REST API response](https://danielbachhuber.com/tip/profile-wp-rest-api/)).
3+
Save hours diagnosing slow WordPress sites. Because you can easily run it on any server that supports WP-CLI, `wp profile` compliments Xdebug and New Relic by pointing you in the right direction for further debugging. Because it runs on the command line, using `wp profile` means you don't have to install a plugin and deal with the painful dashboard of a slow WordPress site. And, because it's a WP-CLI command, `wp profile` makes it easy to perform hard tasks (e.g. [profiling a WP REST API response](https://danielbachhuber.com/tip/profile-wp-rest-api/)).
44

55
[Identify why WordPress is slow in just a few steps](https://danielbachhuber.com/tip/identify-wordpress-slowness/) with `wp profile`.

src/Command.php

+9-8
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,16 @@
2727
* +--------------------------+---------+-------------+
2828
* | hook | time | cache_ratio |
2929
* +--------------------------+---------+-------------+
30-
* | muplugins_loaded:before | 0.2335s | 40% |
31-
* | muplugins_loaded | 0.0007s | 50% |
32-
* | plugins_loaded:before | 0.2792s | 77.63% |
33-
* | plugins_loaded | 0.1502s | 100% |
34-
* | after_setup_theme:before | 0.068s | 100% |
35-
* | init | 0.2643s | 96.88% |
36-
* | wp_loaded:after | 0.0377s | |
30+
* | muplugins_loaded:before | 0.1767s | 33.33% |
31+
* | plugins_loaded:before | 0.103s | 78.13% |
32+
* | plugins_loaded | 0.0194s | 19.32% |
33+
* | setup_theme | 0.0018s | 75% |
34+
* | after_setup_theme:before | 0.0116s | 95.45% |
35+
* | after_setup_theme | 0.0049s | 96% |
36+
* | init | 0.1428s | 76.74% |
37+
* | wp_loaded:after | 0.0236s | |
3738
* +--------------------------+---------+-------------+
38-
* | total (7) | 1.0335s | 77.42% |
39+
* | total (8) | 0.4837s | 67.71% |
3940
* +--------------------------+---------+-------------+
4041
*
4142
* @package wp-cli

0 commit comments

Comments
 (0)