NaveenCodes Safe Mode
NaveenCodes Safe Mode helps restore access after fatal plugin or theme crashes. It detects fatal PHP shutdown errors, identifies whether the source is a plugin or theme, performs the configured recovery action, records detailed logs, stores recovery history, shows persistent admin notices, and email
NaveenCodes Safe Mode helps restore access after fatal plugin or theme crashes. It detects fatal PHP shutdown errors, identifies whether the source is a plugin or theme, performs the configured recovery action, records detailed logs, stores recovery history, shows persistent admin notices, and emails administrators.
The plugin does not modify, rewrite, or repair user code. Version 1 is focused only on detection, disabling, recovery, logging, and notification.
Version 1 Architecture
- Namespace: NaveenCodes\SafeMode
- Prefix: ncsm_
- Text domain: naveencodes-safe-mode
- Bootstrap: naveencodes-safe-mode.php
- Autoloading: lightweight PSR-4 style autoloader for includes/
- Composition root: includes/Core/Plugin.php
- Service boundaries: Core : activation, deactivation, settings, plugin bootstrapping
- Database : custom table schema
- Recovery : shutdown detection, source detection, queueing, plugin/theme recovery, notifications
- Logging : error logs and recovery history persistence
- Admin : dashboard, logs, history, settings, notices, coming soon UI
- Helpers : focused WordPress helper utilities
- Interfaces : shared service contracts
Database Schema
wp_ncsm_logs
- id
- timestamp
- error_type
- error_message
- file_path
- line_number
- source_type