79% devmonsta

Code Review | Devmonsta

WordPress plugin Devmonsta scored 79% from 54 tests.

About plugin

  • Plugin page: devmonsta
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.9
  • WordPress version: 5.8.1
  • First release: Sep 30, 2020
  • Latest release: Jan 23, 2022
  • Number of updates: 14
  • Update frequency: every 35.4 days
  • Top authors: ataurr (85.71%)devmonsta (21.43%)

Code review

54 tests

User reviews

1 review

Install metrics

3,000+ active / 14,166 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.96 ▲0.1266.82 ▲42.72
Dashboard /wp-admin3.25 ▲0.1840.78 ▼2.09
Posts /wp-admin/edit.php3.30 ▲0.1937.13 ▲5.25
Add New Post /wp-admin/post-new.php5.55 ▲0.1177.25 ▼575.04
Media Library /wp-admin/upload.php3.13 ▲0.1222.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,666 ▲6516.01 ▲0.426.35 ▲0.7298.17 ▲21.15
Dashboard /wp-admin2,930 ▲356.09 ▼0.09120.12 ▼11.97167.07 ▼13.41
Posts /wp-admin/edit.php2,737 ▼03.24 ▲0.0061.50 ▼5.23139.22 ▼2.76
Add New Post /wp-admin/post-new.php2,354 ▼1,34422.40 ▲4.44454.49 ▲16.55182.45 ▲17.07
Media Library /wp-admin/upload.php1,752 ▼05.49 ▼0.05145.37 ▲3.86179.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

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:
LanguageFilesBlank linesComment linesLines of code
JSON11017,641
PHP1083,5373,76512,687
SVG80139,349
CSS171,079899,244
JavaScript519405893,879
Sass33326798

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 code0.46
Average class complexity18.98
▷ Minimum class complexity1.00
▷ Maximum class complexity194.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity51.00
Code structure
Namespaces62
Interfaces0
Traits1
Classes102
▷ Abstract classes43.92%
▷ Concrete classes9896.08%
▷ Final classes22.04%
Methods693
▷ Static methods557.94%
▷ Public methods60787.59%
▷ Protected methods486.93%
▷ Private methods385.48%
Functions143
▷ Named functions7854.55%
▷ Anonymous functions6545.45%
Constants9
▷ Global constants888.89%
▷ Class constants111.11%
▷ Public constants1100.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
FileSize - originalSize - compressedSavings
core/static/img/import-preview-3.png25.06KB13.06KB▼ 47.87%
core/options/customizer/libs/assets/images/transparency-grid.png2.58KB2.80KB0.00%
core/options/customizer/controls/icon/assets/images/transparent_bg.png17.98KB0.09KB▼ 99.50%
core/static/img/import-preview-1.png27.23KB14.42KB▼ 47.05%
core/options/customizer/controls/icon/assets/images/no-image.png3.61KB0.46KB▼ 87.14%