90% vouch-release-on-delivery-for-woocommerce

Code Review | Vouch - Release on delivery for WooCommerce

WordPress plugin Vouch - Release on delivery for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: vouch-release-on-...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.2-5.8.1
  • WordPress version: 6.3.1
  • First release: Oct 19, 2021
  • Latest release: Oct 21, 2021
  • Number of updates: 5
  • Update frequency: every 0.4 days
  • Top authors: iamvouched (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /309 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼8.87ms] Passed 4 tests

Analyzing server-side resources used by Vouch - Release on delivery for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.86 ▼2.44
Dashboard /wp-admin3.31 ▼0.0453.58 ▼13.84
Posts /wp-admin/edit.php3.36 ▲0.0051.99 ▼6.57
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.18 ▼12.63
Media Library /wp-admin/upload.php3.23 ▲0.0040.73 ▲3.22

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

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

Browser metrics Passed 4 tests

Vouch - Release on delivery for WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▼0.121.85 ▲0.0946.18 ▲6.17
Dashboard /wp-admin2,195 ▲155.53 ▲0.0096.66 ▼2.2541.68 ▼0.50
Posts /wp-admin/edit.php2,103 ▲62.04 ▲0.0136.32 ▼0.9833.21 ▼3.54
Add New Post /wp-admin/post-new.php1,526 ▼023.01 ▼0.66697.15 ▲61.3561.20 ▼3.35
Media Library /wp-admin/upload.php1,397 ▲64.36 ▲0.16100.09 ▼9.4541.85 ▼3.50

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: vouch, payments, digital escrow, india, release on deliver...

vouch-release-on-delivery-for-woocommerce/vouch-woocommerce.php 92% from 13 tests

The primary PHP file in "Vouch - Release on delivery for WooCommerce" version 1.0.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("vouch-release-on-delivery-for-woocommerce.php" instead of "vouch-woocommerce.php")

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
Everything looks great! No dangerous files found in this plugin567 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP595119410
SVG200157

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity13.33
▷ Minimum class complexity10.00
▷ Maximum class complexity15.00
Average method complexity2.28
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods29
▷ Static methods00.00%
▷ Public methods1344.83%
▷ Protected methods1655.17%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.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
There are no PNG files in this plugin