modSizeControl

MODX Revolution Extra: a dashboard widget and a manager page that watch the site size
against its limit and show what exactly takes the space.

- Dashboard widget: the ring is the limit, the slices are categories — MODX, extras,
  media, packages, cache, logs and the rest. With no limit set it compares the site
  against free space on the disk.
- Component page with six tabs: Overview, Explorer, Extras, File types, Largest files
  and History.
- Stepped scanning: a large site does not hit max_execution_time, and an interrupted
  scan resumes where it stopped. Scanning from cron is included.
- Cleanup of the MODX cache, the logs and old package versions, with the stock
  permissions.
- Upload control: a file that does not fit the limit will not upload.
- No dependencies: pdoTools and Ace are not required.

Works on MODX 2.x and MODX 3.x. Requires PHP 7.4+ and the settings permission;
cleanup also needs empty_cache, error_log_erase and packages.

After installing open Extras → modSizeControl and press "Scan". The widget places
itself on the dashboard. Set the limit in megabytes in the modsizecontrol_site_limit
system setting; 0 means no limit.

Scanning from cron:
php core/components/modsizecontrol/cli/scan.php

Upgrading from 1.0.x: the installer removes the leftover
assets/components/modsizecontrol/action.php and the modsizecontrol_tpl setting. The
tpl.modSizeControl chunk is no longer used and can be deleted. The system setting keys
are unchanged, so a limit set by the old version keeps working.

modSizeControl was originally built by Pavel Zarubin and Baha Volkov.
The current version is a full rewrite.
