Skip to content

Commit

Permalink
Merge pull request #191 from josevarghese/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy authored Jul 22, 2024
2 parents ab3b9d1 + 0120d7e commit 04c20f2
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 18 deletions.
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Quick links: [Overview](#overview) | [Using](#using) | [Installing](#installing)

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

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/)).
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/)).

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

Expand Down Expand Up @@ -97,15 +97,16 @@ render based on the main query, and renders it.
+--------------------------+---------+-------------+
| hook | time | cache_ratio |
+--------------------------+---------+-------------+
| muplugins_loaded:before | 0.2335s | 40% |
| muplugins_loaded | 0.0007s | 50% |
| plugins_loaded:before | 0.2792s | 77.63% |
| plugins_loaded | 0.1502s | 100% |
| after_setup_theme:before | 0.068s | 100% |
| init | 0.2643s | 96.88% |
| wp_loaded:after | 0.0377s | |
| muplugins_loaded:before | 0.1767s | 33.33% |
| plugins_loaded:before | 0.103s | 78.13% |
| plugins_loaded | 0.0194s | 19.32% |
| setup_theme | 0.0018s | 75% |
| after_setup_theme:before | 0.0116s | 95.45% |
| after_setup_theme | 0.0049s | 96% |
| init | 0.1428s | 76.74% |
| wp_loaded:after | 0.0236s | |
+--------------------------+---------+-------------+
| total (7) | 1.0335s | 77.42% |
| total (8) | 0.4837s | 67.71% |
+--------------------------+---------+-------------+


Expand Down
2 changes: 1 addition & 1 deletion bin/readme/overview-body.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
`wp profile` monitors key performance indicators of the WordPress execution process to help you quickly identify points of slowness.

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/)).
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/)).

[Identify why WordPress is slow in just a few steps](https://danielbachhuber.com/tip/identify-wordpress-slowness/) with `wp profile`.
17 changes: 9 additions & 8 deletions src/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,16 @@
* +--------------------------+---------+-------------+
* | hook | time | cache_ratio |
* +--------------------------+---------+-------------+
* | muplugins_loaded:before | 0.2335s | 40% |
* | muplugins_loaded | 0.0007s | 50% |
* | plugins_loaded:before | 0.2792s | 77.63% |
* | plugins_loaded | 0.1502s | 100% |
* | after_setup_theme:before | 0.068s | 100% |
* | init | 0.2643s | 96.88% |
* | wp_loaded:after | 0.0377s | |
* | muplugins_loaded:before | 0.1767s | 33.33% |
* | plugins_loaded:before | 0.103s | 78.13% |
* | plugins_loaded | 0.0194s | 19.32% |
* | setup_theme | 0.0018s | 75% |
* | after_setup_theme:before | 0.0116s | 95.45% |
* | after_setup_theme | 0.0049s | 96% |
* | init | 0.1428s | 76.74% |
* | wp_loaded:after | 0.0236s | |
* +--------------------------+---------+-------------+
* | total (7) | 1.0335s | 77.42% |
* | total (8) | 0.4837s | 67.71% |
* +--------------------------+---------+-------------+
*
* @package wp-cli
Expand Down

0 comments on commit 04c20f2

Please sign in to comment.