Plugin Review: Query Monitor

Query Monitor ist ein Debugging-Plugin für Wordpress. Es erlaubt dem Nutzer in der WordPress-Werkzeugleiste nützliche Daten über die Performance der grade aufgerufenen Seite anzuzeigen.

Direkt in der Werkzeugleiste wird angezeigt:

  • Wie lange der Server brauchte um die Seite zu generieren,
  • Wie viel Speicher er dabei genutzt hat,
  • Wie lange die Datenbank-Querys gedauert haben und
  • Wie viele Datenbankanfragen ausgeführt wurden.

 

Wenn man nun auf den Eintrag in der Werkzeugliste klickt sieht man viele, für die Programmierung und Optimierung der eigenen WordPress-Seite nützliche, Parameter.

DATABASE QUERIES

    • Shows all database queries performed on the current request
    • Shows affected rows and time for all queries
    • Shows notifications for slow queries, duplicate queries, and queries with errors
    • Filter queries by query type (SELECT, UPDATE, DELETE, etc)
    • Filter queries by component (WordPress core, Plugin X, Plugin Y, theme)
    • Filter queries by calling function
    • View aggregate query information grouped by component, calling function, and type
    • Super advanced: Supports multiple instances of wpdb on one page

HOOKS

    • Shows all hooks fired on the current request, along with hooked actions, their priorities, and their components
    • Filter hooks by part of their name
    • Filter actions by component (WordPress core, Plugin X, Plugin Y, theme)

THEME

    • Shows the template filename for the current request
    • Shows the complete template hierarchy for the current request
    • Shows all template parts used on the current request
    • Shows the available body classes for the current request
    • Shows the active theme name

PHP ERRORS

    • PHP errors (warnings, notices, stricts, and deprecated) are presented nicely along with their component and call stack
    • Shows an easily visible warning in the admin toolbar

REQUEST

    • Shows matched rewrite rules and associated query strings
    • Shows query vars for the current request, and highlights custom query vars
    • Shows the queried object details
    • Shows details of the current blog (multisite only) and current site (multi-network only)

REWRITE RULES

    • Shows all matching rewrite rules for the current request

SCRIPTS & STYLES

    • Shows all enqueued scripts and styles on the current request, along with their URL and version
    • Shows their dependencies and dependents, and displays an alert for any broken dependencies

LANGUAGES

    • Shows language settings and text domains
    • Shows the MO files for each text domain and which ones were loaded or not

HTTP REQUESTS

    • Shows all HTTP requests performed on the current request (as long as they use WordPress’ HTTP API)
    • Shows the response code, call stack, component, timeout, and time taken
      Highlights erroneous responses, such as failed requests and anything without a 200 response code

REDIRECTS

    • Whenever a redirect occurs, Query Monitor adds an X-QM-Redirect HTTP header containing the call stack, so you can use your favourite HTTP inspector or browser developer tools to easily trace where a redirect has come from

ADMIN SCREEN

    • Shows the correct names for custom column filters and actions on all admin screens that have a listing table
    • Shows the state of get_current_screen() and a few variables

ENVIRONMENT INFORMATION

    • Shows various PHP information such as memory limit and error reporting levels
      Highlights the fact when any of these are overridden at runtime
    • Shows various MySQL information, including caching and performance related configuration
    • Highlights the fact when any performance related configurations are not optimal
    • Shows various details about WordPress and the web server
    • Shows version numbers for all the things

EVERYTHING ELSE

  • Shows any transients that were set, along with their timeout, component, and call stack
  • Shows all WordPress conditionals on the current request, highlighted nicely
  • Shows an overview at the top, including page generation time and memory limit as absolute values and as % of their respective limits

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.