83% vesicash-escrow-plugin-for-woocommerce

Code Review | Vesicash Escrow Plugin for WooCommerce

WordPress plugin Vesicash Escrow Plugin for WooCommerce scored 83% from 54 tests.

About plugin

  • Plugin page: vesicash-escrow-p...
  • Plugin version: 1.7.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 29, 2019
  • Latest release: Jun 3, 2022
  • Number of updates: 53
  • Update frequency: every 17.6 days
  • Top authors: vesicash (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,085 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

This is a short check of server-side resources used by Vesicash Escrow Plugin for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.98 ▼9.07
Dashboard /wp-admin3.31 ▲0.0045.90 ▲0.41
Posts /wp-admin/edit.php3.36 ▲0.0044.58 ▲1.51
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.03 ▼3.11
Media Library /wp-admin/upload.php3.23 ▲0.0035.50 ▲0.85

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Vesicash Escrow Plugin for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.25 ▼1.331.82 ▲0.1345.55 ▼1.00
Dashboard /wp-admin2,209 ▲185.83 ▲0.9693.89 ▼14.6435.33 ▼5.61
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0037.05 ▲1.5036.08 ▲1.61
Add New Post /wp-admin/post-new.php1,541 ▲823.47 ▲0.31622.84 ▼58.7860.56 ▼17.98
Media Library /wp-admin/upload.php1,382 ▼64.27 ▲0.0895.22 ▼13.4143.59 ▼2.65

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% 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 50% 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
Please take a closer look at the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/vesicash-escrow-plugin-for-woocommerce/woo-vesicash-gateway.php
    • > /wp-content/plugins/vesicash-escrow-plugin-for-woocommerce/admin/class-wc-vesicash-escrow-gateway.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === vesicash-escrow-plugin-for-woocommerce === )
The official readme.txt is a good inspiration

vesicash-escrow-plugin-for-woocommerce/woo-vesicash-gateway.php 85% from 13 tests

Analyzing the main PHP file in "Vesicash Escrow Plugin for WooCommerce" version 1.7.1
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("vesicash-escrow-plugin-for-woocommerce.php" instead of "woo-vesicash-gateway.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin843 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4187279843

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity28.00
▷ Minimum class complexity28.00
▷ Maximum class complexity28.00
Average method complexity3.08
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods861.54%
▷ Protected methods00.00%
▷ Private methods538.46%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin