68% dvk-conf

Code Review | Maras IT Suite : Core Configuration

WordPress plugin Maras IT Suite : Core Configuration scored68%from 54 tests.

About plugin

  • Plugin page: dvk-conf
  • Plugin version: 1.0.7
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.3-5.2.3
  • WordPress version: 6.3.1
  • First release: Apr 1, 2019
  • Latest release: Nov 16, 2019
  • Number of updates: 20
  • Update frequency: every 11.8 days
  • Top authors: davask.42 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /596 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
Installer ran successfully

Server metrics [RAM: ▲0.64MB] [CPU: ▲0.77ms] Passed 4 tests

Server-side resources used by Maras IT Suite : Core Configuration
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.35 ▲0.6250.33 ▲5.20
Dashboard /wp-admin4.22 ▲0.6654.62 ▲2.06
Posts /wp-admin/edit.php4.33 ▲0.6557.18 ▲5.66
Add New Post /wp-admin/post-new.php6.83 ▲0.6889.09 ▼9.84
Media Library /wp-admin/upload.php4.13 ▲0.6445.74 ▲6.76
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins4.1439.15

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 499 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Maras IT Suite : Core Configuration
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,910 ▲14913.44 ▼0.957.91 ▲6.0238.89 ▼5.84
Dashboard /wp-admin2,233 ▲565.54 ▼0.1283.18 ▼10.9941.54 ▲0.07
Posts /wp-admin/edit.php2,147 ▲472.19 ▲0.1541.46 ▲3.3335.81 ▼1.03
Add New Post /wp-admin/post-new.php1,563 ▲3223.40 ▲0.17636.72 ▲9.5954.85 ▲9.60
Media Library /wp-admin/upload.php1,443 ▲434.25 ▲0.04103.91 ▲2.6250.42 ▲4.62
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins1,0692.0722.7429.02

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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-conf/admin/partials/dvk-conf-admin-display.php
    • > /wp-content/plugins/dvk-conf/public/partials/dvk-conf-public-display.php
  • 188× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\Console\\Helper\\HelperInterface' not found in wp-content/plugins/dvk-conf/vendor/symfony/console/Helper/Helper.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/dvk-conf/vendor/symfony/console/Tests/Formatter/OutputFormatterStyleStackTest.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\Console\\Command\\Command' not found in wp-content/plugins/dvk-conf/vendor/symfony/console/Tests/Fixtures/FooSubnamespaced2Command.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/dvk-conf/vendor/symfony/var-dumper/Tests/Caster/MemcachedCasterTest.php:20
    • > PHP Warning
      require(/../../../../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/dvk-conf/vendor/symfony/var-dumper/Tests/Fixtures/dump_server.php on line 15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/dvk-conf/src/includes/vendor/class-tgm-plugin-activation-modified.php:2142
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\Console\\Exception\\ExceptionInterface' not found in wp-content/plugins/dvk-conf/vendor/symfony/console/Exception/InvalidOptionException.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/dvk-conf/src/includes/vendor/class-tgm-plugin-activation.php:2109
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\Console\\Tests\\Descriptor\\AbstractDescriptorTest' not found in wp-content/plugins/dvk-conf/vendor/symfony/console/Tests/Descriptor/JsonDescriptorTest.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/dvk-conf/vendor/symfony/console/Tests/Output/StreamOutputTest.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: configuration, composer, namespace

dvk-conf/dvk-conf.php Passed 13 tests

The primary PHP file in "Maras IT Suite : Core Configuration" version 1.0.7 is used by WordPress to initiate all plugin functionality
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Please fix the following items
  • Do not include executable or dangerous files in your plugin
    • .exe - Executable in Windows
      • wp-content/plugins/dvk-conf/vendor/symfony/console/Resources/bin/hiddeninput.exe
36,198 lines of code in 414 files:
LanguageFilesBlank linesComment linesLines of code
PHP3177,02610,91532,925
JSON32001,619
Markdown334550927
XML26290575
CSS319136
JavaScript345416

PHP code Passed 2 tests

A short review 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.29
Average class complexity11.34
▷ Minimum class complexity1.00
▷ Maximum class complexity212.00
Average method complexity2.47
▷ Minimum method complexity1.00
▷ Maximum method complexity71.00
Code structure
Namespaces59
Interfaces25
Traits5
Classes272
▷ Abstract classes103.68%
▷ Concrete classes26296.32%
▷ Final classes103.82%
Methods2,099
▷ Static methods25011.91%
▷ Public methods1,71481.66%
▷ Protected methods22510.72%
▷ Private methods1607.62%
Functions255
▷ Named functions6826.67%
▷ Anonymous functions18773.33%
Constants97
▷ Global constants2525.77%
▷ Class constants7274.23%
▷ Public constants6387.50%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin