77% data-soap-validation

Code Review | Data Soap Validation

WordPress plugin Data Soap Validation scored 77% from 54 tests.

About plugin

  • Plugin page: data-soap-validation
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 2.2.3-6.1
  • WordPress version: 6.3.1
  • First release: Sep 12, 2022
  • Latest release: Nov 16, 2022
  • Number of updates: 10
  • Update frequency: every 6.7 days
  • Top authors: liquid11 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 799 total downloads

Benchmarks

Plugin footprint 82% 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.18MB] [CPU: ▲10,626.40ms] 75% from 4 tests

Server-side resources used by Data Soap Validation
Please fix the following
  • Extra CPU: Extra CPU usage must be kept under 200.00ms (currently 10,626.40ms on /wp-admin/upload.php)
PageMemory (MB)CPU Time (ms)
Home /3.01 ▼0.4542,560.40 ▲42,520.59
Dashboard /wp-admin3.01 ▼0.2943,030.14 ▲42,976.95
Posts /wp-admin/edit.php3.37 ▲0.0147.63 ▼4.10
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.59 ▼10.54
Media Library /wp-admin/upload.php3.24 ▲0.0134.46 ▼0.35

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Data Soap Validation: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲7714.47 ▲0.091.69 ▼0.1742.52 ▲0.33
Dashboard /wp-admin2,218 ▲274.84 ▼0.0298.17 ▼4.4338.21 ▼6.52
Posts /wp-admin/edit.php2,101 ▲122.00 ▼0.0234.01 ▼2.4934.89 ▼0.12
Add New Post /wp-admin/post-new.php1,538 ▲518.37 ▼0.03610.87 ▼12.3248.54 ▼3.03
Media Library /wp-admin/upload.php1,400 ▲124.16 ▼0.0894.73 ▼7.1141.88 ▼2.39

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
Please take a closer look at the following
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/data-soap-validation/includes/dsv_header.php
    • > /wp-content/plugins/data-soap-validation/includes/dsv_instructions.php
    • > /wp-content/plugins/data-soap-validation/includes/dsv_footer.php
  • 8× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/data-soap-validation/plugin_interface.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/data-soap-validation/includes/dsvcf7-validation.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/data-soap-validation/plugin_interface.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/data-soap-validation/includes/dsvwc-validation.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/data-soap-validation/includes/dsvgf-validation.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/data-soap-validation/includes/dsvep-validation.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/data-soap-validation/includes/dsvwpf-validation.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/data-soap-validation/includes/dsv_settings.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Tags: There are too many tags (17 tag instead of maximum 10)
Please take inspiration from this readme.txt

data-soap-validation/datasoap-validation.php 85% from 13 tests

The main file in "Data Soap Validation" v. 1.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("data-soap-validation.php" instead of "datasoap-validation.php")
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.5" instead of "2.2.3")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected727 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP1116524727

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin