# Brakujące indeksy MySQL w WordPressie? Udowodnij brak, zanim dodasz indeks
Source: https://wpmultitool.com/pl/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; } Przejdź do treści Black Friday: 25% zniżki na Subskrypcję roczną i Licencję Lifetime z kodem `BLACKFRIDAY25`. Do poniedziałku 1 grudnia, 23:59 UTC. [Zobacz cennik](https://wpmultitool.com/pl/pricing/) Wydajność bazy Brakujące indeksy MySQL w WordPressie? Udowodnij brak, zanim dodasz indeks Brakujący indeks zwykle kryje się w jednym wolnym zapytaniu. WordPress nie pokazuje ostrzeżenia dla całej bazy danych. **Slow Query Analyzer wychwytuje to zapytanie we wp-admin, uruchamia EXPLAIN i proponuje sprawdzony indeks tylko wtedy, gdy plan go potwierdza.** [Weź Pro - od $79/rok](https://wpmultitool.com/pl/pricing/) [Przeczytaj nasze opinie na Trustpilot ↗](https://www.trustpilot.com/review/wpmultitool.com) Jak wygląda brakujący indeks w WordPressie Nie ma ostrzeżenia w kokpicie, że indeksu brakuje. Widzisz ekran Wpisy, który myśli sekundami, filtr WooCommerce, który kręci się w kółko, albo stronę ustawień wtyczki, która przy każdym otwarciu mocno obciąża bazę. W MySQL sygnał zwykle jest prosty: EXPLAIN raportuje pełny skan, brak użytecznego klucza albo tysiące przeanalizowanych wierszy, żeby zwrócić kilka. WordPress sam z siebie nie dostarcza tabel rdzenia bez indeksów. Problem leży w luce między istniejącymi indeksami a zapytaniem, które faktycznie uruchamia wtyczka. Kosztowny wzorzec Zapytanie wygląda w kodzie na selektywne, ale MySQL nie może udowodnić tego indeksem. Czyta więc wiersz po wierszu, wyrzuca prawie wszystkie i robi tę samą pracę przy następnym załadowaniu strony admina. Dlatego nie dodałbym indeksu tylko dlatego, że wpis na blogu mówi, że tabela go potrzebuje. Najpierw wychwyć zapytanie, które jest wolne, a potem sprawdź jego plan. Gdzie ukrywają się brakujące indeksy Większość zapytań WordPressa jest w porządku, bo rdzeń ma już indeksy dla normalnych wzorców dostępu. Brzydkie zwykle pochodzą z wtyczek, które odpytują dane w sposób, którego pierwotny schemat nie przewidział. Miejsce Co zwykle się dzieje Zapytania o metadane wpisów Wtyczka filtruje po jednym kluczu meta, a potem po wpisie albo wartości. Indeksy jednokolumnowe pomagają tylko części predykatu, więc przy dużej tabeli meta powstaje skan. Niestandardowe tabele wtyczek Tabela rośnie po cichu przez miesiące. Pierwsze indeksy wybrano, gdy była pusta, i nikt do nich nie wraca, gdy pojawiają się prawdziwe zapytania. Tabele kolejek i logów Kolumny statusu, daty i grupy są odpytywane razem. Jedna kolumna ma indeks, kombinacja nie, więc baza czyta znacznie więcej historii, niż ekran potrzebuje. Ekrany wyszukiwania i filtrowania Filtr LIKE albo kolejność sortowania nie może użyć indeksu, którego oczekiwał właściciel. Zapytanie jest poprawne SQL; po prostu przy realnym rozmiarze tabeli jest drogie. Sama nazwa tabeli niczego nie dowodzi. wp_postmeta może działać dobrze na jednej stronie i fatalnie na innej. Decydują zapytanie, jego kardynalność i istniejące klucze. Złap prawdziwe zapytanie, zanim ruszysz schemat Slow Query Analyzer to moduł WP Multitool do tego zadania. Jest modułem Pro i domyślnie jest wyłączony, więc przechwytywanie zapytań zaczyna się dopiero, gdy go włączysz. Po włączeniu obserwuje żądania wp-admin użytkowników, którzy mogą zarządzać stroną. Zapytania wolniejsze niż domyślny próg 100 ms są zapisywane z miejscem wywołania, komponentem, który je uruchomił, najlepszym i najgorszym czasem oraz znormalizowanym odciskiem, więc powtórzenia zbierają się w jeden wiersz. **Nowo przechwycone zapytania są analizowane automatycznie.** Zapytania SELECT, UPDATE i DELETE są analizowane za pomocą EXPLAIN podczas zamykania tego samego żądania, które je przechwyciło. **Powtarzające się zapytania zostają widoczne.** Log zachowuje liczby i zakresy czasów, zamiast topić cię w identycznych kopiach tego samego zapytania. **Log jest ograniczony.** Zachowuje najnowsze 5 000 wierszy, zamiast samemu stać się kolejnym problemem bazy. **Źródło jest nazwane.** Rdzeń, motyw, mu-plugin albo katalog wtyczki jest dołączany tam, gdzie wywołanie je ujawnia. Informacje o wywołaniu pokazują, który kod uruchomił zapytanie, więc możesz ocenić wskazówkę o brakującym indeksie w odniesieniu do schematu, zapytania i wtyczki, która je wykonuje. Zweryfikowane CREATE INDEX, składane od nowa po stronie serwera Gdy EXPLAIN wskazuje, że indeks może pomóc, moduł buduje sugestię lokalnie. Nie wkleja do MySQL tego, co przeglądarka odeśle. Proponowane polecenie jest traktowane jako żądanie, a potem składane od nowa po stronie serwera. **Walidacja kształtu.** Akceptowane jest tylko proste CREATE INDEX na jednej tabeli z prostymi elementami klucza. **Walidacja schematu.** Tabela i kolumny są sprawdzane w information_schema, zanim cokolwiek się uruchomi. **Respektowanie typów kolumn.** Kolumny TEXT i BLOB dostają bezpieczną długość prefiksu; kolumny JSON i przestrzenne są odrzucane, gdy zwykły indeks B-tree nie może ich objąć. **Sprawdzenie istniejących kluczy.** Duplikat albo indeks już pokrywający ten wzorzec jest raportowany jako zastosowany, zamiast tworzyć szum. **Śledzenie zmiany.** Indeksy utworzone przez WP Multitool są listowane osobno i można je cofnąć z tego samego ekranu. Nic nie jest stosowane automatycznie. Klikasz Apply Index, MySQL uruchamia złożone na nowo polecenie, a wynik jest raportowany. Jeśli indeks utworzył WP Multitool, akcja Revert może go znowu usunąć. Koszt jest realny Indeks kosztuje miejsce na dysku i podnosi koszt zapisów. Na dużej tabeli CREATE INDEX może też potrwać albo zablokować pracę, zależnie od silnika i wersji MySQL. Przetestuj na stagingu albo wybierz spokojną porę. Slow Query Analyzer to moduł Pro - $79/rok za jedną stronę, a każdy płatny plan zawiera wszystkie 19 modułów. Włącz go, żeby baza przestała być zgadywanką. [Weź Pro - od $79/rok](https://wpmultitool.com/pl/pricing/) Kiedy indeks jest złą poprawką Wolne zapytanie nie jest automatycznie problemem indeksowania. Czasem prosi o złe dane, czyta te same wiersze w pętli, sortuje wynik, który mogło ograniczyć, albo filtruje funkcją, która unieszkodliwia każdy sensowny klucz. Analizator jest tu celowo konserwatywny. Może wskazać pełne skany, operacje filesort, tabele tymczasowe i brak użycia klucza, ale powstrzymuje sugestie indeksów dla kształtów zapytań, których nie umie udowodnić. Brak sugestii nic nie kosztuje. Zły indeks może leżeć tam wiecznie i obciążać każdy zapis. To jest wynik, który chcę: mniej zabobonów, więcej dowodów. Jeśli poprawka to indeks, zastosuj sprawdzony. Jeśli poprawka to przepisanie zapytania, wiesz, którą wtyczkę i które zapytanie zgłosić autorowi. Czego Slow Query Analyzer nie zrobi **Nie skanuje całego schematu w poszukiwaniu brakujących indeksów.** Analizuje zapytania, które faktycznie zostały przechwycone, bo przekroczyły próg. **Nigdy nie przechwytuje zapytań frontendu.** Warunek przechwytywania to kontekst admina plus użytkownik z manage_options, bo tekst zapytania może zawierać wrażliwe literały. **Nie potrafi przeanalizować każdego polecenia.** Analiza EXPLAIN jest próbowana dla przechwyconych SELECT, UPDATE i DELETE; inne typy poleceń są logowane bez planu wykonania. **Nie stosuje indeksów automatycznie.** Każde CREATE INDEX to świadome kliknięcie, a moduł składa polecenie od nowa przed uruchomieniem. **Nie może cofnąć cudzego indeksu.** Cofanie jest ograniczone do indeksów, które WP Multitool sam utworzył i śledzi. **Nie jest narzędziem kopii zapasowych.** Dodanie lub usunięcie indeksu nie zmienia wierszy tabeli, ale nadal jest zmianą schematu. Zachowaj normalną dyscyplinę kopii zapasowych i testów na stagingu. FAQ: brakujące indeksy bazy danych Czy WordPress ostrzega, gdy brakuje indeksu MySQL? Nie. MySQL po prostu wybiera najlepszy plan, jaki może, z istniejącymi indeksami. Objaw to zwykle wolny ekran albo zapytanie, które sprawdza znacznie więcej wierszy, niż zwraca. EXPLAIN pozwala to zobaczyć. Czy wp_postmeta domyślnie nie ma indeksów? Nie. Rdzeń dostarcza indeksy dla swoich zwykłych wzorców dostępu. Problem zaczyna się, gdy wtyczka odpytuje metadane w innej kombinacji, często klucz meta plus wpis albo wartość. Wtedy zapytanie i indeks nie pasują do siebie w normalnej instalacji WordPressa. Czy Slow Query Analyzer dodaje indeksy automatycznie? Nie. Może zaproponować sprawdzone polecenie CREATE INDEX, ale zastosowanie go to świadome kliknięcie. Moduł waliduje tabelę, kolumny, długości kluczy i istniejące indeksy, zanim MySQL cokolwiek uruchomi. Czy mogę cofnąć indeks po zastosowaniu? Tak, jeśli WP Multitool utworzył i śledził ten indeks. Lista Applied Indexes ma akcję cofnięcia. WP Multitool nie usunie indeksów, których sam nie utworzył. Czy EXPLAIN zmienia bazę danych? Nie. EXPLAIN pyta MySQL, jak wykonałby zapytanie. To krok planowania tylko do odczytu; zastosowanie indeksu jest osobną akcją zmieniającą schemat. Dlaczego nie indeksować każdej kolumny? Każdy dodatkowy indeks kosztuje miejsce i utrudnia INSERT, UPDATE oraz DELETE. Zbyt wiele indeksów może też dać optymalizatorowi więcej złych wyborów. Indeksuj udowodniony wzorzec zapytania, nie całą tabelę. Czy złapie wolne zapytania frontendu? Nie. Przechwytywanie jest celowo tylko dla admina. Wolny frontend zwykle wymaga innej ścieżki pomiaru, a wp-admin i admin-ajax.php są w obszarze przechwytywania modułu. Powiązane poradniki [Znajdź & napraw wolne zapytania do bazy →](https://wpmultitool.com/pl/slow-queries/) [Wolny wp-admin WooCommerce →](https://wpmultitool.com/pl/woocommerce-admin-slow/) [admin-ajax.php jest wolny i zasypuje serwer →](https://wpmultitool.com/pl/admin-ajax-slow/) [wp-admin wolny, ale frontend szybki →](https://wpmultitool.com/pl/slow-admin/) [Zmniejsz rozdęcie autoloadowanych danych →](https://wpmultitool.com/pl/autoload-bloat/) Udowodnij indeks, zanim go utworzysz Slow Query Analyzer to moduł Pro - $79/rok za jedną stronę, a każdy płatny plan zawiera wszystkie 19 modułów. Włącz go, żeby baza przestała być zgadywanką. [Weź Pro - od $79/rok](https://wpmultitool.com/pl/pricing/) [Poradnik wolnych zapytań](https://wpmultitool.com/pl/slow-queries/) [Wszystkie plany na stronie cennika →](https://wpmultitool.com/pl/pricing/)