OCT Performance Profiler: performance profiler for OpenCart 3
OCT Performance Profiler: performance profiler for OpenCart 3
Free module that shows exactly what slows down your store pages: database queries, modules, templates, cache. No OCMOD and no changes to core files.
Description
The store is slow, but why isn't clear: the theme, some module, the database, or the server? Usually people find out by guesswork: they disable modules one by one, change hosting, add caching. OCT Performance Profiler measures every page from the inside and shows the response in numbers: how much time went to the database, how much to code, which module made how many requests and from which line.
Turn on the profiler for your browser and open any store page. A panel with time, number of requests and memory will appear at the bottom, and a full profile will be saved in the admin. Customers see nothing and lose nothing in speed.
When the module comes in handy
- The store became slow after installing a module or theme. The "Benchmark" tab measures how many milliseconds and requests each installed module adds. All modules can be measured in one run and you get a ranking.
- One page loads longer than the others. Open it with the profiler: the timeline will show the heaviest branch, and the "SQL" tab will name the queries that repeat dozens of times.
- You need to explain to the developer what exactly to fix. The "Report" button saves a file with queries in loops, the file and the line of code. There is no store or customer data in the report, so it can be sent to the module's author.
- You want to know whether a change helped. Save a benchmark run as a baseline before changing hosting, PHP version or updating the theme. The next run will show what got faster and what got worse.
- You don't know where to start. The "Tips" tab gathers everything the module already knows into one list of "what to do first".
- Customers complain, but everything is fast for you. Sampling on the live store collects statistics of real visits: the slowest pages and queries.
What the module can do
- Page profile. Page time, SQL queries, controllers, models, templates, cache and memory for pages, AJAX requests and redirects. The call timeline shows what was executed after what and how long it took, together with event handlers.
- Breakdown by modules. How much time, queries and memory belong to the OpenCart core, the theme and each module separately. Code that a modification (OCMOD) added to core files is marked separately and is not attributed to the core.
- Excess queries. The module finds queries in loops (N+1), identical, slow and erroneous queries and names the file and line of code that makes them. For SELECT there is EXPLAIN with hints in plain language.
- Tips. A short list of problems from the audit, profiles, statistics and benchmark. The most important is at the top, and each item leads to where it is shown in detail.
- Image resizes. How many times the page asked for a resized image, how long it took and which modules asked. The images that had to be made during the request, not taken ready from the cache, are shown apart.
- Benchmark. Measurements of the home page, category, product, search and cart: median, spread, queries. You can measure as a guest or with a product in the cart. There is run history, a baseline and a marking of regressions.
- Browser metrics. TTFB, FCP, LCP, CLS, INP, the weight of the page and its requests by type. For LCP the element itself is named (for an image also the file) and the time is split into parts: the answer of the server, waiting for the file, loading, showing on the screen. For INP you see the element whose response was the slowest.
- Full call stack of a query. When switched on in the settings, every SQL query shows the whole chain of calls from
index.phpdown to the model: you see at once which controller and which module led to the query. - How much a module costs. Compares pages with and without the module in test requests. Nothing is turned off in the store during this, and customers see everything as usual.
- Live store statistics. Page times by routes, the slowest SQL queries of customers and profiles of the slowest visits. Sampling turns itself off after a set time.
- Audit. More than 25 checks of the server, PHP, OPcache, store settings and the database. Each with an explanation of why it matters and how to fix it.
- Indexes. Hints where the database lacks an index. An index is added with a button, the module measures the query before and after, keeps a log and can remove the added index.
- Database maintenance. Deleting expired service rows (ended sessions, old "who's online" records) and converting tables from MyISAM to InnoDB with the option to revert.
- Page budgets. Set limits for time, number of queries and memory. The panel and the list of profiles will show which pages exceed them.
- Developer tools. Comparison of two profiles, export and import, a file for speedscope.app,
Profiler::start()andstop()markers in your own code, theServer-Timingheader, and a deep mode for core requests before the first controller.
How the module is different
- No OCMOD and no core changes. The module works through its own events and library. No need to refresh modifications after installation. The module does not conflict with modifications because it does not use them itself.
- Not just a list of queries. The module shows whose code it is: the core, the theme or a specific module, with file and line.
- It measures rather than guesses. The price of a module is visible in milliseconds and queries, and the change before and after is visible in the benchmark.
- Safe on a live store. A disabled module adds nothing to pages. An enabled profiler works only in your browser.
- Tested. More than 450 unit tests and scenarios on five test stores with different versions of OpenCart, ocStore and PHP.
Requirements
- OpenCart 3.0.4.0–3.0.5.x or ocStore 3.0.4.1.
- PHP 7.3 or newer (tested on 7.4, 8.3, 8.4, 8.5).
- MySQL or MariaDB.
- Languages: Ukrainian, English, Russian.
Installation
- Upload
oct_performance_profiler.ocmod.zipin "Extensions → Extension Installer". - In "Extensions → Modules" click "Install" opposite OCT Performance Profiler.
- Open the module and enable the profiler on the "Settings" tab.
- Click "Enable for my browser" and open any store page.
No need to refresh modifications.
Specifications
- PHP Version
- 7.3 7.4 8.0 8.1 8.2 8.3 8.4 8.5
- OpenCart Version
- 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5
- Module Localization
- Ukrainian, English, Russian
- Support Language
- Ukrainian
Reviews (3)
Please log in to leave a review.
Log inBased on 3 reviews
Pros
функціональність
Cons
Немає
Questions (0)
Please log in to ask a question.
Log inNo questions yet
Be the first to ask a question about this product!
Changelog
- "OCT Performance Profiler" module first release: shows exactly what slows down the store pages.
- Profile of each page: time, database queries, modules, templates, cache and memory, with a panel right on the storefront and in the admin. Saved profiles are kept in a list with search and pagination.
- Search for excess queries: repeated, identical and slow ones, indicating the module and the line of code that makes them.
- "Tips" tab: a short list of what to fix first.
- "Benchmark" tab: speed measurements of the home, category, product, search and cart pages, with comparison to previous measurements.
- Measurement of how much each installed module slows down the pages, without changes to the store.
- "Statistics" tab: the slowest pages and queries of real visitors.
- "Audit" tab: checking server, store and database settings with explanations of how to fix them.
- "Indexes" and "Database" tabs: index suggestions with the option to roll back, cleaning up outdated service data, converting tables to InnoDB.
- Page budgets, comparison of two profiles, export, import and a developer report.
- Store buyers do not see the profiler, and personal data in queries is masked.
- Languages: Ukrainian, English, Russian.
- Minor bugs fixed, general improvements made.
Available Files
No files uploaded yet