Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.13MB] [CPU: ▼143.01ms] Passed 4 tests
This is a short check of server-side resources used by Devmonsta
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.96 ▲0.12 | 66.82 ▲42.72 |
Dashboard /wp-admin | 3.25 ▲0.18 | 40.78 ▼2.09 |
Posts /wp-admin/edit.php | 3.30 ▲0.19 | 37.13 ▲5.25 |
Add New Post /wp-admin/post-new.php | 5.55 ▲0.11 | 77.25 ▼575.04 |
Media Library /wp-admin/upload.php | 3.13 ▲0.12 | 22.10 ▼0.14 |
Server storage [IO: ▲8.31MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 243 new files
Database: no new tables, 1 new option
New WordPress options |
---|
devmonsta_all_potmeta_controls |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Devmonsta
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,666 ▲65 | 16.01 ▲0.42 | 6.35 ▲0.72 | 98.17 ▲21.15 |
Dashboard /wp-admin | 2,930 ▲35 | 6.09 ▼0.09 | 120.12 ▼11.97 | 167.07 ▼13.41 |
Posts /wp-admin/edit.php | 2,737 ▼0 | 3.24 ▲0.00 | 61.50 ▼5.23 | 139.22 ▼2.76 |
Add New Post /wp-admin/post-new.php | 2,354 ▼1,344 | 22.40 ▲4.44 | 454.49 ▲16.55 | 182.45 ▲17.07 |
Media Library /wp-admin/upload.php | 1,752 ▼0 | 5.49 ▼0.05 | 145.37 ▲3.86 | 179.82 ▼7.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 1 option
- devmonsta_all_potmeta_controls
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 9× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/devmonsta/core/helpers/general.php
- > /wp-content/plugins/devmonsta/core/helpers/meta.php
- > /wp-content/plugins/devmonsta/core/helpers/class-devm-cache.php
- > /wp-content/plugins/devmonsta/core/helpers/class-devm-resize.php
- > /wp-content/plugins/devmonsta/core/helpers/database.php
- > /wp-content/plugins/devmonsta/core/autoload.php
- > /wp-content/plugins/devmonsta/core/helpers/class-devm-callback.php
- > /wp-content/plugins/devmonsta/core/helpers/class-devm-db-options-model.php
- > /wp-content/plugins/devmonsta/core/helpers/class-devm-wp-meta.php
- 66× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Devmonsta\\Options\\Posts\\Structure' not found in wp-content/plugins/devmonsta/core/options/posts/controls/select/select.php:7
- > PHP Fatal error
Uncaught Error: Class 'Devmonsta\\Options\\Posts\\Structure' not found in wp-content/plugins/devmonsta/core/options/posts/controls/switcher/switcher.php:7
- > PHP Fatal error
Uncaught Error: Class 'Devmonsta\\Options\\Customizer\\Structure' not found in wp-content/plugins/devmonsta/core/options/customizer/controls/gallery/gallery.php:6
- > PHP Fatal error
Uncaught Error: Class 'Devmonsta\\Options\\Customizer\\Structure' not found in wp-content/plugins/devmonsta/core/options/customizer/controls/datetime-range/datetime-range.php:6
- > PHP Fatal error
Uncaught Error: Class 'Devmonsta\\Options\\Customizer\\Structure' not found in wp-content/plugins/devmonsta/core/options/customizer/controls/dimensions/dimensions.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/devmonsta/core/options/customizer/controls/radio/radio.php:9
- > PHP Fatal error
Trait 'Devmonsta\\Traits\\Singleton' not found in wp-content/plugins/devmonsta/core/options/taxonomies/taxonomies.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'Devmonsta\\Options\\Posts\\Structure' not found in wp-content/plugins/devmonsta/core/options/posts/controls/typography/typography.php:7
- > PHP Fatal error
Uncaught Error: Class 'Devmonsta\\Options\\Posts\\Structure' not found in wp-content/plugins/devmonsta/core/options/posts/controls/datetime-picker/datetime-picker.php:7
- > PHP Fatal error
Trait 'Devmonsta\\Traits\\Singleton' not found in wp-content/plugins/devmonsta/core/bootstrap.php on line 7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: customizer, demo content install
devmonsta/devmonsta.php Passed 13 tests
The principal PHP file in "Devmonsta" v. 1.0.6 is loaded by WordPress automatically on each request
136 characters long description:
A free WordPress custimiser with post meta options with Demo content installation that will help you develop premium themes fast & easy.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin53,598 lines of code in 188 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 1 | 1 | 0 | 17,641 |
PHP | 108 | 3,537 | 3,765 | 12,687 |
SVG | 8 | 0 | 13 | 9,349 |
CSS | 17 | 1,079 | 89 | 9,244 |
JavaScript | 51 | 940 | 589 | 3,879 |
Sass | 3 | 33 | 26 | 798 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 18.98 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 194.00 |
Average method complexity | 3.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 62 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 102 | |
▷ Abstract classes | 4 | 3.92% |
▷ Concrete classes | 98 | 96.08% |
▷ Final classes | 2 | 2.04% |
Methods | 693 | |
▷ Static methods | 55 | 7.94% |
▷ Public methods | 607 | 87.59% |
▷ Protected methods | 48 | 6.93% |
▷ Private methods | 38 | 5.48% |
Functions | 143 | |
▷ Named functions | 78 | 54.55% |
▷ Anonymous functions | 65 | 45.45% |
Constants | 9 | |
▷ Global constants | 8 | 88.89% |
▷ Class constants | 1 | 11.11% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 PNG files occupy 0.20MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
core/static/img/import-preview-3.png | 25.06KB | 13.06KB | ▼ 47.87% |
core/options/customizer/libs/assets/images/transparency-grid.png | 2.58KB | 2.80KB | 0.00% |
core/options/customizer/controls/icon/assets/images/transparent_bg.png | 17.98KB | 0.09KB | ▼ 99.50% |
core/static/img/import-preview-1.png | 27.23KB | 14.42KB | ▼ 47.05% |
core/options/customizer/controls/icon/assets/images/no-image.png | 3.61KB | 0.46KB | ▼ 87.14% |