Riad Benguella: Debugging WordPress Scripts and Styles

With the move to more JavaScript and Styles in WordPress admin pages and editors, I spend some time debugging what styles and scripts are being loaded on a given page. (Specially important if you’re working on blocks, or JavaScript rendered admin pages)

To help with that I use a small vibe-coded tool. It helps understanding why a script or style was enqueued on a given page.

For each script (or style) it gives:

  • The uncompressed size.
  • If it was enqueued explicitly.
  • Which ancestor script was enqueued explicitly causing the current one to be loaded in the page as well.
  • What is the direct parent script.

And it presents all of that in a digestible list.

How to use it

  • Just drop the file in your WordPress plugins folder (or load in another existing plugin)
  • Append ?debug_script=true to the url of the admin page that you want to debug.

That’s it, for a more complete debugging solution, consider checking the excellent Query Monitor plugin.

More Posts

Matt: Aldeas

Tonight was a lot of threads connecting for me. At Automattic’s Noho Space we hosted an event for Martin Scorsese’s new documentary about Pope Francis, called Aldeas. There was a


Warning: Attempt to read property "ID" on string in /home/u286651190/domains/prdailywire.com/public_html/wp-content/plugins/aioseo-image-seo/app/Image/Image.php on line 80

Warning: Attempt to read property "ID" on string in /home/u286651190/domains/prdailywire.com/public_html/wp-content/plugins/aioseo-image-seo/app/Image/Image.php on line 81

I Tried 7 Best GoFundMe Alternatives (Raise More, Pay Less)

You shouldn’t have to lose control of your donor data and rely on a third-party platform just to create a fundraising campaign. But that’s exactly what happens when you hit

More News


Warning: Attempt to read property "ID" on string in /home/u286651190/domains/prdailywire.com/public_html/wp-content/plugins/aioseo-image-seo/app/Image/Image.php on line 80

Warning: Attempt to read property "ID" on string in /home/u286651190/domains/prdailywire.com/public_html/wp-content/plugins/aioseo-image-seo/app/Image/Image.php on line 81

I Tried 7 Best GoFundMe Alternatives (Raise More, Pay Less)

PR DailyWire is part of the Zaivio community. Zaivio users and subscribers can run articles and feature stories about their small business ventures in this digital publication.

Contact
Email: info@zaivio.com

©2025 ZAIVIO LLC. All Rights Reserved.