Magento 2 Extension

Store Doctor documentation

How to install Vezo Store Doctor and use every screen. Click any screenshot to open it full size.

Version 1.3.0 · Magento 2.4.6 or later · PHP 8.2–8.4

1. Install

You need a license key, even for the free plan. The key is your password for the Vezo Labs Composer repository.

  1. Get a free key at license.vezolabs.com/pricing/magento-store-doctor. It arrives by email.
  2. On your server, in the Magento folder, run:
composer config repositories.vezolabs composer https://license.vezolabs.com/repo
composer config --auth http-basic.license.vezolabs.com YOUR-EMAIL YOUR-LICENSE-KEY
composer require vezolabs/module-store-doctor

bin/magento setup:upgrade
bin/magento cache:flush

In production mode, also run bin/magento setup:di:compile and bin/magento setup:static-content:deploy before the cache flush.

The same commands are shown, with your email and key filled in, in the customer portal under your license.

Store Doctor needs Magento cron to be running for scheduled scans and cleanups. If you are not sure, Store Doctor will tell you on the first scan.

2. Open Store Doctor

In the Magento admin, click Vezo Labs in the left menu, then Store Doctor. You will see these pages:

  • Store Health — score and top issues
  • Scan Results — every finding in a list
  • Database Tables — size of every table
  • Cleanup Centre — remove old data
  • Reports — PDF or CSV download
  • Alerts — email, Slack, Teams
  • Settings and License

3. Store Health

This is the start page. Click Run scan at the top right. A scan takes a few seconds and only reads data; it changes nothing.

Store Health page with health score 76, grade B, category tiles and top issues
  • Health score — 0 to 100. 90+ is excellent, below 50 needs attention now.
  • Reclaimable database space — how much the cleanup jobs can free.
  • Score history — how the score and database size changed over time.
  • By category — one tile per area. Red is critical, orange is a warning, blue is information, green is fine.
  • Top issues by impact — fix these first. Click How to fix for details.

A scan also runs automatically every night at 03:00. You can change this in Settings.

4. Scan Results

Click See all findings on Store Health. Every problem from the last scan is listed with its impact and the recommended action. Use Filters to show one category or severity.

Scan Results grid with severity, category, finding, impact and recommended action columns

Click Details on a row to see why it matters, the evidence Store Doctor found and how to fix it.

Finding detail page for a critical cron finding with evidence and how to fix

If a finding does not apply to your store, type a reason and click Ignore. It will not count against your score in later scans.

5. Database Tables

Shows every table with its row count and size, biggest first. Since last scan shows how fast a table grows. Tables marked Yes under Cleanable can be reduced in the Cleanup Centre.

Database Tables page with database size, table list and cleanable column
Tick “Only cleanable” to see just the tables a cleanup job can reduce.

6. Cleanup Centre

Removes data Magento no longer needs. Orders, invoices, customers and catalog data are never touched.

Take a database backup before your first cleanup. Deleted rows cannot be restored.

Cleanup Centre with cleanup jobs, rows to remove, space freed and run history
  1. Find the job you want, for example Abandoned guest carts. Keep shows how much recent data stays.
  2. Click Preview.
  3. Check the number of rows and what is kept.
  4. Tick I have a database backup from today and click the delete button.
Cleanup preview showing rows to remove, space freed and what is kept

The cleanup runs in the background in small batches, so the store stays online. When cron runs, the result appears under Run history.

7. Reports

Choose a scan, choose PDF or CSV, and click Download report. The PDF is easy to send to a manager or developer.

Reports page with scan, format, sections and branding options

Agencies can put their own name and logo on the PDF: click Set your agency name and logo, then choose White-label.

8. Alerts

Get a message when something goes wrong, without opening the admin.

Alerts page with alert rules, email, Slack and Teams fields, and an example alert
  1. Choose when to alert, for example a new Critical finding appears or cron stops running for 15 minutes.
  2. Enter one or more email addresses, a Slack webhook URL or a Microsoft Teams webhook URL.
  3. Click Save alerts, then Send test alert to check it arrives.

You get at most one message per scan and one per hour.

9. License

All features work without a key. A key links this store to your Vezo Labs account.

License page with an active Pro license, plan details and plan comparison
  1. Paste your key, for example VEZO-MSD-XXXX-XXXX-XXXX-XX, and click Activate.
  2. The badge changes to Active and shows your plan and expiry date.
  • After renewing or upgrading, click Refresh license. The key stays the same.
  • Moving to a new server or domain? Click Deactivate this site first, then activate on the new one.
  • Test and staging domains (localhost, *.test, staging.*, dev.*) are free and do not use an activation.
  • The license is checked once a day in the background. If our server cannot be reached, nothing changes in your store.
  • Server without internet? Ask us for a license file and use Upload a license file (.lic).

10. Settings

Go to Stores › Configuration › Vezo Labs › Store Doctor, or click Settings in the Store Doctor menu. Every value has a safe default, so you only change what you need.

Store Doctor settings with scan schedule and thresholds
  • Scan Schedule — daily, weekly or off, and the time.
  • Thresholds — when something counts as a warning, for example table size or cron delay.
  • Cleanup — how many days of data each job keeps, and an optional schedule.
  • Report Branding — agency name and logo for white-label PDFs.

To change a value, untick Use system value, enter the new value and click Save Config.

11. Command line

Everything also works over SSH. Useful for large stores and for deployment pipelines.

# run a scan and print the results
bin/magento vezo:doctor:scan

# scan and save JSON for CI, fail the build on a critical finding (exit code 2)
bin/magento vezo:doctor:scan --json --output=var/store-doctor.json --fail-on=critical

# list findings of the last scan
bin/magento vezo:doctor:findings

# see what a cleanup would remove, without deleting
bin/magento vezo:doctor:cleanup quote --dry-run

# run a cleanup
bin/magento vezo:doctor:cleanup quote

# license
bin/magento vezo:doctor:license status
bin/magento vezo:doctor:license activate VEZO-MSD-XXXX-XXXX-XXXX-XX

Cleanup job names: quote, customer_visitor, cron_history, report_events, changelogs, queue_messages, db_sessions, error_reports, rotated_logs.

12. Uninstall

bin/magento module:uninstall --remove-data Vezo_StoreDoctor
bin/magento cache:flush

This removes the extension and its own tables, and frees the activation for your license. Your store data is not affected.

13. Help