Bricks Inspector
A floating, read-only inspector for the Bricks builder. Select an element and it tells you, in plain sentences, when the element is shown, what its query loop returns, what changes on tablet and mobile, what its dynamic tags resolve to and which classes it uses. It checks the whole page for problems, measures how heavy the page is at desktop, tablet and mobile widths, shows the page as another visitor would see it, and opens the matching control in Bricks for you. It never changes layouts, queries or settings.
Version: 0.9.0 (prototype) · Requires: PHP 7.4+, Bricks (tested on 2.4.3) · See the live demo
Screenshots
Each panel in the Bricks builder, taken from the live demo page.
Page health
Starts on the whole page: counts, and a list of what is worth a look.
Conditions
Whether the element is shown now, each rule in words, and What if to check as another visitor. Here: a logged-out visitor on a Wednesday.
Query loop
What the loop returns, a bounded preview, and the loop cost after a real-page capture.
Responsive
Changes at tablet and mobile with the desktop value beside each.
Dynamic data
Every tag the element uses and the value it gives on this page.
Classes & CSS
Global classes with where else they are used, and a class that no longer exists.
DOM weight
Measured at mobile portrait, including elements hidden at that width but still in the page.
What it does
- Adds a small window to the Bricks builder for users who can edit the page. Drag it by the title bar and resize it from the corner. It remembers where you left it and how big it was. The title bar has three buttons: pin, reload and a chevron that collapses the window to its title bar.
- A panel menu under the title bar switches between the seven panels. A yellow dot beside a panel means there is something to show there.
- An Inspector button in the Bricks toolbar (top right), or Alt+Shift+I, shows and hides the window.
- Works alongside other floating builder panels such as the Rank Math Bridge. Clicking either panel brings it to the front.
- Live content: the panel reads the content in the builder, so new and edited elements show before you save, and the header and footer templates are included. It re-reads a moment after you stop editing.
- Follows the element you select in Bricks, whether you click it on the canvas or in the Structure panel.
- Pin locks the panel onto the current element. Press pin again, or choose an element from the list, to release it.
- All elements opens a searchable list of every element, labelled by its text where it has one. Badges mark the elements with Conditions, a Loop, Responsive changes, Dynamic data or Classes, and filter chips narrow the list to each kind.
The panels
- Page health: checks every element and lists what is worth a look: tags that do not resolve, loops that match nothing or are slow, nested loops, elements hidden by their conditions, conditions it cannot fully check, and empty containers. Click an item to go to that element and the matching panel. Copy report copies the list.
- Conditions: says whether the element is shown right now, then lists its conditions in words, such as “The visitor is logged in”. Each rule shows whether it is true and what the current value is. What if… lets you check as a logged-out visitor, as any role, or on any day of the week. The same setting applies to Page health.
- Query loop: describes the loop in a sentence, then for a posts loop runs a small, bounded preview and lists how many posts match and the first few titles. After a real-page capture it also shows how long the loop took to build, how many database queries it ran, and whether it is nested inside another loop.
- Responsive: lists the changes made at tablet and mobile, with the desktop value beside each, plus hover and other states. Custom breakpoints set in Bricks are read from the builder.
- Dynamic data: lists every dynamic tag the selected element uses, with the value it gives on this page. Tags that run a PHP function, such as
{echo:...}, are listed but never run. - Classes & CSS: lists the global classes on the element, with where else each is used on the page. A class that no longer exists is marked. It also shows the element’s own CSS classes, CSS ID and whether it has custom CSS.
- DOM weight: measures the page and the selected element: number of elements against the Lighthouse limits (a warning above 800 and a fail above 1,400), deepest nesting, most children in one element, HTML size, and the heaviest elements. Choose Desktop, Tablet portrait, Mobile landscape or Mobile portrait before measuring. The last result for each size is kept and compared. It also lists the elements that are hidden at that width but still in the page, since the browser builds them anyway.
- Wait before measuring is optional and off by default. When on, you choose a delay from 1 to 15 seconds, so content added by scripts, sliders and lazy loading is counted.
Open in Bricks and copy
- Each panel has an Open in Bricks button that selects the element in Bricks and opens the matching control. On Conditions it opens the element’s Conditions. On Query loop it opens the Content tab and highlights the Query loop control. On Responsive, Edit at tablet portrait (or mobile) switches the builder to that screen size and opens the matching group, such as Layout or Typography, and highlights the control when its label can be found.
- Copy buttons copy the conditions, query, responsive settings, tags, class names or the page report.
- On the real page: See what actually rendered loads the page on the front end with your editor session and records what each loop returned, how long it took, and which rules Bricks checked. Press Update results when you are back in the builder.
Installation
- Upload and activate the plugin. Bricks must be active.
- Open any page in the Bricks builder. The Inspector window appears at the top right, and its button appears in the Bricks toolbar.
Quick start
- Open the Inspector. It starts on Page health and checks the whole page.
- Click anything in the list to jump to that element, or select an element in Bricks and choose a panel from the menu.
- Use What if… in Conditions to see the page as a logged-out visitor or another role.
- Press Open in Bricks to go straight to the control that sets it.
- For page weight, choose DOM weight, pick a screen size and press Measure this page. Measure on mobile to see what is hidden but still loaded.
- For loop timing, press See what actually rendered in a Query loop panel, return to the builder, press Update results, then check the page again.
Settings
There are no settings. The window position and size, the toolbar button state, the DOM weight screen size and wait setting, and the What if choice are remembered in your browser.
How it works
- The panel sends the builder’s current content to the server, which checks that you are allowed to edit the page and that the request carries a nonce. The content is only read, never saved.
- It learns which element is selected by reading the builder’s own active-element state.
- Open in Bricks selects the element on the canvas, opens the builder’s element panel and presses the same tab and breakpoint buttons you would press yourself. It does not change any setting. It needs the element to be visible on the canvas.
- The shown-or-hidden answer checks these rules: page ID, post type, page title, page status, logged in, user role and day of the week. If an option uses any other rule it says the answer cannot be fully checked.
- Dynamic tags are resolved by Bricks itself, with the page you are editing set as the current post. Nothing is written.
- DOM weight loads your page once per measurement in a hidden frame, set to the chosen screen width, like a visit. Analytics scripts on the page may count that visit. The admin bar is left out, and script and style tags are not counted.
- The capture link carries a short-lived token for that page and your user. During a capture the plugin only watches. It listens to the Bricks query and condition hooks and does not change any query or result. Loop timing runs from when Bricks builds the query to when the loop finishes, so it includes drawing the items.
- The capture is stored privately for your user for 30 minutes, and is limited to 30 records per loop and 200 condition results.
What the labels mean
The shown-or-hidden answer, the loop preview, the tag values and the DOM weight are checks the plugin makes itself. Captured data is what Bricks did on a real render. The capture can show that a rule was checked and what it returned, but Bricks does not say which element it belonged to, so captured rules are matched by rule type and may come from another element.
Not included
- Capture covers one render of one page. Archive templates, AJAX requests such as filters and pagination, and header or footer templates from other posts are not captured.
- What if changes how conditions are checked (logged in or out, role, day of the week). It does not change dynamic data or loops.
- The live query preview handles plain posts queries only. A posts loop with taxonomy, meta or other advanced options is reported as not previewable, and terms and users loops are shown through capture.
- Loop timing needs a capture, and a site with a persistent object cache may show few or no database queries because the results come from the cache.
- DOM weight measures the saved page at the width you choose, and does not scroll, so content that only loads on scroll is not counted. It measures the saved page, not unsaved changes.
- Classes & CSS shows which global classes are used, not what they set. The Responsive panel shows saved settings, not computed CSS.
- Highlighting the exact control in Bricks depends on its label matching the setting name, so it works for some controls and not others. The group always opens.
Known issues
- Open in Bricks relies on how the Bricks 2.4 builder panel is laid out, so a later Bricks version may need the plugin updated. The window says when your Bricks version is newer than the one tested.
Changelog
- 0.9.0 — Classes & CSS panel. Custom breakpoints are read from the builder. Header and footer template elements are labelled. Open in Bricks highlights the control where it can. Alt+Shift+I shows or hides the window. Notice when the Bricks version is newer than the one tested. Loop timing no longer double counts.
- 0.8.0 — What if for conditions and Page health. Loop cost (build time, database queries, nested loops) from the real-page capture. DOM weight lists elements hidden at the measured width but still in the page.
- 0.7.0 — Page health panel. The panel reads the live builder content, so unsaved changes show, and includes header and footer templates.
- 0.6.4 — The window remembers its position and size across reloads.
- 0.6.3 — DOM weight can be measured at desktop, tablet, mobile landscape or mobile portrait width.
- 0.6.2 — DOM weight finds every Bricks element on the measured page.
- 0.6.1 — Dynamic tags resolve with the edited page as the current post. DOM weight no longer counts the blank frame before the page loads.
- 0.6.0 — Panels are chosen from a menu. New Dynamic data and DOM weight panels, with an optional wait before measuring.
- 0.5.x — Plain-English panels, element finder, Open in Bricks, terms and users loop capture, collapsed height matched to the Rank Math Bridge.
- 0.4.x — Title bar with pin, reload and chevron, toolbar button, shared click-to-front, selection following, responsive table.
- 0.3.0 — Capture of a real frontend render, with query arguments and condition results.






