Beschrijving
Querymonitor is het venster ontwikkeltools voor WordPress. Het maakt foutopsporing van databasequery’s, PHP-fouten, haken en acties, blokeditor blokken, in de wachtrij staande scripts en stylesheets, HTTP API aanroepen en meer mogelijk.
It includes some advanced features such as debugging of Ajax calls, REST API calls, user capability checks, and full support for block themes and full site editing. It includes the ability to narrow down much of its output by plugin or theme, allowing you to quickly determine poorly performing plugins, themes, or functions.
Query Monitor richt zich sterk op het presenteren van de informatie op een nuttige manier, bijvoorbeeld door geaggregeerde databasequery’s te tonen die zijn gegroepeerd op de plug-ins, thema’s of functies die hiervoor verantwoordelijk zijn. Het voegt een menu van de beheer toolbar toe dat een overzicht van de huidige pagina toont, met volledige fout opsporingsinformatie die in vensters wordt getoond zodra u een menu artikel selecteert.
Zie voor volledige informatie de site van de Query Monitor.
Hier vindt je een overzicht van wat er voor elke paginabelasting wordt weergegeven:
- Databasequery’s, inclusief meldingen voor langzame, dubbele of foutieve query’s. Hiermee je kunt filteren op querytype (
SELECT
UPDATE
,,,DELETE
enz.), verantwoordelijke component (plugin, thema, WordPress-kern) en aanroepfunctie en afzonderlijke geaggregeerde weergaven voor elk. - The template filename, the complete template hierarchy, and names of all template parts that were loaded or not loaded (for block themes and classic themes).
- PHP fouten mooi gepresenteerd samen met hun verantwoordelijke component en call stack, en een zichtbare waarschuwing in de beheer werkbalk.
- Usage of “Doing it Wrong” or “Deprecated” functionality in the code on your site.
- Blocks and associated properties within post content and within full site editing (FSE).
- Overeenkomende herschrijfregels, bijbehorende query tekenreeksen en queryvars.
- In de wachtrij voor scripts en stylesheets, samen met hun afhankelijkheden, afhankelijkheden en waarschuwingen voor verbroken afhankelijkheden.
- Taalinstellingen en geladen vertaalbestanden (MO bestanden en JSON bestanden) voor elk tekstdomein.
- HTTP API aanvragen, met antwoord code, verantwoordelijke component en tijd die nodig zijn, met waarschuwingen voor mislukte of foutieve aanvragen.
- Gebruikerscapaciteit controles, samen met het resultaat en eventuele parameters doorgegeven aan de mogelijkheid te controleren.
- Omgevingsinformatie, inclusief gedetailleerde informatie over PHP, de database, WordPress en de webserver.
- De waarden van alle Voorwaardelijke functies van WordPress, zoals
is_single()
,is_home()
enz. - Tijdelijke transiënten die zijn bijgewerkt.
- Usage of
switch_to_blog()
andrestore_current_blog()
on Multisite installations.
Bovendien:
- Wanneer er een omleiding plaatsvindt, voegt Query Monitor een HTTP header toe met de call stack, zodat u uw favoriete HTTP-controle- of browser ontwikkelaarstools gebruiken om te traceren wat de omleiding heeft geactiveerd.
- Het antwoord van een door jQuery geïnitieerd Ajax verzoek op de pagina bevat verschillende fout opsporingsinformatie in de headers. PHP fouten krijgen ook uitvoer naar de ontwikkelaarsconsole van de browser.
- Het antwoord van een geauthenticeerd WordPress REST API request zal een overzicht van prestatie informatie en PHP fouten in de headers bevatten, zolang de geauthenticeerde gebruiker toestemming heeft om de Query Monitor’s uitvoer te bekijken. Een een omhuld REST API request zal nog meer debugging informatie bevatten in de
qm
eigenschap van het antwoord.
Standaard wordt de uitvoer van querymonitor alleen weergegeven aan beheerders van installaties op één site en Superadministrators op installaties met meerdere locaties.
Daarnaast u een verificatiecookie instellen waarmee u querymonitor uitvoer bekijken wanneer je niet bent ingelogd (of als je bent ingelogd als niet-administrator). Zie het venster Instellingen voor meer informatie.
Other Plugins
Ik onderhoud verschillende andere plugins voor ontwikkelaars. Bekijk ze eens:
- Schakelen tussen gebruikers biedt direct schakelen tussen gebruikersaccounts in WordPress.
- WP Crontrol laat je zien en controleren wat er gebeurt in het WP Cron systeem
Privacyverklaring
Query Monitor is standaard privé en dat zal altijd zo blijven. Het slaat niet voortdurend een van de gegevens op die het verzamelt. Het stuurt geen gegevens naar derden, noch bevat het bronnen van derden.
De volledige privacyverklaring van Query Monitor vindt u hier.
Accessibility Statement
Query Monitor aims to be fully accessible to all of its users. It implements best practices for web accessibility, outputs semantic and structured markup, uses the accessibility APIs provided by WordPress and web browsers where appropriate, and is fully accessible via keyboard.
That said, Query Monitor does not conform to the Web Content Accessibility Guidelines (WCAG) 2.0 at level AA like WordPress itself does. The main issue is that the user interface uses small font sizes to maintain a high information density for sighted users. Users with poor vision or poor motor skills may struggle to view or interact with some areas of Query Monitor because of this. This is something which I’m acutely aware of and which I work to gradually improve, but the underlying issue of small font sizes remains.
If you’ve experienced or identified another accessibility issue in Query Monitor, please open a thread in the Query Monitor plugin support forum and I’ll try my best to address it swiftly.
Schermafbeeldingen
FAQ
-
Werkt deze plugin met PHP 8?
-
Yes, it’s actively tested and working up to PHP 8.2.
-
Wie heeft toegang de uitvoer van Query Monitor?
-
Standaard wordt de uitvoer van querymonitor alleen weergegeven aan beheerders van installaties op één site en Superadministrators op installaties met meerdere locaties.
Daarnaast u een verificatiecookie instellen waarmee u querymonitor uitvoer bekijken wanneer je niet bent ingelogd of wanneer je bent ingelogd als gebruiker die de uitvoer van Query Monitor meestal niet kan zien. Zie het venster Instellingen voor meer informatie.
-
Heeft Query Monitor zelf invloed op de tijd of het geheugengebruik van de pagina?
-
Kort antwoord: Ja, maar slechts een beetje.
Lang antwoord: Query Monitor heeft een kleine impact op het genereren van pagina’s tijd, omdat het haken in WordPress op dezelfde manier dat andere plugins doen. De impact is laag; meestal tussen de 10 ms en 100 ms, afhankelijk van de complexiteit van je site.
Het geheugengebruik van Query Monitor is doorgaans goed voor ongeveer 10% van het totale geheugen dat wordt gebruikt om de pagina te genereren.
-
Can I prevent Query Monitor from collecting data during long-running requests?
-
Yes, if anything calls
do_action( 'qm/cease' )
then Query Monitor will cease operating for the remainder of the page generation. It detaches itself from further data collection, discards any data it’s collected so far, and skips the output of its information.This is useful for long-running operations that perform a very high number of database queries, consume a lot of memory, or otherwise are of no concern to Query Monitor, for example:
- Backing up or restoring your site
- Exporting a large amount of data
- Running security scans
-
Zijn er add-on plugins voor Query Monitor?
-
Een lijst met add-on plugins voor Query Monitor is hier te vinden.
Daarnaast ondersteunt Query Monitor op transparante wijze add-ons voor de debug bar plugin. Als er add-ons van de fout opsporingsbalk zijn geïnstalleerd, deactiveer je de fout opsporingsbalk en worden de invoegtoepassingen weergegeven in het menu van querymonitor.
-
Waar kan ik een nieuwe functie voorstellen of een bug melden?
-
Gebruik de issue tracker op Query Monitor’s GitHub repo omdat het makkelijker is om problemen daar bij te houden, in plaats van op de wordpress.org support forums.
-
Is Query Monitor available on Altis?
-
Yes, the Altis Developer Tools are built on top of Query Monitor.
-
Is Query Monitor beschikbaar op WordPress VIP?
-
Yes, but a user needs to be granted the
view_query_monitor
capability to see Query Monitor even if they’re an administrator. See the WordPress VIP documentation for more details. -
Ik gebruik meerdere exemplaren van ‘wpdb’. Hoe krijg ik mijn extra exemplaren te zien in Query Monitor?
-
This feature was removed in version 3.12 as it was rarely used and considerably increased the maintenance burden of Query Monitor itself. Feel free to continue using version 3.11 if you need to make use of this feature.
-
Can I click on stack traces to open the file in my editor?
-
Ja. Je kunt dit inschakelen in het venster Instellingen.
-
Accepteer je donaties?
-
I am accepting sponsorships via the GitHub Sponsors program. If you work at an agency that develops with WordPress, ask your company to provide sponsorship in order to invest in its supply chain. The tools that I maintain probably save your company time and money, and GitHub sponsorship can now be done at the organisation level.
Als toevoeging, als je van de plugin houd, zou ik graag zien dat je een beoordeling achterlaat. Vertel al je vrienden ook over de plugin!
Beoordelingen
Bijdragers & ontwikkelaars
“Query Monitor” is open source software. De volgende personen hebben bijgedragen aan deze plugin.
Bijdragers“Query Monitor” is vertaald in 21 talen. Dank voor de vertalers voor hun bijdragen.
Vertaal “Query Monitor” naar jouw taal.
Interesse in ontwikkeling?
Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via RSS.
Changelog
3.13.1
- Avoid a fatal error if a deprecated warning is triggered early on during the bootstrap process
- Avoid a PHP warning that can be triggered during certain HTTP API requests when Curl is not in use
- Don’t load QM during the plugin update process
3.13.0
- Adds a dedicated panel for “Doing it Wrong” and deprecated functionality usage
- Allows data in the HTTP API requests panel to be filtered by host name
- Adds a “Type” column wherever a list of hooks can show both actions and filters
- Improves various aspects of the “Editor” setting
- Increases the minimum supported version of PHP to 7.4
- Many thanks to @crstauf for the majority of the new features in this release
3.12.3
- Improves theme template part data collection when the Gutenberg plugin is in use with a block theme
- Skips attempting to resolve a block template if the theme doesn’t support block templates
- Removes the fallback to
$EZSQL_ERROR
for database query errors as it’s not possible to determine if the error should be ignored
3.12.2
- Adds the total count to the table footer of the PHP Errors panel
- Improves the destination URL for links that point to the site editor
- Implements some minor visual improvements
- Removes unreliable information about the transport for HTTP API requests
- Removes Query Monitor output from the interim login modal
3.12.1
- Corrects some inter-panel links that point to the Queries panel and sub-panels
- Switches to
sessionStorage
for the selected table column filters so they don’t persist across tabs or sessions - Removes the “Debug Bar:” prefix on the menus for panels inherited from the Debug Bar plugin
3.12.0
- Clarifies and improves information in the Template panel when a block theme or full site editing (FSE) is in use
- Avoids PHP warnings if a third party plugin makes unexpected changes to language file paths
- Implements some minor performance improvements
- Removes misleading information about WordPress memory limits
- Removes support for multiple instances of
wpdb
(see the FAQ for more information)
3.11.2
- Implements various accessibility improvements
- Fixes an issue where not all admin area footer scripts were shown in the Scripts panel
- Improves output when the SQLite feature in the Performance Labs plugin is in use
- Removes QM output altogether from the Customizer
- Ensures
wp-content/db.php
from another plugin doesn’t get removed when deactivating QM
3.11.1
- Avoids a fatal error in PHP 8 when
posix_getpwuid()
orposix_getgrgid()
doesn’t return an expected value.
3.11.0
- Adds a new “Multisite” panel that shows usage of
switch_to_blog()
andrestore_current_blog()
on Multisite installations - Improves the output shown for blocks and template parts when block themes or full site editing is in use
- Introduces new
QM_Data
andQM_Component
classes to make the data collection more structured and reliable - Increases the minimum supported version of PHP to 7.2
- Improves the performance of SVG icons
- Removes the ability to completely hide silenced PHP errors
- Avoids some deprecated notices in PHP 8.2
- Improves the performance of the PHP class autoloader
3.10.1
- Prevents logging duplicate entries for multiple calls to load the same translation file
- Brings the dispatcher priority back down to
9
for maximum compatibility with other plugins that use a shutdown handler
3.10.0
- Adds information about the current language on the Languages panel
- Reduces the chance that Query Monitor blames itself for PHP errors that don’t have a stack trace
- Replaces the use of Dashicons with inline SVGs and removes the
dashicons
dependency - Switches to class autoloading via Composer for reduced memory usage
- Changes the priority of the
shutdown
dispatcher from0
toPHP_INT_MAX
to ensure as much data as possible is collected - Improves the styling of Debug Bar add-ons
- Fixes some erroneous localisation of float values in REST API output
- Bumps the minimum supported PHP version to 5.6
- Improves various other bits and bobs
3.9.0
- Introduces a dark mode toggle on the Settings panel, which replaces the
QM_DARK_MODE
constant - Prevents errors with undefined constants being reported in
db.php
- Adds more comprehensive handling of unexpected values in stack traces
- Fixes PHP Warning ‘Header may not contain NUL bytes’ when outputting headers
3.8.2
- Fixes some deprecated notices with PHP 8.1
- Improves the handling of SQL queries that consist only of MySQL comments
3.8.1
- Fixes an incompatibility with PHP versions prior to 7.2
- Fixes a warning that was being triggered within the PHP header dispatcher
- Introduces the
qm/component_type/{$type}
filter - Introduces a
QM_VERSION
constant
3.8.0
- Introduces the ability for a third party to cease all further data collection and output at any point by calling
do_action( 'qm/cease' )
, for example to prevent memory exhaustion during long-running operations - Reduces the width of the admin toolbar menu item by using lower decimal precision
- Improves the Template panel information when a block theme is in use (for Full Site Editing)
- Improves the performance and accuracy of stack traces and calling function information
- Corrects some formatting of numbers and error messages in the REST API output
- Adds more useful information when a persistent object cache or opcode cache isn’t in use
- Improves clarity in the Scripts and Styles panels when any of the URLs include a port number
- Introduces the
qm/component_context/{$type}
filter to complementqm/component_name/{$type}
andqm/component_dirs
- Improves internal code quality, internationalisation, and further reduces overall memory usage
3.7.1
- Add a fallback for timing processing during Ajax requests that are dispatched before the
shutdown
hook.
3.7.0
- Introduce debugging output in a
qm
property in enveloped REST API responses - Add HTTP API call information to the overview panel
- Don’t show QM output inside WordPress embeds as nobody uses this
- Don’t try to access the
QM_HIDE_SELF
constant before it’s defined - Process the timing and memory related stats as early as possible so the data isn’t too skewed
3.6.8
- Add WordPress memory usage statistic to Overview panel
- Add block context information to the Blocks panel
- Fix row highlighting of TH cells
- Fix some panel resizing bugs
3.6.7
- Implement a
QM_DB_SYMLINK
constant to prevent thedb.php
symlink being put into place. - Remove a dependency on
SAVEQUERIES
in the query collector. - Remove invalid
scope
attributes on table cells.
3.6.6
- PHP 8 fix.
- Improve the display for various empty values when logging.
- Don’t display child menus until the parent menu is active. Makes the menu clearer.
- Detect local host names in HTTP API requests and don’t mark them as ignoring certificate verification.
- Prevent the text in toggle buttons from being selected when selecting data in tables.
- Remove support for the Dark Mode plugin which isn’t Dark Mode any more.
3.6.5
- Always show the Logs panel, with a link to help docs.
- Whole bunch of improvements to QM’s “broken” state handling.
- Remove usage of deprecated jQuery methods.
- Add support for Altis dependencies as components.
- Add
innodb_buffer_pool_size
variable to the mysql environment list. - Preformat the Logger output
- Fix the PHP version check.
3.6.4
- Correct an error introduced in 3.6.2 with the extra early error handling (ironic).
3.6.3
- Correct the size of the close icon.
3.6.2
- Capture and display the most recent PHP error that occurred before QM loaded.
- Add support for the environment type added in WP 5.5.
- Avoid a potentially blank translation for some plural forms.
- Increase some contrast in dark mode.
- Combine the response-related sections of the Request panel.
- Add extra sanity checking when attempting to fetch the posix user information.
3.6.1
- Adjust the bottom margin when the QM panel is open so QM doesn’t cover the bottom of the page. Works more often than not.
- Prevent QM from triggering a fatal itself if a fatal occurs before the HTML dispatcher is loaded.
- Add an informational message to the template output when template hooks are in use.
- Fix errors caused by missing user or group IDs when collecting environment data.
- Add TextMate to list of supported editors.
- Demote some cache warnings to informational messages.
- Support passing backtrace to
QM_Backtrace
.
3.6.0
- Verbeteringen in de gebruikersinterface wanneer er een fatale fout optreedt, waaronder een waarschuwing voor een werkbalk voor beheerders.
- Verbeteringen aan de gebruikersinterface wanneer QM wordt uitgevoerd in de modus ‘kapot’ als gevolg van ontbrekende jQuery of een onherstelbare JavaScript fout.
- Geef geen fatale fouten weer als het foutscherm is uitgeschakeld en de gebruiker QM niet kan bekijken.
- Verbeteringen aan het visuele uiterlijk van de
wp_die()
uitvoer. - Vereenvoudig opnieuw gooien van een gevangen uitzondering, zodat QM niet de schuld voor fatale fouten, bijvoorbeeld. in de WordPress kern fatale fout handler.
- Ondersteuning toegevoegd voor het loggen van een variabele van elk type in de logger, als een vervanging voor var dumping.
- Toon geen bericht voor fouten in Ajax aanroepen die al zijn opgetreden bij het laden van de hoofdpagina.
- Verzend QM niet tijdens een iframed-verzoek, bijvoorbeeld de plug-in info modal of een upgrader actie.
- Verberg QM zelf standaard van verschillende panelen om ruis te verwijderen. Kan worden bediend via de bestaande
QM_HIDE_SELF
configuratieconstante. - Ondersteuning voor de nieuwe
is_favicon()
voorwaardelijke toegevoegd in WP 5.4. - Fix the side panel resizing functionality.
- Voeg een WP-CLI opdracht toe voor het maken van de symlink aan het db bestand.
- Filters toevoegen aan
QM_Util::get_file_dirs()
en ondersteuning bieden voorget_file_component()
niet-standaard plugin en themalocaties. - Voeg een actie toe die wordt geactiveerd wanneer QM de assets in de wachtrij plaatst, zodat add-on plugins alleen in de wachtrij kunnen staan wanneer dat nodig is.
3.5.2
- Voeg ondersteuning toe voor het blootstellen van volledige site bewerking blokken in het venster Blokeditor.
3.5.1
- Stel de populatie van het pand uit
found_formatted
omdat dit kan worden afgestoken voordat WPML de lokale proxy heeft geïnitialiseerd. Lost #485. - Controleer of alle fouttypen worden verwerkt bij het vullen van het aantal fouten in het deelvenstermenu. Fixes #486.
3.5.0
- Voeg een UI voor editorselectie toe aan het venster Instellingen.
- Verbeter de uitvoer van ontbrekende activa afhankelijkheden.
- Verbeter de uitvoer van mislukte template onderdelen.
- Behandel niet-booleaanse constanten zoals
WP_DEBUG_LOG
, die nu ook een pad accepteert. - Voeg ondersteuning toe voor aanraakapparaten wanneer u het formaat van het deelvenster wijzigen. (Werkt goed-achtig, heeft waarschijnlijk wat animatie frame werk nodig.)
- Pas dezelfde stijlen toe op meldingen, afgeschafte en strikte fouten.
- Wat meer stijl reset voor compatibiliteit met populaire thema’s.
- Stijlwijzigingen om QM in lijn te brengen met de verbeterde knop en focusstijlen van WP 5.3.
- Meer kleurcontrast en donkere modus tweaks.
- Voeg permalink-gerelateerde filters toe aan de betreffende filters voor het venster Aanvraag.
- Fix and improve the admin toolbar menu hover colours.
- Voeg het aantal fouten toe aan het venstermenu.
- Verwijder onnodig gebruik van meervoudsvormen die in 3.4.0 zijn toegevoegd.
- More CSS resets to avoid overly tall filters in Firefox.
- Verbeterde styling voor waarschuwingsrijen.
- Geef het aantal logboeken weer in het menu artikel.
3.4.0
- Introduceer een uitzondering handler zodat een stack trace kan worden weergegeven voor fatale fouten in PHP >= 7.
- Voeg afzonderlijke persistentie van het QM venster toe voor front-end en beheergebied.
- Voeg de HTTP headers voor aanvragen en antwoorden toe aan het venster aanvragen.
- Kolommen gestart en gestopt introduceren in het venster Timings.
- By popular demand, revert back to closest first ordering of stack traces so they’re inline with most other dev tools out there.
- De scriptgreep weergeven naast het tekst domein in het venster Talen.
- Verbeter het venster menu highlight kleuren.
- Betere presentatie van de standaard en huidige waarden voor de instellingen constanten.
- Afkappen lange host namen in de vensters Scripts en stijlen.
- Voeg wat meer van de beheerder scherm globalen aan het beheer collector toe.
- Ga terug naar het gebruik van een monospace lettertype in numerieke gegevenscellen.
- Laat de donkere modus inschakelen met
QM_DARK_MODE
. - Geef het totale aantal query’s weer, zelfs als
SAVEQUERIES
dit als onwaar wordt gedefinieerd. - Laat de juiste meervoudsvormen worden gebruikt waar een zin een numerieke waarde bevat.
- Meer stijl resetten voor compatibiliteit met Twenty Twenty.
- Vermijd een divisie met nul wanneer cache hits 0 is.
- Overschakelen naar (meestal) CSS voor de markering van onderliggend menu artikelen.