1.0.11 min read
Architecture
Understand the plugin modules, WordPress hooks, admin screens, engines, queue, and metadata flow.
Vacuum Image Optimizer is organized as a namespaced WordPress plugin with focused service classes.
Main layers
| Layer | Responsibility |
|---|---|
| Bootstrap | Constants, fallback autoloader, activation and deactivation hooks. |
| Plugin | Wires admin, settings, engines, upload automation, delivery, and cleanup. |
| Admin | Menu, router, assets, views, onboarding, report export. |
| Settings | Sanitized option storage and runtime defaults. |
| Engines | WebP generation, WebP source optimization, AVIF generation, restore. |
| Queue | Scan, enqueue, process, retry, and AJAX status. |
| Backup | Backup path management, copy creation, cleanup. |
| Media | Library column, row actions, derivative attachment linking. |
| Frontend | Modern format delivery and native lazy loading. |
| Utils | Format eligibility and server capability detection. |
Prefixes
- Namespace:
VacuumImageOptimizer. - Constants:
VACIMG_. - Options, metadata, hooks, actions, handles:
vacimg_. - Text domain:
vacuum-image-optimizer.