A shopper browsing your catalogue runs no database queries from this plugin.
Front-end page view, empty cart database queries 0 PHP files parsed 27 (359 KB) share of all files WooCommerce already loads 1.6% (27 of 1,657)
Settings live in a single autoloaded option of 584 bytes, read once per request and remembered. A product page, a category, a blog post and your home page all cost this plugin nothing in database work.No scripts and no styles are enqueued on the front end, so there is nothing for a shopper’s browser to download either.
You can check the query count yourself with Query Monitor, or any profiler you already use. Open a product page and look for queries against the cartpresets_ tables. There won’t be any.
We seeded a store to 59,815 presets, 229,296 items and 500,000 redemption records and measured the customer-facing path again.
Store size
Front-end queries
Resolving a link
104 presets
0
under 0.1 ms, 2 queries
10,015 presets
0
under 0.1 ms, 2 queries
59,815 presets
0
under 0.1 ms, 2 queries
That’s 575 times the presets for the same cost. A link is an indexed lookup on its slug, so it finds one row whether there are a hundred or sixty thousand. Once resolved, the preset is cached and the second visitor costs no queries at all:
resolve slug, cold cache 0.08 ms 2 queriesresolve slug, warm cache 0.00 ms 0 queriesread its items 0.00 ms 0 querieswork out its status 0.00 ms 0 queriesread store settings 0.00 ms 0 queries
Measured over real HTTP against the development store, eight runs each:
preset link request 82 msordinary shop page 103 ms
A preset link never renders a template. It resolves the slug, checks the preset, fills the cart and redirects, which is less work than drawing a page. So your campaign traffic lands on the cheapest request your store serves.
This is the only place the plugin touches a shopper’s request after the link. Measured against the same products added as ordinary cart lines, so the comparison is preset lines versus normal lines rather than a full cart versus an empty one:
10 ordinary lines 13.19 ms 1.32 ms per line13 preset lines 17.86 ms 1.37 ms per line
That’s about 0.05 ms extra per line, only for a customer who followed a link, and only while those items are in their cart.The cart-integrity hooks (price override, quantity lock, cascade removal) don’t attach at all unless the cart actually holds a preset. A shopper who has never seen one of your links runs none of that code.
However many rows you show, and however many presets you have:
Store size
20 rows
Queries
104 presets
0.67 ms
2
10,015 presets
44 ms
2
The derived status, the redemption count and the item count all come back in the same two queries rather than one query per row. Showing 50 rows instead of 20 costs the same two. The counts on the status tabs are one more query, however many presets you have.
Captured on the development store: WordPress 7.1, WooCommerce 11.0, PHP 8.0.30, MySQL over a local socket. The large-store figures come from seeding that same store to the sizes shown and re-running the identical measurements.Look at the pattern more than the milliseconds. Timings move with the machine, the PHP version and whatever else is on the box. The pattern holds everywhere: zero queries on an ordinary page view, a link that costs less than a template render, a listing that reads in two queries rather than one per row, and a customer-facing cost that doesn’t grow with your catalogue.The counts exclude development tooling. A built release contains the plugin and Composer’s class loader, nothing else.
Last modified on September 28, 2026
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"SmartWP Plugins Documentation","colors":{"primary":"#5B3FE0","light":"#9D8CFF","dark":"#5B3FE0"},"logo":{"light":"https://mintcdn.com/growquest-technologies/9Hk7Fwl6-q3LJS13/images/LOGO_COLOR.svg?fit=max\u0026auto=format\u0026n=9Hk7Fwl6-q3LJS13\u0026q=85\u0026s=a43b0038924202eea5648ded3320a2f4","dark":"https://mintcdn.com/growquest-technologies/9Hk7Fwl6-q3LJS13/images/LOGO_WHITE.svg?fit=max\u0026auto=format\u0026n=9Hk7Fwl6-q3LJS13\u0026q=85\u0026s=ead0c1fd3af8a736d3d338c06525bd7e"},"favicon":{"light":"https://mintcdn.com/growquest-technologies/9Hk7Fwl6-q3LJS13/images/FAVICON_COLOR.svg?fit=max\u0026auto=format\u0026n=9Hk7Fwl6-q3LJS13\u0026q=85\u0026s=98fa9c4e58c38198cf89896eedf8d32f","dark":"https://mintcdn.com/growquest-technologies/9Hk7Fwl6-q3LJS13/images/FAVICON_WHITE.svg?fit=max\u0026auto=format\u0026n=9Hk7Fwl6-q3LJS13\u0026q=85\u0026s=ab265af6d2219eb743eef13273793b80"},"appearance":{"default":"dark"},"navbar":{"primary":{"type":"button","label":"Support","href":"http://smartwpplugins.com/support"}},"footer":{"socials":{"github":"https://github.com/Smart-WP-Plugins"}},"icons":{"library":"fontawesome"},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"thumbnails":{"fonts":{"family":"Geist"}},"interaction":{"drilldown":true},"metadata":{"timestamp":true},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"growquest-technologies","hasAudioNarration":false,"actualSubdomain":"growquest-technologies","customDomains":["docs.smartwpplugins.com"],"gitSource":{"type":"github","owner":"smart-wp-plugins","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6aec81868c2847cc731f8706","clientVersion":"0.0.4088","searchFilterCounts":[{"language":"default","tag":"Admin Powerups for WooCommerce","count":35},{"language":"default","tag":"CartPresets for WooCommerce","count":30},{"language":"default","tag":"Unwan","count":18},{"language":"default","tag":"Building presets","count":8},{"language":"default","tag":"Developers","count":8},{"language":"default","tag":"Customers","count":6},{"language":"default","tag":"Orders","count":6},{"language":"default","tag":"Store operations","count":6},{"language":"default","tag":"Developer","count":6},{"language":"default","tag":"Links and the cart","count":4}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"privacy":{"consentBanner":{"enabled":false}},"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"cartpresets/performance","slug":"/cartpresets/performance","pageMetadata":{"title":"Performance","description":"What the plugin costs a server, measured on a real store","icon":"gauge-high","href":"/cartpresets/performance"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"What the plugin costs a server, measured on a real store\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Every number here comes from a measurement. The method is at the bottom so you can check it against your own store.`}),`\n`,_jsx(Heading,{level:`2`,id:`no-queries-on-your-storefront`,children:`No queries on your storefront`}),`\n`,_jsx(_components.p,{children:`A shopper browsing your catalogue runs no database queries from this plugin.`}),`\n`,_jsx(CodeBlock,{numberOfLines:`6`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Front-end page view, empty cart`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` database queries 0`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` PHP files parsed 27 (359 KB)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` share of all files WooCommerce`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` already loads 1.6% (27 of 1,657)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`Settings live in a single autoloaded option of 584 bytes, read once per request and remembered. A product page, a category, a blog post and your home page all cost this plugin nothing in database work.`}),`\n`,_jsx(_components.p,{children:`No scripts and no styles are enqueued on the front end, so there is nothing for a shopper’s browser to download either.`}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`You can check the query count yourself with Query Monitor, or any profiler you already use. Open a product page and look for queries against the `,_jsx(_components.code,{children:`cartpresets_`}),` tables. There won’t be any.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`it-doesn’t-matter-how-many-presets-you-have`,children:`It doesn’t matter how many presets you have`}),`\n`,_jsx(_components.p,{children:`We seeded a store to 59,815 presets, 229,296 items and 500,000 redemption records and measured the customer-facing path again.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Store size`}),_jsx(_components.th,{children:`Front-end queries`}),_jsx(_components.th,{children:`Resolving a link`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`104 presets`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`0`}),_jsx(_components.td,{children:`under 0.1 ms, 2 queries`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`10,015 presets`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`0`}),_jsx(_components.td,{children:`under 0.1 ms, 2 queries`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`59,815 presets`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`0`}),_jsx(_components.td,{children:`under 0.1 ms, 2 queries`})]})]})]}),`\n`,_jsx(_components.p,{children:`That’s 575 times the presets for the same cost. A link is an indexed lookup on its slug, so it finds one row whether there are a hundred or sixty thousand. Once resolved, the preset is cached and the second visitor costs no queries at all:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`6`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`resolve slug, cold cache 0.08 ms 2 queries`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`resolve slug, warm cache 0.00 ms 0 queries`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`read its items 0.00 ms 0 queries`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`work out its status 0.00 ms 0 queries`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`read store settings 0.00 ms 0 queries`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`following-a-link-is-cheaper-than-loading-a-page`,children:`Following a link is cheaper than loading a page`}),`\n`,_jsx(_components.p,{children:`Measured over real HTTP against the development store, eight runs each:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`3`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`preset link request 82 ms`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`ordinary shop page 103 ms`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`A preset link never renders a template. It resolves the slug, checks the preset, fills the cart and redirects, which is less work than drawing a page. So your campaign traffic lands on the cheapest request your store serves.`}),`\n`,_jsx(Heading,{level:`2`,id:`once-a-preset-is-in-the-cart`,children:`Once a preset is in the cart`}),`\n`,_jsx(_components.p,{children:`This is the only place the plugin touches a shopper’s request after the link. Measured against the same products added as ordinary cart lines, so the comparison is preset lines versus normal lines rather than a full cart versus an empty one:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`3`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`10 ordinary lines 13.19 ms 1.32 ms per line`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`13 preset lines 17.86 ms 1.37 ms per line`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`That’s about 0.05 ms extra per line, only for a customer who followed a link, and only while those items are in their cart.`}),`\n`,_jsx(_components.p,{children:`The cart-integrity hooks (price override, quantity lock, cascade removal) don’t attach at all unless the cart actually holds a preset. A shopper who has never seen one of your links runs none of that code.`}),`\n`,_jsx(Heading,{level:`2`,id:`the-admin-listing-reads-in-two-queries`,children:`The admin listing reads in two queries`}),`\n`,_jsx(_components.p,{children:`However many rows you show, and however many presets you have:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Store size`}),_jsx(_components.th,{children:`20 rows`}),_jsx(_components.th,{children:`Queries`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`104 presets`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`0.67 ms`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`10,015 presets`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`44 ms`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2`})]})]})]}),`\n`,_jsx(_components.p,{children:`The derived status, the redemption count and the item count all come back in the same two queries rather than one query per row. Showing 50 rows instead of 20 costs the same two. The counts on the status tabs are one more query, however many presets you have.`}),`\n`,_jsx(Heading,{level:`2`,id:`how-this-was-measured`,children:`How this was measured`}),`\n`,_jsx(_components.p,{children:`Captured on the development store: WordPress 7.1, WooCommerce 11.0, PHP 8.0.30, MySQL over a local socket. The large-store figures come from seeding that same store to the sizes shown and re-running the identical measurements.`}),`\n`,_jsx(_components.p,{children:`Look at the pattern more than the milliseconds. Timings move with the machine, the PHP version and whatever else is on the box. The pattern holds everywhere: zero queries on an ordinary page view, a link that costs less than a template render, a listing that reads in two queries rather than one per row, and a customer-facing cost that doesn’t grow with your catalogue.`}),`\n`,_jsx(_components.p,{children:`The counts exclude development tooling. A built release contains the plugin and Composer’s class loader, nothing else.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Performance","description":"What the plugin costs a server, measured on a real store","icon":"gauge-high","href":"/cartpresets/performance"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"No queries on your storefront","slug":"no-queries-on-your-storefront","depth":2,"children":[]},{"title":"It doesn’t matter how many presets you have","slug":"it-doesn’t-matter-how-many-presets-you-have","depth":2,"children":[]},{"title":"Following a link is cheaper than loading a page","slug":"following-a-link-is-cheaper-than-loading-a-page","depth":2,"children":[]},{"title":"Once a preset is in the cart","slug":"once-a-preset-is-in-the-cart","depth":2,"children":[]},{"title":"The admin listing reads in two queries","slug":"the-admin-listing-reads-in-two-queries","depth":2,"children":[]},{"title":"How this was measured","slug":"how-this-was-measured","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"growquest-technologies","siteName":"SmartWP Plugins Documentation","title":"Performance - SmartWP Plugins Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-28T16:47:45.860Z","gitLastModified":"2026-09-28T16:47:39.000Z","originalFileLocation":"cartpresets/performance.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"What the plugin costs a server, measured on a real store\">\u003cmeta data-mint-head name=\"application-name\" content=\"SmartWP Plugins Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/growquest-technologies/u3jM5CYmtfp0iNZ0/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/growquest-technologies/u3jM5CYmtfp0iNZ0/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/growquest-technologies/u3jM5CYmtfp0iNZ0/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/growquest-technologies/u3jM5CYmtfp0iNZ0/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/growquest-technologies/u3jM5CYmtfp0iNZ0/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/growquest-technologies/u3jM5CYmtfp0iNZ0/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/growquest-technologies/u3jM5CYmtfp0iNZ0/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/growquest-technologies/u3jM5CYmtfp0iNZ0/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/growquest-technologies/u3jM5CYmtfp0iNZ0/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Performance - SmartWP Plugins Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"What the plugin costs a server, measured on a real store\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"SmartWP Plugins Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.smartwpplugins.com/cartpresets/performance\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://growquest-technologies.mintlify.site/_mintlify/api/og/v2?division=Documentation\u0026amp;title=Performance\u0026amp;description=What+the+plugin+costs+a+server%2C+measured+on+a+real+store\u0026amp;theme=e3ae117994280647e9c5b6db\u0026amp;signature=7a432ecb8c9b024ad3614da83c73da4fdc56b66997311bf75b280fe7f05cc40a\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Performance - SmartWP Plugins Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"What the plugin costs a server, measured on a real store\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://growquest-technologies.mintlify.site/_mintlify/api/og/v2?division=Documentation\u0026amp;title=Performance\u0026amp;description=What+the+plugin+costs+a+server%2C+measured+on+a+real+store\u0026amp;theme=e3ae117994280647e9c5b6db\u0026amp;signature=7a432ecb8c9b024ad3614da83c73da4fdc56b66997311bf75b280fe7f05cc40a\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/growquest-technologies/u3jM5CYmtfp0iNZ0/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"SmartWP Plugins Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#5B3FE0\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.smartwpplugins.com/cartpresets/performance\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/cartpresets/performance.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.smartwpplugins.com/#organization\",\"name\":\"SmartWP Plugins Documentation\",\"url\":\"https://docs.smartwpplugins.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/growquest-technologies/9Hk7Fwl6-q3LJS13/images/LOGO_COLOR.svg?fit=max\u0026auto=format\u0026n=9Hk7Fwl6-q3LJS13\u0026q=85\u0026s=a43b0038924202eea5648ded3320a2f4\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.smartwpplugins.com#website\",\"name\":\"SmartWP Plugins Documentation\",\"url\":\"https://docs.smartwpplugins.com\",\"publisher\":{\"@id\":\"https://docs.smartwpplugins.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.smartwpplugins.com/cartpresets/performance#webpage\",\"url\":\"https://docs.smartwpplugins.com/cartpresets/performance\",\"name\":\"Performance\",\"description\":\"What the plugin costs a server, measured on a real store\",\"dateModified\":\"2026-09-28T16:47:39.000Z\",\"isPartOf\":{\"@id\":\"https://docs.smartwpplugins.com#website\"}},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.smartwpplugins.com/cartpresets/performance#article\",\"headline\":\"Performance\",\"name\":\"Performance\",\"description\":\"What the plugin costs a server, measured on a real store\",\"url\":\"https://docs.smartwpplugins.com/cartpresets/performance\",\"mainEntityOfPage\":{\"@id\":\"https://docs.smartwpplugins.com/cartpresets/performance#webpage\"},\"dateModified\":\"2026-09-28T16:47:39.000Z\",\"publisher\":{\"@id\":\"https://docs.smartwpplugins.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.smartwpplugins.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"SmartWP Plugins Documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"SmartWP Plugins Documentation","nav":{"global":null,"products":[{"product":"Unwan","pages":[{"title":"Unwan","href":"/unwan/introduction"}]},{"product":"CartPresets for WooCommerce","pages":[{"title":"Introduction","icon":"house","href":"/cartpresets/introduction"},{"title":"Installation","icon":"download","href":"/cartpresets/installation"},{"title":"Quickstart","icon":"bolt","href":"/cartpresets/quickstart"},{"title":"The admin interface","icon":"window","href":"/cartpresets/interface"},{"group":"Building presets","icon":"layer-group","pages":[{"title":"Items","icon":"boxes-stacked","href":"/cartpresets/building/items"},{"title":"Pricing and discounts","icon":"tag","href":"/cartpresets/building/pricing"},{"title":"Health checks","icon":"heart-pulse","href":"/cartpresets/building/health-checks"},{"title":"Scheduling","icon":"calendar","tag":"PRO","href":"/cartpresets/building/scheduling"},{"title":"Purchase limits","icon":"gauge-high","tag":"PRO","href":"/cartpresets/building/purchase-limits"},{"title":"Eligibility","icon":"user-lock","tag":"PRO","href":"/cartpresets/building/eligibility"},{"title":"Automatic coupons","icon":"ticket","tag":"PRO","href":"/cartpresets/building/auto-coupon"},{"title":"Subscriptions","icon":"rotate","href":"/cartpresets/building/subscriptions"}]},{"group":"Links and the cart","icon":"link","pages":[{"title":"Preset links","icon":"link","href":"/cartpresets/links/preset-links"},{"title":"Cart behaviour","icon":"cart-shopping","href":"/cartpresets/links/cart-behaviour"},{"title":"Where customers land","icon":"signs-post","href":"/cartpresets/links/destinations"},{"title":"Cart notices and wording","icon":"comment","href":"/cartpresets/links/wording"}]},{"group":"Store settings","icon":"sliders","pages":[{"title":"Settings reference","icon":"list-check","href":"/cartpresets/settings/reference"},{"title":"The carrier product","icon":"box","href":"/cartpresets/settings/carrier-product"},{"title":"Data and uninstall","icon":"database","href":"/cartpresets/settings/data-and-uninstall"},{"title":"Privacy and personal data","icon":"user-shield","href":"/cartpresets/settings/privacy"}]},{"title":"The Presets report","icon":"chart-line","tag":"PRO","href":"/cartpresets/analytics"},{"title":"Import and export","icon":"arrow-right-arrow-left","tag":"PRO","href":"/cartpresets/import-export"},{"title":"Licence and updates","description":"Activating a key, what a licence buys, and what happens when it expires","icon":"key","tag":"PRO","href":"/cartpresets/licence"},{"title":"Performance","icon":"gauge-high","href":"/cartpresets/performance"},{"group":"Developers","icon":"code","pages":[{"title":"Architecture","description":"How the plugin is put together, and the constraints that shaped it","icon":"sitemap","href":"/cartpresets/developers/architecture"},{"title":"Hooks reference","icon":"plug","href":"/cartpresets/developers/hooks-reference"},{"title":"REST API","icon":"code-branch","href":"/cartpresets/developers/rest-api"},{"title":"Order line item meta","icon":"receipt","href":"/cartpresets/developers/order-meta"},{"title":"The boot payload","icon":"square-js","href":"/cartpresets/developers/javascript"}]},{"title":"FAQ and troubleshooting","icon":"circle-question","href":"/cartpresets/faq"}]},{"product":"Admin Powerups for WooCommerce","pages":[{"title":"Admin Powerups for WooCommerce","href":"/admin-powerups/introduction"}]}]},"basePath":"","title":"Performance - SmartWP Plugins Documentation","buildId":"dpl_DTau1J5HqS9UTgVSDwGksstFWtPa","deploymentId":"dpl_DTau1J5HqS9UTgVSDwGksstFWtPa","dynamics":[],"chunks":[]}