79% dvk-env-dev

Code Review | Maras IT Suite : Development Environement

WordPress plugin Maras IT Suite : Development Environement scored79%from 54 tests.

About plugin

  • Plugin page: dvk-env-dev
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2.3-5.2.3
  • WordPress version: 6.3.1
  • First release: Oct 13, 2019
  • Latest release: Oct 13, 2019
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: davask.42 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /432 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.80ms] Passed 4 tests

Server-side resources used by Maras IT Suite : Development Environement
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.41 ▼2.20
Dashboard /wp-admin3.31 ▲0.0047.56 ▼9.18
Posts /wp-admin/edit.php3.36 ▲0.0045.87 ▼0.80
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.21 ▼10.09
Media Library /wp-admin/upload.php3.23 ▲0.0034.28 ▼1.74

Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Maras IT Suite : Development Environement: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.37 ▼1.024.14 ▲2.4939.33 ▼3.81
Dashboard /wp-admin2,200 ▲155.79 ▲0.9099.52 ▼9.9838.07 ▼2.90
Posts /wp-admin/edit.php2,089 ▲32.15 ▲0.1936.74 ▲0.0434.67 ▲0.65
Add New Post /wp-admin/post-new.php1,533 ▼923.31 ▲5.03617.33 ▲14.7552.09 ▼7.79
Media Library /wp-admin/upload.php1,388 ▼34.22 ▲0.0397.70 ▼0.8441.66 ▼0.42

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/dvk-env-dev/public/partials/dvk-env-dev-public-display.php
    • > /wp-content/plugins/dvk-env-dev/admin/partials/dvk-env-dev-admin-display.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'DvkConf\\Plugins\\Environment' not found in wp-content/plugins/dvk-env-dev/src/Dvk/Plugins/Environment.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: configuration, composer, namespace

dvk-env-dev/dvk-env-dev.php Passed 13 tests

The main file in "Maras IT Suite : Development Environement" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin586 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP21212692570
JSON20010
JavaScript24546
CSS2080

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity5.67
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods49
▷ Static methods612.24%
▷ Public methods4387.76%
▷ Protected methods00.00%
▷ Private methods612.24%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected