crstauf / query-monitor-extend

WordPress plugin with customizations to enhance and extend the already awesome Query Monitor plugin.
GNU General Public License v3.0
86 stars 15 forks source link

Application-like file structure #84

Open szepeviktor opened 4 months ago

szepeviktor commented 4 months ago

WordPress has its roots in PHP 4. But this plugin could look like a modern application.

.
├── bin
│   └── create-release-files.sh
├── composer.json
├── LICENSE
├── patches
│   └── acf-pro-stubs.patch
├── phpcs.xml
├── phpstan.neon
├── qmx-conditionals.php
├── qmx-time-hooks.php
├── query-monitor-extend.php
├── readme.md
├── src
│   ├── qmx-acf-collector.php
│   ├── qmx-acf-data.php
│   ├── qmx-acf-output.php
│   ├── qmx-constants-collector.php
│   ├── qmx-constants-data.php
│   ├── qmx-constants-output.php
│   ├── qmx-files-collector.php
│   ├── qmx-files-data.php
│   ├── qmx-files-output.php
│   ├── qmx-globals-collector.php
│   ├── qmx-globals-data.php
│   ├── qmx-globals-output.php
│   ├── qmx-heartbeat-collector.php
│   ├── qmx-heartbeat-output.php
│   ├── qmx-image-sizes-collector.php
│   ├── qmx-image-sizes-data.php
│   ├── qmx-image-sizes-output.php
│   ├── qmx-paths-collector.php
│   ├── qmx-paths-data.php
│   ├── qmx-paths-output.php
│   ├── qmx-time-collector.php
│   ├── qmx-time-data.php
│   └── qmx-time-output.php
└── tests
    └── phpstan
        ├── bootstrap.php
        └── wordpress-overrides.stub

What do you think?

crstauf commented 4 months ago

Yep, a few of my other plugins have this structure, and will probably make it's way to QMX at some point.