89% woo-escrow-gateway

Code Review | Escrow Payments on WooCoomerce

WordPress plugin Escrow Payments on WooCoomerce scored 89% from 54 tests.

About plugin

  • Plugin page: woo-escrow-gateway
  • Plugin version: 2.4.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.7
  • WordPress version: 6.3.1
  • First release: Dec 8, 2017
  • Latest release: May 31, 2023
  • Number of updates: 39
  • Update frequency: every 51.3 days
  • Top authors: escrowdotcom (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active / 7,336 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

Analyzing server-side resources used by Escrow Payments on WooCoomerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0138.07 ▼6.82
Dashboard /wp-admin3.31 ▲0.0141.10 ▼4.01
Posts /wp-admin/edit.php3.36 ▲0.0047.12 ▲4.20
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.15 ▼2.66
Media Library /wp-admin/upload.php3.23 ▲0.0034.17 ▲0.36

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Escrow Payments on WooCoomerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.74 ▲0.501.89 ▲0.0144.91 ▼0.14
Dashboard /wp-admin2,209 ▲204.88 ▼0.05109.94 ▼9.7442.58 ▼1.81
Posts /wp-admin/edit.php2,089 ▲32.02 ▲0.0538.70 ▲2.5834.64 ▲1.46
Add New Post /wp-admin/post-new.php1,534 ▲2023.19 ▲5.67682.72 ▲1.0454.04 ▼2.39
Media Library /wp-admin/upload.php1,388 ▲34.16 ▼0.1096.63 ▼7.9641.46 ▼3.40

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output 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 90% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: gateway, payment, ecommerce, escrow, woocommerce

woo-escrow-gateway/woocommerce-gateway-escrow.php 77% from 13 tests

The main PHP script in "Escrow Payments on WooCoomerce" version 2.4.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("woo-escrow-gateway.php" instead of "woocommerce-gateway-escrow.php")
  • Requires at least: Required version does not match the one declared in readme.txt ("4.0" instead of "3.0")
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected789 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1141268789

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity52.00
▷ Minimum class complexity52.00
▷ Maximum class complexity52.00
Average method complexity4.92
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods538.46%
▷ Protected methods00.00%
▷ Private methods861.54%
Functions7
▷ Named functions7100.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
No PNG files were detected