X-Ray — PHP Performance Profiler

Developer • CloudLinux

The CloudLinux tool that pinpoints exactly why your site is slow — it analyzes every HTTP request, measures PHP execution times and isolates costly SQL queries.

CloudLinux X-Ray

What is X-Ray?

X-Ray is a PHP performance profiling tool integrated into cPanel by CloudLinux. It analyzes the execution of HTTP requests in detail — identifying slow PHP functions, costly MySQL queries and external calls that cause latency.

Complete PHP tracing

Analyze the complete stack trace of an HTTP request — every PHP function called, its duration and execution order. Identify exactly which code is responsible for the slowdown.

MySQL query profiling

Lists all SQL queries executed during the request, with the execution time of each. Instantly identify N+1 queries, missing indexes or queries without LIMIT.

Monitor specific URLs

Configure X-Ray to analyze certain URLs or pages — for example the homepage, product page or checkout — without overhead on the rest of the site.

Detailed report per request

Each analyzed transaction generates a complete report with: total time, breakdown by component, top 10 slow functions and all SQL queries with EXPLAIN plan.

X-Ray — HTTP request tracing
GET /product/laptop-xyz 3.247s ⚠
WC_Product_Query::get_products()
1.834s
wpdb::query() × 142 calls
892ms
wp_remote_get() — external API
312ms
get_template_part() × 18
124ms
wp_enqueue_scripts()
45ms
⚠ Issue identified: 142 MySQL queries — likely an N+1 problem in WooCommerce. Add indexes or enable query caching.
X-Ray capabilities

Complete performance diagnostics

X-Ray identifies all the causes that slow down a PHP site — from the application code to the database and external calls.

PHP Function Profiling

Measures the execution times of every PHP function in the stack trace. Immediately identify which function consumes the most processing time.

MySQL Query Analyzer

Lists all SQL queries with execution times — detects slow queries, missing indexes and the N+1 problems typical in WordPress/WooCommerce.

Detect slow external calls

Identifies external HTTP calls (third-party APIs, webhooks) that block PHP execution — a frequent, hard-to-spot cause of slowdowns.

Per-URL reports

Configure tracing on specific URLs — check the performance of the homepage, a product page or the checkout process independently.

Visual interface in cPanel

X-Ray reports are accessible directly from cPanel with a graphical interface — timeline charts, sortable tables and filtering by operation type.

Zero impact on production

X-Ray can be enabled selectively on certain URLs and disabled after diagnosis — without permanent overhead on PHP execution in production.

Use cases

When and how to use X-Ray

X-Ray is the diagnostic tool you turn to when a site works, but has high response times.

Slow WordPress site

Enable X-Ray on the homepage or the problematic page. The report immediately shows whether the problem is at the plugin level, an SQL query or an external API call — and exactly which code is causing the slowdown.

WooCommerce optimization

WooCommerce can generate hundreds of SQL queries per page. X-Ray identifies exactly which hook or plugin causes the N+1 problem and on which pages — without guessing.

Debugging custom applications

For PHP applications developed in-house, X-Ray removes the need for a local profiler — you can analyze the real behavior of the application in production, with real data.

Frequently asked questions

About X-Ray

Answers about the PHP profiling tool from CloudLinux.

Enabled on demand

X-Ray is enabled manually — it does not run permanently

Included on all plans

X-Ray is available on all Trustnet Solutions shared hosting plans

Yes, there is a slight overhead — PHP instrumentation adds 5-15% processing time per analyzed request. This is why X-Ray is enabled selectively on specific URLs and disabled after diagnosis. Do not leave X-Ray permanently active in production.

Go to cPanel → X-Ray. Add the URL you want to analyze, access that page from the browser (or with a benchmark tool), and the report appears in the X-Ray interface with complete details about the execution.

Yes — X-Ray works with any PHP application: Laravel, Symfony, CodeIgniter, Magento, PrestaShop, Joomla or custom PHP code. Instrumentation happens at the PHP runtime level, not the framework level.

Yes — X-Ray reports are accessible exclusively from your account's cPanel. The profiling data (stack trace, SQL queries, execution times) remains on the Trustnet Solutions server and is not shared with third parties.

X-Ray included on all hosting plans

Diagnose the performance of any PHP application directly from cPanel — without installing external tools, without SSH access, without advanced profiling knowledge.


Accessible from cPanel → X-Ray. Enabled on demand, it consumes no resources when not in use.