10% cashvault-woocommerce

Code Review | Cashvault Woocommerce

WordPress plugin Cashvault Woocommerce scored10%from 54 tests.

About plugin

  • Plugin page: cashvault-woocomm...
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-5.0
  • WordPress version: 6.3.1
  • First release: Jul 26, 2018
  • Latest release: Oct 24, 2019
  • Number of updates: 73
  • Update frequency: every 6.3 days
  • Top authors: cvsupport (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /5,257 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/cashvault-woocommerce/cashvault-escrow-woocommerce.php+48
    Undefined variable: php

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

A check of server-side resources used by Cashvault Woocommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.50 ▲1.83
Dashboard /wp-admin3.31 ▲0.0050.42 ▲1.83
Posts /wp-admin/edit.php3.36 ▲0.0049.97 ▲3.06
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.33 ▼14.96
Media Library /wp-admin/upload.php3.23 ▲0.0034.11 ▼0.00

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Cashvault Woocommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.26 ▼1.351.68 ▼0.4240.40 ▼5.08
Dashboard /wp-admin2,209 ▲274.82 ▼1.04111.86 ▼1.3742.88 ▼2.71
Posts /wp-admin/edit.php2,086 ▼62.00 ▼0.0433.32 ▼2.1834.21 ▼3.22
Add New Post /wp-admin/post-new.php1,536 ▲323.36 ▲0.33594.74 ▼82.7247.57 ▼6.12
Media Library /wp-admin/upload.php1,388 ▼34.19 ▼0.0393.54 ▼10.0939.66 ▼6.13

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 83% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: payment service, ecommerce, distribution payment service, cashvault

cashvault-woocommerce/cashvault-escrow-woocommerce.php 62% from 13 tests

"Cashvault Woocommerce" version 1.2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Requires at least: Required version must match the one declared in readme.txt ("4.1" instead of "2.6")
  • Main file name: The principal plugin file should be the same as the plugin slug ("cashvault-woocommerce.php" instead of "cashvault-escrow-woocommerce.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 172 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected856 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1131225856

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity64.00
▷ Minimum class complexity64.00
▷ Maximum class complexity64.00
Average method complexity8.00
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.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 were not PNG files found in your plugin