{"id":49439056,"url":"https://github.com/sadewadee/morden-toolkit","last_synced_at":"2026-04-29T19:07:52.667Z","repository":{"id":310292081,"uuid":"1039107067","full_name":"sadewadee/morden-toolkit","owner":"sadewadee","description":"Morden Toolkit is a WordPress plugin that provides essential developer tools with a simple UI and safety-first approach. This plugin is designed to provide easy access to debugging, performance monitoring, configuration file editing, and PHP settings management with automatic backup systems.","archived":false,"fork":false,"pushed_at":"2025-09-01T13:31:50.000Z","size":341,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-01T13:36:19.037Z","etag":null,"topics":["debugging-tool","wordpress","wordpress-plugin"],"latest_commit_sha":null,"homepage":"https://mordenhost.com","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sadewadee.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-16T13:51:01.000Z","updated_at":"2025-08-18T15:44:47.000Z","dependencies_parsed_at":"2025-09-01T13:19:50.744Z","dependency_job_id":"32de37b0-102c-4b39-a08a-ca1fc82564a7","html_url":"https://github.com/sadewadee/morden-toolkit","commit_stats":null,"previous_names":["sadewadee/morden-toolkit"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/sadewadee/morden-toolkit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sadewadee%2Fmorden-toolkit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sadewadee%2Fmorden-toolkit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sadewadee%2Fmorden-toolkit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sadewadee%2Fmorden-toolkit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sadewadee","download_url":"https://codeload.github.com/sadewadee/morden-toolkit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sadewadee%2Fmorden-toolkit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32439417,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T18:12:22.909Z","status":"ssl_error","status_checked_at":"2026-04-29T18:11:33.322Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["debugging-tool","wordpress","wordpress-plugin"],"created_at":"2026-04-29T19:07:51.472Z","updated_at":"2026-04-29T19:07:52.658Z","avatar_url":"https://github.com/sadewadee.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Morden Toolkit\n\nLightweight developer tools for WordPress: Debug Manager, Query Monitor, Htaccess Editor, PHP Config presets.\n\n## Overview\n\nMorden Toolkit is a WordPress plugin that provides essential developer tools with a simple UI and safety-first approach. This plugin is designed to provide easy access to debugging, performance monitoring, configuration file editing, and PHP settings management with automatic backup systems.\n\n## Features\n\n### 🔧 Debug Management\n- **One-click debug mode toggle** - Enable/disable WP_DEBUG, WP_DEBUG_LOG, etc.\n- **Smart debug log viewer** - Filter by level, time, search logs\n- **Safe configuration** - Auto-backup wp-config.php before modifications\n- **Clear debug logs** - Clean logs with one click\n\n### 📊 Query Monitor \u0026 Performance\n- **Admin bar integration** - Performance metrics integrated with WordPress admin bar\n- **Unified display** - Execution time, memory usage, and query count in one indicator\n- **Query Monitor style** - Visual design consistent with popular developer tools\n- **Click-to-expand details** - Detail panel appears from bottom of screen when clicked\n- **Real-time monitoring** - Database queries, execution time, memory usage\n- **Detailed metrics** - PHP version, WordPress version, peak memory\n- **Mobile responsive** - Optimal display on all device sizes\n\n### 📝 File Editor\n- **Safe .htaccess editing** - Built-in syntax validation\n- **Auto-backup system** - Max 3 backups with timestamp\n- **One-click restore** - Rollback to previous backup\n- **Common snippets** - WordPress rewrite, caching, compression, security headers\n- **Site accessibility test** - Auto-restore if site breaks\n\n### ⚙️ PHP Configuration\n- **Preset-based config** - Basic, Medium, High performance presets\n- **Multiple methods** - .htaccess, wp-config.php, .user.ini support\n- **Auto-detection** - Smart method selection based on server environment\n- **Current config display** - View active PHP settings\n- **Visual comparison** - Compare current vs preset values\n\n## Installation\n\n### Via WordPress Admin\n1. Download plugin zip file\n2. Upload via Plugins → Add New → Upload Plugin\n3. Activate plugin\n4. Access via Tools → Morden Toolkit\n\n### Via FTP\n1. Extract plugin files\n2. Upload `morden-toolkit` folder to `/wp-content/plugins/`\n3. Activate via WordPress admin\n\n### Via WP-CLI\n```bash\nwp plugin install morden-toolkit.zip --activate\n```\n\n## Usage\n\n### Debug Management\n1. Go to **Tools → Morden Toolkit**\n2. Click **Debug Management** tab\n3. Toggle debug mode ON/OFF\n4. View current debug settings status\n5. Clear logs or view detailed logs\n\n### Query Monitor\n1. Enable **Performance Bar** in Query Monitor tab\n2. Performance bar will appear at bottom of page for logged-in users\n3. Click info icon for detailed metrics\n4. Monitor database queries, execution time, memory usage\n\n### File Editor\n1. Access **.htaccess Editor** tab\n2. Edit file content with syntax highlighting\n3. File is automatically backed up before save\n4. Restore from backup if needed\n5. Insert common snippets with one-click\n\n### PHP Config\n1. Select **PHP Config** tab\n2. Choose preset: Basic, Medium, or High Performance\n3. Preview setting changes\n4. Apply configuration\n5. System auto-detects best method (.htaccess, wp-config, .user.ini)\n\n## Security Features\n\n- **Capability checking** - Requires `manage_options`\n- **Nonce verification** - All AJAX requests protected\n- **Content validation** - Block malicious code patterns\n- **Advanced fail-safe mechanism** - Multi-layer protection for wp-config.php modifications\n- **Atomic operations** - Safe file operations with rollback and emergency recovery\n- **Comprehensive validation** - PHP syntax, site accessibility, and WordPress constants validation\n- **Multiple backup points** - Enhanced backup system with pre-restore emergency backups\n- **Post-rollback validation** - Ensures site accessibility after recovery operations\n- **Site monitoring** - Test accessibility after .htaccess changes\n- **Clean uninstall** - Remove all modifications on plugin deletion\n\n## System Requirements\n\n- **WordPress:** 5.0 or higher\n- **PHP:** 7.4 or higher\n- **MySQL:** 5.6+ or MariaDB 10.1+\n- **Server:** Apache with mod_rewrite or Nginx\n\n## File Structure\n\n```\nmorden-toolkit/\n├── morden-toolkit.php          # Main plugin file\n├── uninstall.php              # Cleanup on uninstall\n├── includes/                  # Core classes\n│   ├── class-plugin.php       # Service container\n│   ├── class-debug.php        # Debug management\n│   ├── class-query-monitor.php # Performance monitoring\n│   ├── class-htaccess.php     # File editing\n│   ├── class-php-config.php   # PHP configuration\n│   ├── class-file-manager.php # Backup/restore\n│   └── helpers.php           # Utility functions\n├── admin/                    # Admin interface\n│   ├── views/               # Template files\n│   └── assets/             # CSS/JS files\n├── public/                  # Frontend assets\n│   └── assets/             # Performance bar CSS/JS\n├── data/                   # Configuration data\n│   └── presets/           # PHP config presets\n├── docs/                  # Documentation\n├── tests/                 # Unit \u0026 integration tests\n└── languages/            # Translation files\n```\n\n## Development\n\n### Local Setup\n```bash\ngit clone https://github.com/morden-pro/morden-toolkit.git\ncd morden-toolkit\ncomposer install --dev\nnpm install --dev\n```\n\n### Running Tests\n```bash\n# Unit tests\nvendor/bin/phpunit tests/unit/\n\n# Integration tests\nvendor/bin/phpunit tests/integration/\n\n# All tests\nvendor/bin/phpunit\n```\n\n### Code Standards\n- WordPress Coding Standards\n- PHP 7.4+ compatibility\n- JSHint for JavaScript\n- SCSS for styles\n\n## Contributing\n\n1. Fork repository\n2. Create feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit changes (`git commit -m 'Add amazing feature'`)\n4. Push branch (`git push origin feature/amazing-feature`)\n5. Open Pull Request\n\n## Changelog\n\n### [1.0.0] - 2024-08-16\n#### Added\n- Initial release\n- Debug management with wp-config.php integration\n- Query monitor with performance bar\n- Safe .htaccess editor with auto-backup\n- PHP configuration presets with multi-method support\n- Comprehensive admin interface with tabbed navigation\n- Security features and permission checking\n- Complete test suite\n- Translation support\n\n## License\n\nGPL v2 or later - see [LICENSE](LICENSE) file\n\n## Support\n\n- **Documentation:** [docs/](docs/)\n- **Issues:** [GitHub Issues](https://github.com/morden-pro/morden-toolkit/issues)\n- **Support Forum:** [WordPress.org Support](https://wordpress.org/support/plugin/morden-toolkit/)\n\n## Credits\n\nDeveloped by [Morden Pro](https://morden.pro) with focus on simplicity, safety, and developer experience.\n\n---\n\n**This plugin is designed for developers who need essential WordPress tools in one lightweight and safe package.**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsadewadee%2Fmorden-toolkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsadewadee%2Fmorden-toolkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsadewadee%2Fmorden-toolkit/lists"}