case 02 · corporate site · Canada

Bilingual
corporate site, audited

ratioweb.ca is the website of a tech services agency, in Spanish and English. I inherited the theme already built, fixed its responsive design across the whole site and then measured it, corrected it and measured it again until mobile performance went from 51 to 88 in production.

ratioweb.ca
Home page of ratioweb.ca, a bilingual corporate site for tech services
131/131audit findings closed
51 → 88mobile performance
88Perf.
100Access.
100Pract.
100SEO
Lighthouse mobile · ratioweb.ca in production
Client

Ratio Web, tech services agency in Canada

Starting point

Theme created in 2021 by the original team; I have been in charge of it since 2025

My role

Responsive, performance, accessibility, security, SEO, forms and maintenance

Languages

Spanish and English with Polylang, one theme, two sites

// the challenge

It looked good
but measured badly

The site worked and people liked it. But the first mobile measurement gave 51 out of 100 in performance, an LCP of 15.6 seconds, accessibility and security failures nobody could see at a glance, and a layout that needed fixing on mobile and tablet.

An agency site sells trust. If it loads slowly or fails with the keyboard, the visitor notices before reading a single word.

01

Performance

Mobile 51/100. FCP of 9.2 s and LCP of 15.6 s. Heavy PNG images, loose fonts and scripts that blocked rendering.

02

Accessibility

Mobile 76/100. Borderline contrast, invisible focus, a mobile menu built with a div and several H1s per page.

03

Security

More than 80 unescaped outputs across seven templates, jQuery 3.5.1 with vulnerabilities and no security headers.

04

Bilingual SEO

Mobile 85/100. Duplicate headings, a broken hierarchy and the same filler meta description on 11 pages.

// audit walkthrough

From 51
to 88 on mobile

Six fronts, the same method: measure, fix and measure again. Scroll down and watch them in order.

01 · measure

Measure before touching anything

Lighthouse on mobile and desktop, and five auditors in parallel: security, SEO, accessibility, performance and best practices. They surfaced 55 findings, each with its own code in a work list.

/wp-audit · builtLighthouse · third-party
02 · security

Close what you cannot see

Every output goes through esc_html or esc_attr, $_SERVER inputs are sanitized, jQuery is upgraded to 3.7.1 and the site sends security headers. XML-RPC and pingbacks are closed.

inc/performance.php · builttemplates · improved
03 · performance

Less weight, less waiting

CSS split per page, 13 PNGs converted to WebP, one variable font instead of six files, scripts with defer and the LCP logo at high priority. One-year cache for whatever does not change.

inc/performance.php · builtTailwind per page · improved
04 · accessibility and SEO

For people and for search engines

Thirty-five accessibility fixes: visible focus, skip link, mobile menu with a button and keyboard support, contrast and a single H1. In SEO, 21 changes: headings, metas, breadcrumbs, hreflang and structured data.

templates · improvedRank Math · configuredPolylang · third-party
05 · responsive

A layout that fits every screen

The theme did not adapt well to mobile and tablet. In three rounds, between November 2025 and July 2026, I adjusted navigation, home, MVP and web portal pages, typography, footer, cards and spacing, until mobile, tablet and desktop were covered.

CSS and templates · improvedmobile menu · improved
06 · forms

Forms that notify properly

The contact form uses Contact Form 7 with Turnstile and a honeypot trap. Each error is shown under its field, in both languages, and the notification to the team goes out by email and Telegram.

Contact Form 7 · improvedTurnstile · third-partyFluent SMTP · third-party
initial measurement · mobilestep 1 / 6
Performance51
Accessibility76
Best practices74
SEO85
5 auditors55 findings
securitystep 2 / 6
~80 unescaped outputs7 templates
jQuery 3.5.1 → 3.7.1vulnerability
XML-RPC and pingbacksclosed
Security headerssend_headers
REQUEST_URI unsanitizedsanitized
performancestep 3 / 6
−3.9 MB13 PNGs converted to WebP
−158 KBone variable font instead of six
64–110 KBCSS per page, previously 178 KB in a single file
−1,050 msjQuery with defer off the critical path

figures from the optimization commits

accessibility and SEO · mobilestep 4 / 6
76Accessibility
85SEO
35 accessibility fixes21 SEO
responsivestep 5 / 6
mobiletabletdesktopNov 2025 · Mar and Jul 2026
contactstep 6 / 6
Enter a valid email address
Cloudflare Turnstileverified
submit → Contact Form 7 validates
→ error under each field, in the page language
✓ Turnstile resets after the error is shown
// real problems

What breaks
when optimizing

Six cases taken from my commits on this project. Each card carries the commit that solved it.

fix · 27bcba48built

Animations waited for a gesture that never came

With AOS deferred, animations only started after a scroll or a click. Now they start on their own after a second, without double initialization.

fix · 64daad4bimproved

The async CSS trick left the site unstyled

Loading the stylesheet with media="print" made unstyled content flash on slow servers. With per-page CSS it was no longer needed, so I removed it.

fix · e14b34cfimproved

Turnstile wiped the form errors

The plugin reset its widget on the submit event and took the CF7 messages with it. A theme filter moves it to wpcf7submit without touching the plugin.

fix · 55494cb4improved

The logo, which is the LCP, was lazy-loaded

PageSpeed flagged it with loading="lazy" and no priority. Since the WordPress filter does not act on SVG, the theme writes the logo directly in the three positions.

fix · c823397cimproved

Mobile broke on small details

Headers with too much space above, service cards that did not fit together and the mega menu without its touch selector. One commit closed it across four templates.

fix · f3f8e4d1improved

The form was not styled in Spanish

The contact styles were loaded by slug, and in Spanish the page is called contactenos. They now load by template and work in both languages.

// under the hood

What's
behind the website

Where a visit goes

visitorBrowserin Spanish or English, mostly from a phone
Ratio Web teamWordPress dashboardsite texts and options with ACF, without touching code
search enginesGooglesitemap, hreflang and structured data from Rank Math
// server

WordPress + ratio_web theme

inc/performance.phpcache, headers, cleanupbuilt
PHP templateshome, services, contact, 404improved
Tailwind 2 per pageCSS split per templateimproved
Rank Mathtechnical SEO and breadcrumbsconfigured
ACF Pro + Polylangfields and two languagesthird-party
Megamenuservices menuthird-party
build and review
Tailwind · PostCSS · pnpmPlaywright · tests · improvedJenkinsfile · team
cache and botsCloudflarepage cache and Turnstile on the forms
emailFluent SMTPform notifications always arrive
notificationsTelegramevery new contact reaches the team chat
NewImprovedExisting
// method

Measured,
not assumed

The cycle of every finding

Nothing is taken for granted. Every fix goes back through the same measurement that found it, and the work list is only closed with evidence.

01MeasureLighthouse and 5 auditors
02Fixone finding, one change
03Measure againand close with its result

Rules I left in the theme

Security headersand XML-RPC closed from the theme itself
One-year cachefor whatever does not change, with immutable
Responsive images in WebPwith srcset, sizes and dimensions to avoid layout shifts
Preloaded fontWOFF2 with font-display: swap
Forms with a double filterTurnstile and honeypot against bots
// result

Audit
by the numbers

131/131findings closed, none pending
+37mobile performance points, from 51 to 88 in production
100in SEO on mobile and in best practices on desktop
2languages, Spanish and English, with the same theme

Lighthouse measured on www.ratioweb.ca, in production, on October 17, 2026: mobile 88, 100, 100 and 100; desktop 89, 100, 100 and 92. There is some variation between runs. The initial measurement of 51, 76, 74 and 85 was taken locally on July 16, before the audit.

WordPressPHPTailwind CSSPostCSSACF ProPolylangRank MathContact Form 7CloudflareTurnstileLighthousePlaywright
// your project

Want something like this for your business?

Tell me what you need. I reply within 24 hours and, if it is a fit, you get a fixed written proposal.