X-Ray App and WordPress performance, how to find what slows your site down

The X-Ray App for WordPress performance is a CloudLinux diagnostic tool inside cPanel that records what each request to a page does and how long every step takes. You open X-Ray App, click Start tracing, enter the slow page and load it a few times. The report shows which plugin, which database query or which external call is eating the time. At Konet, X-Ray is available on all hosting plans.

What is the X-Ray App (PHP X-Ray)

X-Ray, also known as PHP X-Ray, is part of CloudLinux, the operating system that runs on Konet's shared hosting servers. It works like an "X-ray" of a request. While a tracing task is running, X-Ray records for each visit to the page you specified:

  • how long the request took in total,
  • how much time each plugin or PHP module took,
  • which database queries ran and how long each one took,
  • which calls were made to external servers (APIs, licence checks, shipping rates, feeds),
  • which other system functions delayed the request.

The tool is built mainly for WordPress and WooCommerce, because it recognises plugins by name. It also works for other PHP applications. You don't need code, server access or an extra plugin. For an overview of all the operating system's tools, see the CloudLinux documentation resources.

When X-Ray helps you

X-Ray answers the question "which part of the site is slow". It is the right tool when:

If TTFB is low and the site is slow only on mobile, the cause is usually the weight of the page (images, scripts) rather than PHP. In that case X-Ray won't show anything meaningful.

Where to find the X-Ray App in cPanel

  1. Log in to cPanel.
  2. Go to the Software section.
  3. Click X-Ray App.

You will see the list of tracing tasks you have created and the Start tracing button. Only your own tasks appear, and only for the domains in your account.

How to start a tracing task (Start tracing)

  1. Click Start tracing.
  2. Choose the domain from the list.
  3. In the field next to the domain, type the path of the slow page, for example /shop/ or /wp-admin/edit.php. If you want every page under a path, use *, for example /product/*.
  4. If needed, open Advanced settings. There you set how many requests to record (Requests, from 1 to 100) or for how long (Time period, from 1 minute to 2 days). In Client's IP you can enter your own IP so that only your visits are recorded. The default * means all IPs.
  5. Click Run.
  6. Open the page in your browser 5 to 10 times. For a dashboard page, repeat the action that is slow, for example saving a product.

Without changing the settings, X-Ray records the first 20 requests to the path. For a page with little traffic, make sure you generate the requests yourself, otherwise the task will stay open with no data.

What the task statuses mean

  • Running: tracing is in progress.
  • Completed: the time ran out or the number of requests was reached.
  • Stopped: the task was stopped manually.
  • On hold: another task already exists for the same path and the new one is waiting for you to start it manually.

Two tasks for the same path cannot run at the same time, including one of yours and one started by support. In that case you will see the message Task is duplicated by URL. Stop or complete the old task first.

How to read the X-Ray report

Open the task from the list. At the top you see counters: Total (all requests), Pending (being processed), Slow and, if there are any, Throttled. The Requests filter shows Slow by default. Requests that took 1 second or more are highlighted, and the list is sorted by duration. The data remains available for 30 days.

Click a slow request to see the details. The sections are:

  • Top issues: the steps that took the most time. Always start here.
  • Software modules/plugins: how much time each plugin took. If one plugin takes most of the time, it is your first suspect.
  • Database queries: the queries to the database, with their duration and the plugin they came from. Many repeated queries or one very slow query usually point to a bloated table or a poorly designed plugin.
  • External requests: calls to other servers. If a call takes several seconds, your page is waiting for another system to respond.
  • Other system functions: PHP functions outside the above, such as reading files or waiting.

What to do with what you found

  • Slow plugin: check for a newer version, review its settings or replace it. Test on a copy first or outside peak hours.
  • Slow database queries: clean up the data the plugin has collected (logs, transients, old tasks). Before deleting anything, keep a copy of the database from phpMyAdmin in cPanel.
  • Slow external call: contact the plugin developer or the service it calls. The delay is on their server.
  • Throttled requests: the request was slowed down because the account reached its plan's resource limits. What each limit means is explained in hosting resources. First check whether a plugin is the cause. If the site has simply grown, see when you need a hosting plan upgrade.

When you are done, stop the task if it is still running.

X-Ray data also feeds CloudLinux's optimisation advice (Smart Advice). When the system finds that an optimisation would help your WordPress site, the advice appears in AccelerateWP in cPanel as Advice available. Inside WordPress itself, a widget appears on the Dashboard and the full list is under Settings > SmartAdvice.

Each piece of advice has the status Review until you apply it and Applied once you do. You can undo it with Rollback. You may also receive an email when new advice is available. Advice is a suggestion, not an obligation. If your site already has a cache plugin that works well, read the AccelerateWP article first before applying anything.

What Konet does and what you do

At Konet, the X-Ray App is enabled on all hosting plans, so you can find the cause yourself without waiting. Support checks the server and its logs. Fixing plugins, the theme and code is the responsibility of the site administrator. See what hosting support covers. If you want help interpreting a report, open a ticket and include the domain, the path you checked and the time of the trace.

Frequently Asked Questions

Does X-Ray slow down my site while it runs?
Tracing covers only the path you specified and stops as soon as the time or the number of requests is reached. To be safe, keep the number of requests small and stop the task when you are done.

I clicked Start tracing but the task has no data. Why?
X-Ray only records requests that reach PHP. If the page is served from cache, it isn't recorded. Try while logged in to WordPress or with a dashboard path, and check that the path is typed correctly.

I see the message "Task is duplicated by URL". What do I do?
A task already exists for the same path. Stop the old one or wait for it to complete. If support started it, open a ticket.

Can I have X-Ray monitor my site continuously?
Not from the cPanel account. Continuous tracing is not available to users. Start a new task each time you want to check a page.

Does X-Ray work if my site isn't WordPress?
Yes, for any PHP application. The per-plugin breakdown is more detailed on WordPress, but queries and external calls show up for any PHP application.

X-Ray pointed to a plugin. Should I delete it right away?
No. Take a backup first, check for an update and its settings, and deactivate it as a test. Measure again with a new task to confirm that WordPress performance has improved.

Was this article helpful?

Related service Konet Web Hosting cPanel, LiteSpeed and automatic backups: 24 every 2 hours for 48 hours, then 6 daily, 4 weekly and 3 monthly.