# WordPress MySQL Indexes Missing? Prove It Before You Add One
Source: https://wpmultitool.com/missing-db-indexes/

so header/footer/nav lists are untouched. */ main :where(div, section, article, aside, details, figure, ul, ol, dl, a):has(> :is(p, li, dd, blockquote, .faq-answer, .prose, .feedback-result, .lead-message)) { container-type: inline-size; } main :where(p, li, dd, blockquote) { font-size: var(--font-size-prose); } /* Exceptions: content-sized flex items. Inline-size containment drops an element's intrinsic width to 0, so a flex child with no basis collapses. The check script (claude-tmp/wp-multitool/dev-browser/type-check.ts) flags any container narrower than 60px - add the class here. */ /* UA \`small\` is font-size: smaller (~0.83em) - inside 14px UI text that is 11.7px (the (EN) mark on /pl/). Hold it at the 14px UI floor. */ small { font-size: max(var(--font-size-2xs), 0.833em); } main .founder-text { container-type: normal; } /* must out-rank the :has() rule (0,0,2) */ main :where(li li, li p, dd p, blockquote p) { font-size: inherit; } /* ---- Type + vertical rhythm ------------------------------------------ The reset above zeroes EVERY margin, so spacing only exists where a rule puts it back by hand. Homepage and Pricing got that by hand; the static content pages never did, which is why they render welded together (the "2. Slow Database Queries" heading had a literal margin-top: 0). These defaults put it back ONCE, globally, so a new page is never born smooshed. The \`* + x\` owl selector only adds margin BETWEEN siblings - an element that OPENS a card or section still sits flush, so existing components keep working without having to unset anything. Paragraphs outside

are 16px; inside

the fluid \`main :where(p, ...)\` rule above wins (this one is zero-specificity). \`body\` stays 1rem so UI chrome that inherits is untouched. */ :where(p) { font-size: var(--font-size-body); } * + p { margin-top: var(--space-md); } /* 1rem */ * + h2 { margin-top: var(--space-2xl); } /* 4rem - major topic break */ * + h3 { margin-top: var(--space-xl); } /* 2rem - numbered sections */ * + h4 { margin-top: var(--space-lg); } /* 1.5rem */ /* A heading owns the thing under it - keep that pair tighter than the gap ABOVE the heading. Same specificity as the rules above, so source order decides: these win. h2 is a big heading (24px+) and 8px blended it into its body, so it gets 16px; the smaller h3/h4 still sit tight at 8px. */ h2 + * { margin-top: var(--space-md); } h3 + *, h4 + * { margin-top: var(--space-sm); } /* Noise overlay */ body::before { content: ""; position: fixed; inset: 0; opacity: 0.03; pointer-events: none; z-index: 9999; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E"); } /* Scanlines */ body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 9998; background: repeating-linear-gradient(0deg, rgba(0,0,0,0.15) 0px, rgba(0,0,0,0.15) 1px, transparent 1px, transparent 2px); opacity: 0.4; } h1, h2, h3 { font-family: var(--font-mono); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; } a { color: var(--accent); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: all var(--transition-med); } a:hover { color: var(--text); text-decoration-color: var(--accent); } a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } .container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-lg); } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; } /* H3 inside

should inherit summary styling, not block heading defaults. */ summary > h3 { display: inline; font: inherit; font-family: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; letter-spacing: inherit; color: inherit; margin: 0; padding: 0; } /* Body copy line-length cap (50–75ch optimal) - applied to long-form prose only, not hero subhead, not full-width comparison/feature grids. */ .faq-answer, .module-content p { } #features .section-header p, #comparison .section-header p { margin-left: auto; margin-right: auto; } /* Tables shrink to 12-13px at mobile widths across the guide and comparison pages. Give the cells weight there so the smallest text on the site is not also the thinnest. */ @media (max-width: 768px) { td, th { font-weight: 500; } } /* Inline code is sized in em, so it shrinks with whatever it sits inside - nested in small text it reached 10.5px on /autoload-bloat/. Clamp it to the 12px floor and give small text the weight it needs to stay legible. */ code, kbd, samp { font-size: max(0.875rem, 0.875em); font-weight: 500; } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { /* 0s, not the usual 0.01ms. A CSS animation whose start time the engine has not resolved yet is in its PENDING state, and Chrome paints the keyframe's \`from\` value for those frames - a duration of 0.01ms cannot suppress that, because the element is styled before the animation engine gets to it. For the homepage \`typing\` reveal (\`.cache-lie\`) that pending frame is \`max-width: 0\`. Measured on the live homepage at 20x CPU throttle: 5/5 loads painted 2 offset frames with 0.01ms, 0/4 with 0s. The 0.01ms idiom exists so \`animationend\` still fires; nothing in this theme listens for it (no animationend/animationstart/transitionend handler and no getAnimations() call in the frontend), so 0s costs us nothing. Do NOT reach for \`animation: none\` here instead: a \`typing\`-revealed element sits at \`max-width: 0; overflow: hidden\` until the \`forwards\` fill runs, so killing the animation strands it clipped unless (like the homepage \`.cache-lie\`) a reduced-motion rule sets the width directly. \`animation-fill-mode: none\` has the same trap. Duration is the only safe global lever. */ animation-duration: 0s !important; /* Collapsing the DURATION alone is not enough - a surviving delay would still leave the element on its unanimated state for that long before the zero-duration fill snaps it to \`to\` (for the homepage \`typing\` reveal that unanimated state is \`max-width: 0\`, i.e. invisible). Zero the delay too. */ animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; } body::before, body::after { display: none; } } .container { padding: var(--space-xl) var(--space-lg); } /* Black Friday announcement strip */ .bf-banner { background: var(--black, #0a0a0a); color: var(--text, #e8e8e8); border-bottom: 1px solid var(--border, #2a2a2a); font-family: var(--font-body, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif); font-size: var(--font-size-sm, 0.875rem); line-height: 1.35; letter-spacing: -0.01em; } .bf-banner__inner { max-width: 1100px; margin: 0 auto; padding: 0.375rem 1.5rem; text-align: center; } .bf-banner__code { font-family: var(--font-mono, ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace); color: var(--accent, #c8ff00); border: 1px dashed var(--accent, #c8ff00); padding: 0 0.25rem; white-space: nowrap; } .bf-banner__link { color: var(--accent, #c8ff00); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; } .bf-banner__link:hover { color: var(--text, #e8e8e8); } .bf-banner__link:focus-visible { outline: 2px solid var(--accent, #c8ff00); outline-offset: 2px; } @media (max-width: 480px) { .bf-banner { letter-spacing: -0.02em; line-height: 1.25; } .bf-banner__inner { padding: 0.375rem 0.5rem; } } /* Skip link */ .skip-link { font-weight: 500; position: absolute; top: -40px; left: 0; background: var(--accent, #c8ff00); color: var(--black, #0a0a0a); padding: 0.5rem 1rem; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; font-size: var(--font-size-sm); z-index: 10000; text-decoration: none; } .skip-link:focus { top: 0; } /* Header */ header\[role="banner"\] { position: sticky; top: 0; background: rgba(10, 10, 10, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border, #2a2a2a); z-index: 100; padding: 1rem 0; } .header-nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; } header\[role="banner"\] .logo { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; font-weight: 600; font-size: 1rem; /* fixed: outside there is no size container */ color: var(--text, #e8e8e8); text-decoration: none; display: flex; align-items: center; gap: 0.5rem; letter-spacing: -0.02em; } header\[role="banner"\] .logo svg { stroke: var(--accent, #c8ff00); } header\[role="banner"\] .logo-wordmark { display: block; height: 22px; width: auto; } @media (max-width: 880px) { header\[role="banner"\] .logo-wordmark { height: 18px; } } .nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; } .nav-links a { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; font-size: var(--font-size-sm); font-weight: 500; color: var(--text-muted, #a8a8a8); text-decoration: none; text-transform: uppercase; letter-spacing: 0.05em; transition: color 0.3s ease; } .nav-links a:hover { color: var(--text, #e8e8e8); } /* Current page: light the matching nav link in the accent, and keep it lit on hover. */ .nav-links a\[aria-current="page"\], .nav-links a\[aria-current="page"\]:hover { color: var(--accent, #c8ff00); } .nav-links .btn-primary { display: inline-flex; align-items: center; justify-content: center; padding: 0.5rem 1.5rem; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; font-size: var(--font-size-sm); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; background: var(--accent, #c8ff00); color: var(--black, #0a0a0a); border: none; cursor: pointer; min-height: 44px; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); } .nav-links .btn-primary:hover { background: var(--text, #e8e8e8); color: var(--black, #0a0a0a); transform: translateY(-1px); } /* Header CTA - filled, and the one dominant action in the nav. It was ghosted originally so the free scan could dominate instead (LP audit gh #3); /scan/ left the nav on 2026-07-24, so "Buy Now" inherits that role. Hover inverts to the outlined treatment. */ .nav-links .btn-secondary { display: inline-flex; align-items: center; justify-content: center; padding: 0.5rem 1.5rem; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; font-size: var(--font-size-sm); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; background: var(--accent, #c8ff00); color: var(--black, #0a0a0a); border: 1px solid var(--accent, #c8ff00); cursor: pointer; min-height: 44px; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); } .nav-links .btn-secondary:hover { background: transparent; color: var(--accent, #c8ff00); transform: translateY(-1px); } /* Hamburger toggle + mobile CTA: hidden on desktop */ .header-nav .nav-toggle, .header-nav .nav-cta-mobile { display: none; } /* Collapse to logo + Buy Now + hamburger wherever the full nav does not fit on one line: it needs ~830px, overflowed the page at 641-700px and wrapped the header to two rows at 768px. Same 1.5rem gutter as .container so the logo lines up with page content. */ @media (max-width: 880px) { .header-nav { padding-inline: 1.5rem; gap: 0.5rem; flex-wrap: nowrap; } .header-nav .nav-cta-mobile { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; min-height: 40px; /* The long-form templates stretch every .btn to 100% below 600px; this one is a .btn too and squeezed the logo onto two lines. */ width: auto; max-width: none; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; font-size: var(--font-size-sm); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; text-decoration: none; background: var(--accent, #c8ff00); color: var(--black, #0a0a0a); border: none; margin-left: auto; } /* Ghost variant of the mobile CTA (LP audit gh #3 - demote "Buy Now"). */ .header-nav .nav-cta-mobile.btn-secondary { background: transparent; color: var(--accent, #c8ff00); border: 1px solid var(--accent, #c8ff00); } .header-nav .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; width: 44px; height: 44px; padding: 0; background: transparent; border: 1px solid var(--border, #2a2a2a); cursor: pointer; } .nav-toggle-bar { display: block; width: 20px; height: 2px; margin: 0 auto; background: var(--text, #e8e8e8); transition: transform 0.2s ease, opacity 0.2s ease; } .nav-toggle\[aria-expanded="true"\] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); } .nav-toggle\[aria-expanded="true"\] .nav-toggle-bar:nth-child(2) { opacity: 0; } .nav-toggle\[aria-expanded="true"\] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); } .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 1rem 1rem; background: rgba(10, 10, 10, 0.97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border, #2a2a2a); } .nav-links.is-open { display: flex; } .nav-links li { width: 100%; } .nav-links a { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 14px 8px; font-size: var(--font-size-md); border-bottom: 1px solid var(--border, #2a2a2a); } .nav-links li:last-child a { border-bottom: none; } /* Hide the duplicate Buy Now inside the drawer on mobile */ .nav-cta-desktop-item { display: none; } header\[role="banner"\] { position: sticky; } } /* === Page Header === */ .header { padding: var(--space-3xl) 0; border-bottom: 1px solid var(--border); } .header__badge { display: inline-block; font-family: var(--font-mono); font-size: var(--font-size-2xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--black); background: var(--accent); padding: 2px 8px; margin-bottom: var(--space-lg); } .header__title { margin-bottom: var(--space-lg); } .header__subtitle { font-family: var(--font-body); font-size: var(--font-size-xl); color: var(--text-muted); max-width: 600px; } .header__actions { margin-top: var(--space-xl); } /* === Sections === */ .section { padding: var(--space-2xl) 0; border-bottom: 1px solid var(--border); } .section--alt { background: var(--surface); } /* === Problem Statement === */ .problem { background: var(--surface-elevated); border-left: 3px solid var(--warning); padding: var(--space-lg); margin: var(--space-xl) 0; } .problem__title { font-family: var(--font-mono); font-size: var(--font-size-md); color: var(--warning); margin-bottom: var(--space-sm); } /* === Code blocks === */ pre { font-family: var(--font-mono); font-size: var(--font-size-md); background: var(--surface); border: 1px solid var(--border); padding: var(--space-lg); overflow-x: auto; margin: var(--space-lg) 0; } code { font-family: var(--font-mono); font-size: max(0.875rem, 0.875em); background: var(--surface-elevated); padding: 2px 6px; } pre code { background: none; padding: 0; } /* === Terminal list === */ .terminal-list { list-style: none; counter-reset: line; } .terminal-list li { counter-increment: line; padding: var(--space-md) 0; padding-left: 3.5rem; border-bottom: 1px solid var(--border); position: relative; } .terminal-list li::before { content: counter(line, decimal-leading-zero); position: absolute; left: 0; font-family: var(--font-mono); font-size: var(--font-size-xs); color: var(--text-dim); width: 2.5rem; text-align: right; } /* === Comparison table === */ .comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); margin: var(--space-xl) 0; } .comparison__col { background: var(--surface); padding: var(--space-lg); } .comparison__header { font-family: var(--font-mono); font-size: var(--font-size-sm); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--space-md); } .comparison__col--problem .comparison__header { color: var(--text-muted); } .comparison__col--solution .comparison__header { color: var(--accent); } .comparison ul { list-style: none; } .comparison li { position: relative; padding: var(--space-sm) 0 var(--space-sm) 1.25rem; color: var(--text-muted); font-size: var(--font-size-prose); } .comparison li::before { content: "-"; position: absolute; left: 0; color: var(--text-dim); } /* === Stat boxes === */ .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-lg); margin: var(--space-xl) 0; } .stat { border-top: 1px solid var(--border); padding-top: var(--space-md); } .stat__value { font-family: var(--font-mono); font-size: var(--font-size-4xl); font-weight: 700; color: var(--accent); line-height: 1; } .stat__label { font-family: var(--font-mono); font-size: var(--font-size-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: var(--space-xs); } /* === CTA === */ .cta { text-align: center; padding: var(--space-3xl) 0; } .cta__title { margin-bottom: var(--space-lg); } .cta__title::before { content: none; } .btn { display: inline-flex; align-items: center; justify-content: center; padding: var(--space-sm) var(--space-xl); font-family: var(--font-mono); font-size: var(--font-size-sm); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; text-decoration: none; border: none; cursor: pointer; min-height: 44px; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); } .btn--primary { background: var(--accent); color: var(--black); } .btn--primary:hover { background: var(--text); transform: translateY(-1px); } .btn--secondary { background: var(--surface-elevated); border: 1px solid var(--border-control); color: var(--text); margin-left: var(--space-md); } .btn--secondary:hover, .btn--secondary:focus-visible { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); } .btn--secondary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } .btn--tertiary-link { display: block; margin-top: var(--space-md); font-family: var(--font-mono); font-size: var(--font-size-sm); color: var(--text-muted); } .btn--tertiary-link:hover { color: var(--accent); } /* === Inline soft CTA === */ .soft-cta { background: var(--surface-elevated); border: 1px solid var(--border); border-left: 3px solid var(--accent); padding: var(--space-lg); margin: var(--space-xl) 0; } .soft-cta p { margin-bottom: var(--space-sm); } .soft-cta a { font-family: var(--font-mono); font-size: var(--font-size-md); color: var(--accent); font-weight: 600; } /* === FAQ === */ .faq__item { border-bottom: 1px solid var(--border); padding: var(--space-lg) 0; } .faq__q { font-family: var(--font-mono); font-size: var(--font-size-lg); color: var(--text); margin-bottom: var(--space-sm); } .faq__a { color: var(--text-muted); font-size: var(--font-size-prose); margin: 0; } /* === Related guides === */ .related { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-md); margin: var(--space-lg) 0; } .related a { display: block; background: var(--surface); border: 1px solid var(--border); padding: var(--space-md); font-family: var(--font-mono); font-size: var(--font-size-md); color: var(--text); text-decoration: none; transition: border-color 0.3s ease; } .related a:hover { border-color: var(--accent); color: var(--accent); } /* === Tables === */ table { width: 100%; border-collapse: collapse; margin: var(--space-xl) 0; font-size: var(--font-size-md); } th, td { padding: var(--space-sm) var(--space-md); text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; } th { font-family: var(--font-mono); font-size: var(--font-size-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); border-bottom: 2px solid var(--border); } td { color: var(--text-muted); } td:first-child { color: var(--text); font-weight: 600; } /* === Callout (info/note) === */ .callout { background: var(--surface-elevated); border-left: 3px solid var(--accent); padding: var(--space-lg); margin: var(--space-xl) 0; } .callout__title { font-family: var(--font-mono); font-size: var(--font-size-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: var(--space-sm); } .callout p:last-child { margin-bottom: 0; } /* === Responsive === */ @media (max-width: 600px) { .comparison { grid-template-columns: 1fr; } .stats { grid-template-columns: 1fr; } .cta { display: flex; flex-direction: column; align-items: center; } .btn { width: 100%; max-width: 300px; } .btn--secondary { margin-left: 0; margin-top: var(--space-md); } pre, code { font-size: var(--font-size-xs); } table { display: block; overflow-x: auto; white-space: normal; -webkit-overflow-scrolling: touch; font-size: var(--font-size-sm); } th, td { padding: var(--space-xs) var(--space-sm); } .terminal-list li { padding-left: 2.25rem; } .terminal-list li::before { width: 1.75rem; } } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } body::before, body::after { display: none; } } /* Footer - organized column grid (Concept A) */ footer { background: var(--black); border-top: 1px solid var(--border); padding: var(--space-3xl) 0 var(--space-xl); font-size: var(--font-size-md); color: var(--text-muted); } .footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: var(--space-2xl) var(--space-xl); align-items: start; } /* Brand column */ .footer-logo { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-weight: 600; letter-spacing: 0.03em; font-size: var(--font-size-lg); color: var(--text); text-decoration: none; margin-bottom: var(--space-md); } .footer-logo svg { flex-shrink: 0; } .footer-logo .logo-wordmark { display: block; height: 22px; width: auto; } .footer-brand p { font-weight: 500; color: var(--text-muted); font-size: 1rem; /* fixed: no size container outside , fluid would hit the 21px cap */ max-width: 34ch; line-height: 1.6; margin-bottom: var(--space-lg); } .footer-social { display: flex; gap: var(--space-md); margin-bottom: var(--space-lg); } .footer-social a { font-weight: 500; color: var(--text-muted); display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 1px solid var(--border); transition: color var(--transition-med), border-color var(--transition-med), transform var(--transition-fast); } .footer-social a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); } .footer-social a:focus-visible { color: var(--accent); outline: 2px solid var(--accent); outline-offset: 2px; } .footer-brand .trustpilot-widget { max-width: 260px; } /* Link columns */ .footer-col h3 { font-family: var(--font-mono); font-size: var(--font-size-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: var(--space-md); padding-bottom: var(--space-sm); border-bottom: 1px solid var(--border); } .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; padding: 0; margin: 0; } footer a { font-family: var(--font-mono); font-size: var(--font-size-sm); color: var(--text-muted); text-decoration: none; text-transform: uppercase; letter-spacing: 0.05em; transition: color var(--transition-med); } footer a:hover { color: var(--accent); } /* Long compound link labels (e.g. the de refund-policy word) must wrap or they overflow the page at 320px. */ .footer-col li { overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; } .footer-col a { display: inline-block; font-weight: 500; } .footer-col a:focus-visible { color: var(--accent); outline: none; text-decoration: underline; text-underline-offset: 3px; } /* Badge marquee */ .badge-marquee { overflow: hidden; margin: var(--space-2xl) 0 var(--space-lg); mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); } .badge-marquee-track { display: flex; gap: var(--space-xl); width: max-content; animation: marquee 40s linear infinite; } .badge-marquee:hover .badge-marquee-track { animation-play-state: paused; } .badge-marquee-track a { display: flex; align-items: center; flex-shrink: 0; opacity: 0.6; transition: opacity var(--transition-med); } .badge-marquee-track a:hover { opacity: 1; } .badge-marquee-track img { display: block; height: 34px; width: auto; } /* For directories that only publish black-on-transparent artwork, which would otherwise be invisible against this footer. Opt-in per badge - never blanket, because inverting a badge that already reads correctly wrecks its colours. */ .badge-marquee-track img.badge--invert { filter: invert(1); } /* A badge that ships with a companion text link under it (Launch Llama). */ .badge-marquee-track .badge-stack { display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; } /* Text, unlike the badge images, must stay readable: full opacity (the 0.6 above composited #888 down to #565656, 2.69:1) and a 24px tap target. */ .badge-marquee-track a.badge-companion { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; opacity: 1; font-family: var(--font-mono); font-size: var(--font-size-2xs); font-weight: 500; line-height: 1; color: var(--text-dim); text-decoration: none; } .badge-marquee-track a.badge-companion:hover, .badge-marquee-track a.badge-companion:focus-visible { color: var(--accent); } @keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } } /* Bottom bar */ .footer-bottom p, .footer-bottom span { font-weight: 500; } .footer-bottom { font-weight: 500; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-md); border-top: 1px solid var(--border); padding-top: var(--space-lg); margin-top: var(--space-md); } footer p { font-family: var(--font-mono); font-size: var(--font-size-xs); color: var(--text-muted); letter-spacing: 0.02em; margin: 0; } /* The built-by row groups the outbound author links so space-between on .footer-bottom keeps them adjacent instead of spreading them apart. */ .footer-built-by { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); } .built-by-badge { font-weight: 500; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; font-family: var(--font-mono); font-size: var(--font-size-xs); color: var(--text-dim); text-decoration: none; text-transform: uppercase; letter-spacing: 0.05em; transition: color var(--transition-med); } .built-by-badge:hover { color: var(--accent); } .built-by-badge svg { opacity: 0.7; transition: opacity var(--transition-med); } .built-by-badge:hover svg { opacity: 1; } @media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } } @media (max-width: 560px) { .footer-bottom { flex-direction: column; align-items: flex-start; } } /* --- Typography floor ------------------------------------------------- 12-14px text at weight 400 is the "hard to read" complaint from the video review. These are this page's small labels and meta - weight 500 keeps them legible without changing the size or the layout. Audited with the house typography-floor rule; do not drop the weight again. */ .header__badge, .stat__label, .comparison__header, .callout__title, .btn--tertiary-link { font-weight: 500; } Skip to main content Black Friday: 25% off Yearly and Lifetime with code `BLACKFRIDAY25`. Until Mon 1 Dec, 23:59 UTC. [See pricing](https://wpmultitool.com/pricing/) Database Performance WordPress MySQL Indexes Missing? Prove It Before You Add One A missing index usually hides inside one slow query. WordPress does not show a database-wide warning. **Slow Query Analyzer catches that query in wp-admin, runs EXPLAIN, and offers a checked index only when the plan supports one.** [Get Pro - from $79/year](https://wpmultitool.com/pricing/) [Read our reviews on Trustpilot ↗](https://www.trustpilot.com/review/wpmultitool.com) What a Missing Index Looks Like in WordPress There is no dashboard warning that says an index is missing. You see a Posts screen that thinks for seconds, a WooCommerce filter that spins, or a plugin settings page that hits the database hard every time it opens. Inside MySQL the sign is usually simple: EXPLAIN reports a full scan, no usable key, or thousands of rows examined to return a handful. WordPress itself does not ship unindexed core tables. The problem is the gap between the indexes that exist and the query a plugin actually runs. The expensive pattern A query looks selective in the code, but MySQL cannot prove it with an index. So it reads row after row, throws almost all of them away, and does the same work again on the next admin page load. That is why I would not add an index because a blog post says a table needs one. First catch the query that is slow, then look at its plan. Where Missing Indexes Hide Most WordPress queries are fine because core already indexes its normal access patterns. The ugly ones usually come from plugins that query data in a way the original schema did not expect. Place What usually happens Post metadata lookups A plugin filters by one meta key and then by post or value. The single-column indexes help only part of the predicate, so a busy meta table turns into a scan. Custom plugin tables A table grows quietly for months. The first indexes were chosen when it was empty, and nobody revisits them when real queries appear. Queue and log tables Status, date and group columns get queried together. One column is indexed, the combination is not, and the database still reads far more history than the screen needs. Search and filter screens A LIKE filter or a sort order cannot use the index the owner expected. The query is valid SQL; it is just expensive at the table's real size. The table name alone does not prove anything. wp_postmeta can be fine on one site and miserable on another. The query, its cardinality and the existing keys decide. Catch the Real Query Before Touching the Schema Slow Query Analyzer is the WP Multitool module for this job. It is a Pro module and it ships off by default, so query capture starts only when you turn the module on. Once enabled, it watches wp-admin requests for users who can manage the site. Queries slower than the 100 ms default threshold are stored with the caller, the component that ran them, the best and worst duration, and a normalized fingerprint so repeats collapse into one row. **New captures are explained automatically.** SELECT, UPDATE and DELETE statements get EXPLAIN analysis during shutdown of the same request that captured them. **Repeat offenders stay visible.** The log keeps counts and duration ranges instead of drowning you in identical copies of the same query. **The log is bounded.** It keeps the latest 5,000 rows rather than becoming another database problem of its own. **The source is named.** Core, theme, mu-plugin or the plugin directory is attached where the caller reveals it. The caller shows which code ran the query, so you can judge the missing-index hint against the schema, the query, and the plugin doing the work. A Checked CREATE INDEX, Rebuilt Server-Side When EXPLAIN says an index may help, the module builds a suggestion locally. It does not paste whatever the browser sends back into MySQL. The proposed statement is treated as a request, then rebuilt server-side. **Validate the shape.** Only a plain CREATE INDEX on one table with plain key parts is accepted. **Validate the schema.** The table and columns are checked against information_schema before anything runs. **Respect column types.** TEXT and BLOB columns get a safe prefix length; JSON and spatial columns are refused when a plain B-tree index cannot cover them. **Check existing keys.** A duplicate or already-covered index is reported as already applied instead of creating noise. **Track the change.** Indexes created by WP Multitool are listed separately and can be reverted from the same screen. Nothing is applied automatically. You click Apply Index, MySQL runs the rebuilt statement, and the result is reported. If the index was created by WP Multitool, a Revert action can drop it again. The cost is real An index costs disk and makes writes more expensive. On a large table, CREATE INDEX can also take time or lock work depending on the engine and MySQL version. Test on staging or pick a quiet window. Slow Query Analyzer is a Pro module - $79/year for one site, and every paid plan includes all 19 modules. Turn it on when the database stops being a guessing game. [Get Pro - from $79/year](https://wpmultitool.com/pricing/) When an Index Is the Wrong Fix A slow query is not automatically an indexing problem. Sometimes the query asks for the wrong data, reads the same rows inside a loop, sorts a result it could have limited, or filters with a function that defeats every sensible key. The analyzer is deliberately conservative here. It can point out full scans, filesorts, temporary tables and missing key use, but it withholds index suggestions for query shapes it cannot prove. A missed suggestion costs nothing. A wrong index can sit there forever and tax every write. That is the outcome I want: fewer superstitions, more evidence. If the fix is an index, apply a checked one. If the fix is a query rewrite, you know which plugin and which query to take upstream. What Slow Query Analyzer Will Not Do **It does not scan the whole schema looking for missing indexes.** It analyzes queries that were actually captured because they crossed the threshold. **It never captures frontend queries.** The capture gate is admin context plus a user with manage_options, because query text can contain sensitive literals. **It cannot explain every statement.** EXPLAIN analysis is attempted for SELECT, UPDATE and DELETE captures; other statement types are logged without an execution plan. **It does not apply indexes automatically.** Every CREATE INDEX is an explicit click, and the module rebuilds the statement before running it. **It cannot revert someone else's index.** Revert is limited to indexes WP Multitool created and tracked itself. **It is not a backup tool.** Adding or dropping an index changes no table rows, but it is still a schema change. Use your normal backup and staging discipline. Missing Database Indexes FAQ Does WordPress warn me when a MySQL index is missing? No. MySQL simply chooses the best plan it can with the indexes that exist. The symptom is usually a slow screen or a query that examines far more rows than it returns. EXPLAIN is how you see it. Are the indexes on wp_postmeta missing by default? No. Core ships indexes for its normal access patterns. Trouble starts when a plugin queries metadata in a different combination, often meta key plus post or value. That is a query-to-index mismatch inside a normal WordPress install. Will Slow Query Analyzer add indexes automatically? No. It can suggest a checked CREATE INDEX statement, but applying it is an explicit click. The module validates the table, columns, key lengths and existing indexes before MySQL runs anything. Can I revert an index after applying it? Yes, when WP Multitool created and tracked that index. The Applied Indexes list has a revert action. It refuses to drop indexes it did not create. Does EXPLAIN change the database? No. EXPLAIN asks MySQL how it would execute the query. It is a read-only planning step; applying an index is the separate action that changes the schema. Why not index every column? Every extra index costs disk and makes INSERT, UPDATE and DELETE work harder. Too many indexes can also give the optimizer more bad choices. Index the proven query pattern, not the whole table. Will it catch slow frontend queries? No. Capture is intentionally admin-only. A slow frontend usually needs a different measurement path, while wp-admin and admin-ajax.php are inside the module's capture surface. Related Guides [Find & fix slow database queries →](https://wpmultitool.com/slow-queries/) [WooCommerce admin is slow →](https://wpmultitool.com/woocommerce-admin-slow/) [admin-ajax.php is slow and hammering the server →](https://wpmultitool.com/admin-ajax-slow/) [wp-admin is slow but the frontend is fast →](https://wpmultitool.com/slow-admin/) [Reduce autoloaded data bloat →](https://wpmultitool.com/autoload-bloat/) Prove the Index Before You Create It Slow Query Analyzer is a Pro module - $79/year for one site, and every paid plan includes all 19 modules. Turn it on when the database stops being a guessing game. [Get Pro - from $79/year](https://wpmultitool.com/pricing/) [Slow Queries Guide](https://wpmultitool.com/slow-queries/) [All plans on the pricing page →](https://wpmultitool.com/pricing/)