Repository navigation
Conversation
Pollora tab (what answered the request, versions, discovery, modules, theme, async actions), WP Request, WP Queries, WP Hooks and WordPress phases on the timeline; REST and admin-ajax requests stored and tagged with phpdebugbar-id; qm/* and pollora/debugbar/* actions bridged. Extension points: the Collector base class and container tags for packages, the pollora/debugbar/register action for WordPress code.
Most of Pollora's callbacks are closures, which all read as "Closure": first-class callables now read as Class::method and real closures as the class and file:line they were written in. Tab icons are taken from php-debugbar's own set; any other name renders as an empty square.
A Playwright job installs the skeleton under DDEV with this package, adds a fixture mu-plugin that extends the bar both ways (actions and a tagged Collector), and checks the tabs, their order, the answering template, wpdb queries, a REST call listed by the bar and the third party data.
Full backtrace, error and rows for each wpdb query through core filters (no wpdb subclass, so any db.php drop-in keeps working) and attribution of queries, HTTP calls, transients and checks to a component. New tabs: WP HTTP, WP Cache, WP Capabilities (aggregated, on by default), WP Blocks (with block bindings), WP Assets (with Vite builds), WP Languages and Doctor (pollora:doctor's web checks on demand). Redirects made with wp_redirect() are stacked for the next page. The Pollora tab adds the async actions queued, WordPress constants and drop-ins.
…irectories, readable doctor errors Each query keeps its 10 innermost frames to show, and is attributed from its whole trace when it runs: full traces made most of the bar's weight (309 KB of 411 on a WooCommerce shop page, now 154). Component directories are not cached until WordPress defines where plugins live, which had left early lookups without them. The Doctor tab says what came back when the answer is not JSON (a proxy's 404 while a server restarts) instead of a JSON syntax error. The Pollora tab adds the database server, memory limits and web server Query Monitor shows.
- WP Hook timings tab (opt-in, options.wp_hooks.timings): each callback wrapped in place in $wp_filter under its own key, own and total time, slowest first; by-reference callbacks left alone - wp-admin: the bar printed with the admin footer scripts and stored, without Debugbar's Laravel-only tabs; the block editor's REST calls are listed in it - WP Request: admin page and screen; on a multisite, the site, the network, every site switch and a switch never restored - Hooks: a closure is named after a class only when written in it
The request is still stored; set DEBUGBAR_POLLORA_IFRAMES=true to print the bar in frames too.
feat: Pollora and WordPress in Laravel Debugbar (phase 1)
feat: Query Monitor parity (phase 2)
feat: hook timings, the bar in wp-admin, multisite (phase 3)
ci: take the framework from Packagist now that v13.35.3 is out
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
First release of pollora/debugbar, for Pollora v13.35.3: Pollora and WordPress in Laravel Debugbar (phases 1 to 3 of the spec), at Query Monitor parity.