Halloween Sale 15% off Ends in See the plans

Snippet Library

WordPress code snippets, ready to use

3,040 free snippets from the WPIDE team and the community. Copy the code, or add any snippet to your site in one click with WPIDE.

1–13 of 13 snippets “monitoring”

  • PHP Performance

    Find What Is Calling admin-ajax.php

    Counts admin-ajax.php requests per action (and whether they come from the front end or the dashboard) for the current day and the previous six, and shows the busiest ones under Tools > AJAX Usage.

  • PHP Performance

    Log Scheduled Tasks That Take Too Long

    Measures how long each scheduled task (cron event) takes to run and records the slow ones under Tools > Slow Cron Tasks, so you can spot the plugin that makes WP-Cron sluggish.

  • PHP Performance

    Log Slow Outgoing HTTP Requests

    Times every request your site makes to other servers (update checks, APIs, license servers) and records the ones slower than a second under Tools > Slow HTTP Calls, so you can find what is holding up page loads.

  • PHP Developer

    Log Slow Page Loads

    Writes a line to the PHP error log for every request that takes longer than a set number of seconds, with the URL, time, memory and query count.

  • PHP Performance

    Server-Timing Header for Administrators

    Adds a Server-Timing header with PHP time, database query count and peak memory to pages viewed by administrators, so you can read the numbers in your browser's developer tools Network tab.

Have a snippet worth sharing?

Publish it to the library from WPIDE or right here. Sign in with any WordPress site that runs WPIDE, free or Pro. Public snippets are reviewed by the WPIDE team before they appear.