Reading progress
A product page takes three seconds to open. The page itself is the only slow request Chrome shows. The plugin responsible never appears as a separate browser request because PHP is waiting for a remote service before it returns the HTML.
That is one meaning of a hidden API call. Others happen only when you open a settings screen, update a license, place an order, or wait for a scheduled job. Each request has a caller, destination, and purpose. A useful audit finds those details before deciding whether the request belongs in your stack.
Where the requests actually run
- In the browser. A plugin can load a script, send an analytics request, or fetch data after a user opens a form. Chrome’s Network panel can show the destination, timing, and initiator while the page is open. The browser can also call a same-site WordPress REST endpoint that triggers a second, server-side request. Chrome DevTools Network reference.
- In PHP while WordPress handles a request. A plugin can ask another service for a tax quote, a feed, a license check, or a payment status. A synchronous request can add time to a page or an admin action. WordPress offers an HTTP API for server-side requests. PHP libraries and SDKs can also make calls through their own transports. WordPress HTTP API function reference.
- In a background job. Updates, scheduled syncs, and retries may run through WP-Cron, Action Scheduler, or another worker. A normal page load can look quiet even if a job contacts a provider every hour. WordPress Plugin Handbook on WP-Cron · WooCommerce’s scheduled action guide.
Keep direction in the audit. A provider’s webhook reaching WordPress is inbound. WordPress calling a provider after receiving that webhook is outbound. One order can involve both. This distinction helps you look at the right logs when an event is delayed.
Trace requests through one workflow at a time
- Establish a baseline. Use a staging copy you control, with synthetic users, test orders, and sandbox credentials. Make sure the test environment does not send production email or fulfillment requests. Record which integrations are enabled.
- Watch the browser. Open DevTools Network and enable Preserve log when a flow navigates between pages. Repeat the action you care about, such as viewing a product, saving a plugin setting, or placing a sandbox order. Inspect the request initiator and timing. Work with redacted notes if you would otherwise have to share a network capture with cookies, tokens, or payload data. Chrome’s guide to inspecting network activity.
- Observe the corresponding server work. For calls using the WordPress HTTP API, temporarily record method, destination hostname, and response status on staging. Compare timestamps with the action you just took. If the shop uses a managed outbound proxy or host-level tracing, those logs can cover clients outside WordPress’s HTTP API. Keep the observation window small and authorized.
- Look at the scheduled jobs. Inspect the relevant hooks or actions around the same time. A request that occurs only when a job runs may need different retry and alerting rules from one that blocks checkout. Check the job’s status and the failed action log as well as the outbound response.
- Attribute the call with evidence. Repeat the same staging action with the suspected integration setting disabled, then enabled. For a scheduled call, compare runs of the relevant job. One hostname can be shared by a plugin, a dependency, and a theme, so treat a domain match as a lead.
A small staging logger for the WordPress HTTP API
WordPress fires http_api_debug after its HTTP transport returns a response. This example logs method, host, and status or a generic error marker. Use it in a temporary staging plugin with your private PHP error log. Remove it after collecting the observations you need. WordPress reference for the HTTP debug hook.
<?php
if ( 'staging' !== wp_get_environment_type() ) {
return;
}
add_action(
'http_api_debug',
static function ( $response, $context, $transport, $args, $url ) {
if ( 'response' !== $context ) {
return;
}
$host = wp_parse_url( $url, PHP_URL_HOST );
if ( ! is_string( $host ) || '' === $host ) {
return;
}
$method = strtoupper( sanitize_key( $args['method'] ?? 'GET' ) );
$status = is_wp_error( $response )
? 'transport-error'
: (string) wp_remote_retrieve_response_code( $response );
error_log( sprintf( 'WP outbound HTTP %s %s %s', $method, $host, $status ) );
},
10,
5
);
The hook sees requests that pass through WordPress’s HTTP API and reach this response hook. Direct cURL, a vendor SDK with its own transport, or a request that another component short-circuits can fall outside that view. This example also omits elapsed time and caller attribution. For latency, use authorized application tracing or compare request and job timestamps. Keep full URLs, headers, cookies, tokens, and request or response bodies out of routine logs. A hostname can still disclose internal infrastructure, so keep the log private. WordPress environment type reference · WordPress HTTP short-circuit hook.
Decide what each request is allowed to do
Put one row per identified call in your inventory. Record the plugin or feature, destination hostname, trigger, purpose, data categories, failure effect, and owner. Write “unknown” when you have only the hostname and status. Confirm data categories against the plugin documentation, a scoped code review, or a synthetic test you are authorized to inspect.
- Necessary and understood. A documented tax or payment request may be essential to completing an order. Set an owner and verify how the store behaves if that service is slow or unavailable.
- Optional and understood. If you do not need a diagnostics or telemetry feature, use its supported setting to turn it off and repeat the observation that first revealed it.
- Unexplained. Keep the evidence, ask the vendor, and decide whether to isolate the feature on staging until you know what it sends and why. A hostname that looks unfamiliar is a question to answer.
For plugins distributed through WordPress.org, the Plugin Directory guidelines describe consent and disclosure expectations for external services and tracking. Use the directory listing and official readme as inputs. Premium plugins distributed elsewhere need their own documentation review. The listing tells you what the vendor discloses. Your staged observation tells you what happened in the flows you tested. WordPress.org Plugin Directory guidelines.
Change outbound access with a test plan
WordPress offers WP_HTTP_BLOCK_EXTERNAL and WP_ACCESSIBLE_HOSTS for calls made through its HTTP API. These are application controls, so a separate network policy is required if you need to govern other HTTP clients. Test a narrow allowlist on staging before applying it to production. Check WordPress updates, payment, email, licensing, and any workflows that rely on external services. Document the owner and reason for each permitted hostname. WordPress HTTP blocking and allowlist reference.
Start with the workflow where a failure matters most. Follow one test checkout, form submission, or admin action from the browser through WordPress to its destination. By the end, you should be able to name the request, explain why it exists, and predict what a user experiences when it fails.
Find the right next step for your WordPress site.
Explore custom theme, plugin and technical development support.
Send a note
Have a correction, suggestion or a different interpretation? Send me a note.
SEND A NOTE
