Title: Block Weight Inspector
Author: devmarvs
Published: <strong>20 janvāris, 2026</strong>
Last modified: 20 janvāris, 2026

---

Meklēt spraudņus

![](https://ps.w.org/block-weight-inspector/assets/Banner-772x250.png?rev=3443537)

![](https://ps.w.org/block-weight-inspector/assets/Icon-256x256.png?rev=3443537)

# Block Weight Inspector

 Autors [devmarvs](https://profiles.wordpress.org/devmarvs/)

[Lejupielādēt](https://downloads.wordpress.org/plugin/block-weight-inspector.0.1.0.zip)

 * [Sīkāka informācija](https://lv.wordpress.org/plugins/block-weight-inspector/#description)
 * [Atsauksmes](https://lv.wordpress.org/plugins/block-weight-inspector/#reviews)
 *  [Uzstādīšana](https://lv.wordpress.org/plugins/block-weight-inspector/#installation)
 * [Attīstība](https://lv.wordpress.org/plugins/block-weight-inspector/#developers)

 [Atbalsts](https://wordpress.org/support/plugin/block-weight-inspector/)

## Apraksts

Block Weight Inspector adds a sidebar panel in the block editor that maps blocks
in the current post/page to the CSS and JS assets they register. It estimates local
asset sizes, highlights top offenders, and exports a JSON report. It can also generate
a suggested conditional-loading snippet to help you dequeue assets when a block 
is not present.
 It also adds a Tools -> Block Weight Inspector screen for auditing
existing posts without opening the editor. Note: The inspector preserves block comment
delimiters when analyzing content so `parse_blocks()` remains accurate after sanitization.

Key features:

 * Block -> asset mapping using registered block metadata.
 * Estimated size for local assets.
 * Top offenders summary and full asset list.
 * JSON export for sharing or auditing.
 * Suggested conditional-loading rules (review before use).

## Uzstādīšana

 1. Upload the plugin folder to `/wp-content/plugins/`.
 2. Activate the plugin through the Plugins menu in WordPress.
 3. Open the block editor and use the “Block Weight Inspector” sidebar.

## BUJ

### Does this load assets on the front-end?

No. The inspector only runs in the block editor and does not enqueue anything on
the front-end.

### Why is a size shown as “remote/unknown”?

Only local files are measured by default. You can optionally enable remote size 
lookup in the inspector panel or Tools page, and the preference is saved per user.

### Are the suggested dequeue rules safe?

They are suggestions only. Some plugins enqueue assets for reasons outside of blocks.
Always review before using.

## Atsauksmes

Par šo spraudni nav atsauksmju.

## Autori un izstrādātāji

“Block Weight Inspector” ir atvērtā pirmkoda programmatūra. Šo spraudni ir veidojuši
šādi cilvēki.

Līdzdalībnieki

 *   [ devmarvs ](https://profiles.wordpress.org/devmarvs/)

[Tulkot “Block Weight Inspector&#8221 savā valodā.](https://translate.wordpress.org/projects/wp-plugins/block-weight-inspector)

### Vai jūs interesē attīstība?

[Pārlūkojiet kodu](https://plugins.trac.wordpress.org/browser/block-weight-inspector/),
apmeklējiet[ SVN krātuvi ](https://plugins.svn.wordpress.org/block-weight-inspector/)
vai abonējiet[ attīstības žurnālu](https://plugins.trac.wordpress.org/log/block-weight-inspector/),
ko izveidojis [RSS](https://plugins.trac.wordpress.org/log/block-weight-inspector/?limit=100&mode=stop_on_copy&format=rss).

## Izmaiņu žurnāls

#### 0.1.0

 * Initial release.

## Meta

 *  Versija **0.1.0**
 *  Pēdējo reizi atjaunots: **pirms 7 mēnešiem**
 *  Aktīvās instalācijas: **Mazāk par 10**
 *  WordPress versija ** 6.0 vai jaunāka **
 *  Pārbaudīts līdz: **6.9.7**
 *  PHP versija ** 7.4 vai jaunāka **
 *  Valoda
 * [English (US)](https://wordpress.org/plugins/block-weight-inspector/)
 * Birkas:
 * [assets](https://lv.wordpress.org/plugins/tags/assets/)[blocks](https://lv.wordpress.org/plugins/tags/blocks/)
   [gutenberg](https://lv.wordpress.org/plugins/tags/gutenberg/)[performance](https://lv.wordpress.org/plugins/tags/performance/)
   [profiling](https://lv.wordpress.org/plugins/tags/profiling/)
 *  [Papildu skats](https://lv.wordpress.org/plugins/block-weight-inspector/advanced/)

## Vērtējumi

Vēl nav iesniegta neviena atsauksme.

[Your review](https://wordpress.org/support/plugin/block-weight-inspector/reviews/#new-post)

[Skatīt visasatsauksmes](https://wordpress.org/support/plugin/block-weight-inspector/reviews/)

## Līdzdalībnieki

 *   [ devmarvs ](https://profiles.wordpress.org/devmarvs/)

## Atbalsts

Jums ir kaut kas ko teikt? Vajadzīga palīdzība?

 [Skatīt atbalsta forumu](https://wordpress.org/support/plugin/block-weight-inspector/)