10% vdpetform

Code Review | Vergelijkdirect.com - Vergelijk verzekeringen, energie en telecom.

WordPress plugin Vergelijkdirect.com - Vergelijk verzekeringen, energie en telecom. scored10%from 54 tests.

About plugin

  • Plugin page: vdpetform
  • Plugin version: 3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.8-4.9.8
  • WordPress version: 6.3.1
  • First release: Aug 15, 2018
  • Latest release: Mar 4, 2019
  • Number of updates: 16
  • Update frequency: every 12.6 days
  • Top authors: vergelijkdirect (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /743 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/vdpetform/includes/class-vdpetform.php+154
    Undefined variable: plugin_basename

Server metrics [RAM: ▼1.87MB] [CPU: ▼49.48ms] Passed 4 tests

Server-side resources used by Vergelijkdirect.com - Vergelijk verzekeringen, energie en telecom.
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.12 ▼1.344.95 ▼37.59
Dashboard /wp-admin2.14 ▼1.166.66 ▼39.87
Posts /wp-admin/edit.php2.14 ▼1.228.59 ▼34.72
Add New Post /wp-admin/post-new.php2.14 ▼3.758.62 ▼85.74
Media Library /wp-admin/upload.php2.14 ▼1.096.66 ▼28.14
Maak vergelijker /wp-admin/admin.php?page=vergelijkdirect_form2.146.77

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Vergelijkdirect.com - Vergelijk verzekeringen, energie en telecom.
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,925 ▲19015.02 ▲0.6326.04 ▲23.6138.05 ▼7.60
Dashboard /wp-admin2,262 ▲745.92 ▲0.06137.70 ▲33.6543.18 ▼1.71
Posts /wp-admin/edit.php2,147 ▲582.75 ▲0.7450.74 ▲13.8334.89 ▼1.33
Add New Post /wp-admin/post-new.php1,552 ▲1923.74 ▲0.39696.14 ▲11.6136.39 ▼16.54
Media Library /wp-admin/upload.php1,447 ▲595.25 ▲1.07103.62 ▼37.7244.69 ▼3.12
Maak vergelijker /wp-admin/admin.php?page=vergelijkdirect_form8932.9035.3031.65

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/vdpetform/includes/class-vdpetform.php+154
    Undefined variable: plugin_basename
  • Zombie tables detected upon uninstall: 1 table
    • wp_vdforms
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=vergelijkdirect_form
    • > Notice in wp-content/plugins/vdpetform/includes/class-vdpetform.php+154
    Undefined variable: plugin_basename
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=vergelijkdirect_form
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
    • > GET request to /wp-admin/admin.php?page=vergelijkdirect_form
    • > Notice in wp-content/plugins/vdpetform/admin/class-vdpetform-admin.php+132
    Undefined index: card_padding
    • > GET request to /wp-admin/admin.php?page=vergelijkdirect_form
    • > Notice in wp-content/plugins/vdpetform/admin/class-vdpetform-admin.php+133
    Undefined index: border_color
    • > GET request to /wp-admin/admin.php?page=vergelijkdirect_form
    • > Notice in wp-content/plugins/vdpetform/admin/class-vdpetform-admin.php+134
    Undefined index: form_style
    • > GET request to /wp-admin/admin.php?page=vergelijkdirect_form
    • > Notice in wp-content/plugins/vdpetform/admin/class-vdpetform-admin.php+135
    Undefined index: border_thickness
    • > GET request to /wp-admin/admin.php?page=vergelijkdirect_form
    • > Notice in wp-content/plugins/vdpetform/admin/class-vdpetform-admin.php+136
    Undefined index: card_color
    • > GET request to /wp-admin/admin.php?page=vergelijkdirect_form
    • > Notice in wp-content/plugins/vdpetform/admin/class-vdpetform-admin.php+137
    Undefined index: text_color
    • > GET request to /wp-admin/admin.php?page=vergelijkdirect_form
    • > Notice in wp-content/plugins/vdpetform/admin/class-vdpetform-admin.php+138
    Undefined index: card_border_radius
    • > GET request to /wp-admin/admin.php?page=vergelijkdirect_form
    • > Notice in wp-content/plugins/vdpetform/admin/class-vdpetform-admin.php+139
    Undefined index: btn_text
    • > GET request to /wp-admin/admin.php?page=vergelijkdirect_form
    • > Notice in wp-content/plugins/vdpetform/admin/class-vdpetform-admin.php+140
    Undefined index: btn_text_color
    • > GET request to /wp-admin/admin.php?page=vergelijkdirect_form
    • > Notice in wp-content/plugins/vdpetform/admin/class-vdpetform-admin.php+141
    Undefined index: btn_color
    • > GET request to /wp-admin/admin.php?page=vergelijkdirect_form
    • > Notice in wp-content/plugins/vdpetform/admin/class-vdpetform-admin.php+142
    Undefined index: btn_color_hover
    • > GET request to /wp-admin/admin.php?page=vergelijkdirect_form
    • > Notice in wp-content/plugins/vdpetform/admin/class-vdpetform-admin.php+143
    Undefined index: btn_border_radius

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 4× PHP files output text when accessed directly:
    • > /wp-content/plugins/vdpetform/admin/partials/vdpetform-admin-edit.php
    • > /wp-content/plugins/vdpetform/admin/partials/forms/vdpetform-admin-form-motor.php
    • > /wp-content/plugins/vdpetform/admin/partials/forms/vdpetform-admin-form-bike.php
    • > /wp-content/plugins/vdpetform/admin/partials/forms/vdpetform-admin-form-pet.php
  • 220× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/vdpetform/admin/partials/forms/vdpetform-admin-form-bike.php on line 73
    • > PHP Notice
      Trying to get property 'border_thickness' of non-object in wp-content/plugins/vdpetform/admin/partials/forms/vdpetform-admin-form-motor.php on line 126
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/vdpetform/admin/partials/forms/vdpetform-admin-form-bike.php on line 73
    • > PHP Notice
      Trying to get property 'card_border_radius' of non-object in wp-content/plugins/vdpetform/admin/partials/forms/vdpetform-admin-form-pet.php on line 94
    • > PHP Notice
      Trying to get property 'form_id' of non-object in wp-content/plugins/vdpetform/admin/partials/forms/vdpetform-admin-form-pet.php on line 55
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/vdpetform/admin/partials/forms/vdpetform-admin-form-bike.php on line 129
    • > PHP Notice
      Trying to get property 'border_thickness' of non-object in wp-content/plugins/vdpetform/admin/partials/vdpetform-admin-edit.php on line 133
    • > PHP Notice
      Trying to get property 'card_padding' of non-object in wp-content/plugins/vdpetform/admin/partials/forms/vdpetform-admin-form-bike.php on line 71
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/vdpetform/admin/partials/forms/vdpetform-admin-form-pet.php on line 91
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/vdpetform/admin/partials/forms/vdpetform-admin-form-pet.php on line 138

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Donate link: Invalid url: "Vergelijkdirect.com"
  • Contributors: The plugin contributors field is missing
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === vdpetform === )
You can look at the official readme.txt

vdpetform/vdpetform.php 92% from 13 tests

The primary PHP file in "Vergelijkdirect.com - Vergelijk verzekeringen, energie en telecom." version 3.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 235 characters long)

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 detected1,323 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP151755351,318
JavaScript3003
CSS2002

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity4.71
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity1.74
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods35
▷ Static methods411.43%
▷ Public methods3085.71%
▷ Protected methods00.00%
▷ Private methods514.29%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/images/sucker.png0.65KB0.74KB0.00%