84% vandar-io-for-edd

Code Review | Easy Digital Downloads Vandar.io Gateway

WordPress plugin Easy Digital Downloads Vandar.io Gateway scored84%from 54 tests.

About plugin

  • Plugin page: vandar-io-for-edd
  • Plugin version: 2.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3.0
  • WordPress version: 6.3.1
  • First release: May 2, 2019
  • Latest release: Aug 10, 2023
  • Number of updates: 17
  • Update frequency: every 91.8 days
  • Top authors: vandarpay (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /978 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.74ms] Passed 4 tests

This is a short check of server-side resources used by Easy Digital Downloads Vandar.io Gateway
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.73 ▲1.66
Dashboard /wp-admin3.32 ▲0.0245.96 ▼1.76
Posts /wp-admin/edit.php3.38 ▲0.0248.41 ▼0.60
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.72 ▼10.26
Media Library /wp-admin/upload.php3.25 ▲0.0235.17 ▲1.71

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Easy Digital Downloads Vandar.io Gateway
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.31 ▼1.241.66 ▼0.3641.64 ▼9.08
Dashboard /wp-admin2,206 ▲154.85 ▼0.09106.66 ▲5.1939.60 ▼3.41
Posts /wp-admin/edit.php2,089 ▼02.06 ▼0.0036.34 ▼6.1936.44 ▼2.45
Add New Post /wp-admin/post-new.php1,542 ▲418.42 ▼4.61611.88 ▼68.1151.15 ▼9.54
Media Library /wp-admin/upload.php1,391 ▼04.17 ▲0.0297.83 ▼1.8042.49 ▼4.30

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 detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Please fix the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/vandar-io-for-edd/includes/toman-currency.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/vandar-io-for-edd/includes/toman-currency.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: payment gateway, easy digital downloads patmentbr, edd, vandario edd, edd payment...

vandar-io-for-edd/edd-vandario.php 92% from 13 tests

The primary PHP file in "Easy Digital Downloads Vandar.io Gateway" version 2.1.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("vandar-io-for-edd.php" instead of "edd-vandario.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected238 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP367105217
Markdown17021

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity2.23
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods1184.62%
▷ Protected methods00.00%
▷ Private methods215.38%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.00%
Constants0
▷ Global constants00.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