Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Profiling an intermediate hook is sometimes empty

Open
#126 9 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
php
Domain
cli, performance

Research direction

Start by reproducing wp profile hook plugins_loaded:before in an affected environment and inspect how the callback registered with register_tick_function() is invoked. Trace why the callback fires only once and verify that intermediate-hook profiling produces results consistently across the environments described in the issue.

Written by the indexing model from the issue text.

Description

bug command:profile command:profile-hook

When profiling an intermediate hook (e.g. wp profile hook plugins_loaded:before), some environments don't log any results:

image

In debugging this initial report, the callback hooked into register_tick_function() is only fired once.

Dominant language
PHP
Stars
294
Forks
29
Avg merge
48m
Merged PRs (30d)
2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from wp-cli/profile-command

All issues in wp-cli/profile-command

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.