Skip to content

View External Requests (API calls) in WordPress

External requests are performed regularly on all wordpress websites. But they are not visible inside WordPress. To view external requests I have developed and regularly use the HTTP Requests Manager plugin.

External requests also known as API calls are performed using WP_HTTP class in WordPress. HTTP Requests Manager plugin logs all WP_HTTP requests (external and internal) and then shows them an easy to understand user interface.

Here is a video tutorial to view external requests in the WordPress website.

Watch on YouTube.

How to view external requests in WordPress?

View WP_HTTP requests to external domain in WordPress.

  1. Install and activate “HTTP Requests Manager” plugin from WordPress repository.
  2. Navigate to “Tools” → “HTTP Requests Manager” page to make sure that plugin works.
  3. Wait some time (a couple hours or days) until the plugin logs some requests. Use WordPress more during the waiting period.
  4. Again navigate to “Tools” → “HTTP Requests Manager” page.
  5. Select “Group by request domain” option from the select box at the top.
  6. Now you will see an easy to navigate report grouped by external domains.

From here you can click on the group to expand and view individual requests. You will see which plugins are making those calls.

Viewing external requests helped me to find a slow page containing 2 API calls.

Meaning of colour coded bars for domains

In the grouped external request domain report you will notice some bars have different or mixed colors.

Colors are representing response status for requests in that group.

  • Blue – successful response
  • Orange – request blocked by HTTP Requests Manager plugin.
  • Red – failed response (404) or request timeout.

View individual external request data

View individual request data, page time, request time, response.

Click on individual requests to see more details.

In opened popup you will see:

  1. Full Request URL
  2. Time used for request
  3. Page initiating request
  4. Total page time
  5. Plugin related to the request and additional data.
  6. Request and response data.

What makes external requests?

External requests are made by WordPress core and plugins.

Plugin external requests

  • Plugins perform external requests  to complete certain tasks. For example: check news, updates, send emails using API, get templates, send and get mailing lists, sync CRM data, analytics, statistics, storage of remote backups, creating encrypted payment buttons and forms etc.
  • Every WordPress website will have different external requests depending on plugins they are using.
  • You need to monitor external requests initiated by plugins because they are developed by different individuals and companies. WordPress is not responsible for external requests made by plugins.

Learn how to view plugin requests using HTTP Requests Manager.

WordPress core external requests

  • WordPress core external requests – sends pingbacks, makes enclosure checks, gets oEmbed data, checks updates, loads plugins and themes from repository.
  • WordPress core communication with external requests performed on all websites.
  • Some external requests like pingbacks can be disabled in WordPress settings.Others like oEmbed, need to use specific plugins to disable those external requests.
  • WordPress core functionality enclosure checks can be disabled by using the HTTP Requests Manager plugin (same plugin that shows external requests).

Conclusion

Analyzing external requests in WordPress you will see some useless requests and some vital requests.

Custom rules to block or allow requests by domain or plugin.

To optimize WP_HTTP requests you can:

Viewing external requests is part of the debugging WP_HTTP usage process.

View more information about HTTP Requests Manager Plugin.

Leave a Reply

Your email address will not be published. Required fields are marked *