Calculate WordPress Performance with Profile



WP CLI Profile command helps you to quickly identify the slowness of your WordPress website.

How to Install?

To install the WP CLI Profile package, You need a WP CLI working on your website. Quick read the article how to setup WP CLI

Make sure you have latest WP CLI release. Use command wp cli update to update your WP CLI.

Execute below command to install the profile package.

wp package install


wp profile stage --all --fields=hook,time,cache_ratio --spotlight

Single Stage

// Stage - bootstrap  : E.g.
wp profile stage bootstrap --fields=time,cache_ratio
// Stage - main_query : E.g.
wp profile stage main_query --fields=time,cache_ratio
// Stage - template   : E.g.
wp profile stage template  --fields=time,cache_ratio

All Hooks

wp profile stage --all --fields=hook,time,cache_ratio --spotlight

Hooks by Single Stage

wp profile stage bootstrap --fields=hook,time,cache_ratio --spotlight
wp profile stage main_query --fields=hook,time,cache_ratio --spotlight
wp profile stage template --fields=hook,time,cache_ratio --spotlight

Single Hook

wp profile hook plugins_loaded --fields=callback,time,location
%d bloggers like this: