LocalePro
Menu

Performance

What LocalePro costs a page, measured.

These are our own numbers, from our own benchmark, on one machine. We explain exactly how they were taken, what they leave out, and how to run them yourself.

What "overhead" means here

LocalePro translates a page after WordPress has rendered it. It reads the finished HTML, finds the text, looks each sentence up in translation memory, writes the translation back into the markup, and rewrites internal links and structured data to point at the translated address. That work happens on every view of a translated page, so it is the number that matters once a page has been translated.

Overhead on this page means that PHP work only. It does not include the time WordPress and your theme take to build the page in the first place, and it does not include waiting on DeepL, Google, or Microsoft. Provider time is a separate measurement further down, because it only happens the first time a sentence is seen.

Two states matter. A warm page is one whose sentences are all already in translation memory: no provider call, one database read. A cold page has sentences nobody has translated yet, and the provider's response time dominates.

Warm page: measured baseline

Taken on 14 September 2026 with the plugin's own benchmark harness, Html_Bench_Test. Three synthetic pages, each with around 150 internal links. Translation memory pre-seeded and the object cache warmed, so no provider and no database miss is on the clock. Mock provider, no network. PHP 8.3 in a local ddev container. Each stage timed over 20 iterations after one untimed warm-up; the figures are means, in milliseconds.

Page Size Segments Tokenize Translate JSON-LD Links Total
Small 38 KB 452 0.7 14.9 0.8 5.6 18.4 ms
Medium 144 KB 1,652 1.9 52.6 1.9 14.5 73.4 ms
Large 455 KB 5,152 6.9 208.9 5.8 48.0 233.2 ms

How to read the columns. A segment is one unit of translatable text, usually a sentence or a short attribute value. Tokenize is a single pass over the HTML with nothing changed, shown as a floor. Translate is extracting the segments and writing the translations back. JSON-LD is translating structured data. Links is rewriting internal links to the translated address, which includes resolving each link to a post.

What it shows. The cost scales with the number of segments, not the size of the page in bytes. Parsing is cheap; the time is in writing translations back into the document. The large page, with more than five thousand segments, is the case the plugin's own provisional budget of roughly 200 ms for a 500 KB page does not yet meet, and the plugin's performance notes say so.

One database query per warm page

On a warm page, LocalePro resolves every sentence's translation with at most one database query, and never contacts a provider. This is not a design goal written in a document; it is an assertion in the test suite that runs on every change.

The test

Translation_Cache_Test::test_warm_request_costs_at_most_one_translation_query

It translates a page once, flushes the object cache so the next request starts cold in memory but warm in the database, translates the same page again, and asserts two things: the provider was not called a second time, and the database query count rose by one or less.

Related tests in the same suite keep other hot paths from regressing: Hot_Path_Queries_Test checks that a URL is resolved to a post once per request however many times it is asked, that checking whether the database schema changed costs zero queries when it has not, and that building a cache key costs nothing once seeded. Bulk_Query_Budget_Test checks that a sitemap page reads all of its translated slugs in a single query, and that rewriting a post costs the same whether it is short or long.

"At most one" is per request for translation lookups. WordPress, your theme, and other plugins run their own queries, and LocalePro's settings are read from options WordPress already loads.

Cold page: provider requests in parallel

A cold page is bounded by the provider, not by PHP. DeepL accepts 50 strings per request, so a long page becomes several requests. LocalePro sends them concurrently, 20 at a time by default. This was measured once, on one real page: a 187 KB author archive with 425 unique segments, which took nine DeepL requests. Every segment was translated and none failed in each run.

Requests Provider time Page total
One request at a time 9,243 ms ~10.5 s
6 requests in flight 2,779 ms 2.98 s
20 requests in flight (default) 1,431 ms 1.64 s

With six in flight, nine requests become two groups, and each group costs its slowest member. Above the page's request count the whole page is one group, and the provider cost collapses to roughly one round trip. The concurrency limit is filterable with localepro_max_concurrent_requests, and parallel sending can be switched off with localepro_concurrent_requests. When another plugin hooks WordPress's HTTP layer, LocalePro falls back to sequential requests automatically.

A visitor-facing render waits at most 3 seconds for a provider; background work under cron, WP-CLI, or warm-up waits 15 seconds (localepro_provider_timeout). A rate-limit response is retried once, honouring Retry-After up to one second. Beyond that, the remaining sentences go to the next provider in your chain, or render in the source language for that view, and the page is marked not to be cached.

Reproduce it

The harness ships with the plugin. From a checkout with the integration test environment set up (the plugin uses wp-phpunit), run:

LOCALEPRO_BENCH=1 composer test:integration -- --filter Html_Bench_Test

It is skipped unless LOCALEPRO_BENCH=1 is set, because it produces numbers rather than a pass or fail, and it prints a per-stage breakdown for each of the three profiles. Your numbers will differ from ours with your PHP version, hardware, and rewrite rules; the shape should hold.

The query budget test runs as part of the normal suite:

composer test:integration -- --filter Translation_Cache_Test

On a live site, the Query Monitor panel LocalePro adds shows the translation lookups, cache hits, provider calls, and the reason a request was skipped, so you can see the same thing on a real page.

Caveats

  • One machine, one date. The warm figures come from a single run on a developer laptop in a ddev container on 14 September 2026. They are not a hosted benchmark, and we have not repeated them across hardware or PHP versions.
  • The "links" column is a floor. The test environment has almost no rewrite rules, so resolving a link to a post is nearly free there. On a production site with a large rewrite table it costs more. On one live site with 188 rewrite rules we measured about 19 ms per page at 150 links before a shortcut was added that skips this work for languages with no translated slugs; larger on a WooCommerce install.
  • Synthetic pages. The three profiles are generated HTML built to be dense (many short segments) or sparse (few long ones). Your theme's markup will land somewhere else on the curve.
  • The large page misses the budget. The plugin's own provisional target for a 500 KB dense page is around 200 ms warm; the measured 233.2 ms is above it. The plan on record is a finished-page cache for repeat views of identical markup, pre-filled from warm-up; it is not in the numbers above.
  • The cold-page figure is one page, one site. It was measured on the archive that prompted the change, against DeepL, and reflects that provider's latency on that day.
  • The millisecond gate is opt-in. Set LOCALEPRO_BENCH=1 and Html_Bench_Test fails if a profile's warm total is more than 10% above the table. The query-budget tests still run on every change.

What is not measured

We have not benchmarked any other translation plugin, and we are not going to quote a number we did not take ourselves. Nothing on this page compares LocalePro with anything else. We also have no time-to-first-byte figures from a hosted environment, no measurements under concurrent traffic, and no numbers for Google Cloud Translation or Microsoft Translator on a cold page.

A comparative programme is planned: the same scenarios, on the same hosting, with the same pages, for several plugins, with the method published before the results. There is no date for it. Until it exists, the honest statement is the one above: here is what our code costs, here is how we know.

Getting the most out of it

Run a persistent object cache

Redis or Memcached. LocalePro reads translations from the object cache in bulk before it touches the database, and the lock that stops many visitors from triggering the same first translation at once needs a shared cache to work across PHP workers.

Choose immediate or warm-up

With immediate translation on, the default, a sentence nobody has seen is translated during the visitor's request. Warm-up translates posts and pages when they are saved, so the first visitor finds a warm page. Archives, author pages, and paginated views are not warmed on save today, so long listing pages meet their first visitor cold.

Let your page cache work

Every language has its own address, such as /es/, so a page cache keyed on the URL keeps one copy per language with no extra configuration. A page that could not be fully translated is marked with DONOTCACHEPAGE and sent with no-cache headers, so a half-translated page is never stored. Once cached, the overhead above is zero for that view.

Try it on a staging copy first.

Staging never calls a provider unless you allow it, so you can measure the plugin on your own pages before it costs anything.