61% wc-zelle

Code Review | Checkout with Zelle on Woocommerce

WordPress plugin Checkout with Zelle on Woocommerce scored61%from 54 tests.

About plugin

  • Plugin page: wc-zelle
  • Plugin version: 3.1.2
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Dec 31, 2021
  • Latest release: Nov 11, 2023
  • Number of updates: 21
  • Update frequency: every 32.5 days
  • Top authors: theafricanboss (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

3,000+ active /14,448 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲4.99MB] [CPU: ▲21.07ms] 75% from 4 tests

A check of server-side resources used by Checkout with Zelle on Woocommerce
Please have a look at the following items
  • CPU: You should keep total CPU usage under 500.00ms (currently 1,683.47ms on /wp-admin/admin.php?page=wc-settings&tab=checkout§ion=zelle)
PageMemory (MB)CPU Time (ms)
Home /8.87 ▲5.4162.60 ▲20.39
Dashboard /wp-admin8.89 ▲5.5974.10 ▲25.99
Posts /wp-admin/edit.php8.89 ▲5.5378.60 ▲31.68
Add New Post /wp-admin/post-new.php9.32 ▲3.43106.67 ▲7.45
Media Library /wp-admin/upload.php8.89 ▲5.6666.79 ▲30.46
ZELLE IMPROVED /wp-admin/admin.php?page=wc-settings&tab=checkout§ion=zelle8.891,683.47
Recommended Plugins /wp-admin/admin.php?page=wc-zelle-recommended8.8964.89
Automated Order Updates /wp-admin/admin.php?page=wc_zelle_automated_status8.8955.69
FAQ /wp-admin/admin.php?page=wc-zelle-help8.8957.50
Support /wp-admin/admin.php?page=mailto:info@theafricanboss.com?subject=WC%20Zelle%20Plugin%20Support&body=Hello%2C%0D%0A%0D%0A8.8964.18
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius8.8957.38

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 236 new files
Database: no new tables, 10 new options
New WordPress options
fs_active_plugins
widget_recent-comments
fs_accounts
fs_debug_mode
theysaidso_admin_options
recovery_mode_email_last_sent
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Checkout with Zelle on Woocommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,921 ▲15914.25 ▲0.011.54 ▼0.2027.30 ▼17.08
Dashboard /wp-admin2,326 ▲1495.64 ▲0.1298.41 ▼1.3757.04 ▲11.74
Posts /wp-admin/edit.php2,232 ▲1322.11 ▲0.1141.93 ▲3.4345.33 ▲12.04
Add New Post /wp-admin/post-new.php1,643 ▲11725.04 ▲1.75640.76 ▼66.6979.92 ▲25.93
Media Library /wp-admin/upload.php1,534 ▲1374.17 ▲0.07101.52 ▼1.1549.76 ▲3.57
ZELLE IMPROVED /wp-admin/admin.php?page=wc-settings&tab=checkout§ion=zelle1,0621.6925.8462.33
Recommended Plugins /wp-admin/admin.php?page=wc-zelle-recommended1,0182.0124.1876.49
Automated Order Updates /wp-admin/admin.php?page=wc_zelle_automated_status8101.516.2231.81
FAQ /wp-admin/admin.php?page=wc-zelle-help1,39512.86245.3665.01
Support /wp-admin/admin.php?page=mailto:info@theafricanboss.com?subject=WC%20Zelle%20Plugin%20Support&body=Hello%2C%0D%0A%0D%0A280.410.083.95
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius1,1541.6723.9532.84

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/wc-zelle/freemius/includes/class-freemius.php+8546
    Undefined property: stdClass::$plugins
  • Zombie WordPress options were found after uninstall: 10 options
    • widget_recent-comments
    • fs_accounts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • fs_debug_mode
    • recovery_mode_email_last_sent
    • db_upgraded
    • fs_active_plugins

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=wc_zelle_automated_status
    • > Error in wp-content/plugins/wc-zelle/includes/admin/email-receipts.php+8
    Uncaught Error: Class 'WC_Zelle_Gateway' not found in wp-content/plugins/wc-zelle/includes/admin/email-receipts.php:8
    Stack trace:
    #0 wp-content/plugins/wc-zelle/includes/admin/dashboard.php(137): require_once()
    #1 wp-includes/class-wp-hook.php(310): wc_zelle_email_receipts_menu_page()
    #2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #3 wp-includes/plugin.php(517): WP_Hook->do_action()
    #4 wp-admin/admin.php(259): do_action()
    #5 {main}
    thrown

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/wc-zelle/languages/index.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=mailto:info@theafricanboss.com?subject=WC%20Zelle%20Plugin%20Support&body=Hello%2C%0D%0A%0D%0A
    • > Network (severe)
    wp-admin/admin.php?page=mailto:info@theafricanboss.com?subject=WC%20Zelle%20Plugin%20Support&body=Hello%2C%0D%0A%0D%0A - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
You can take inspiration from this readme.txt

wc-zelle/zelle.php 77% from 13 tests

The main PHP file in "Checkout with Zelle on Woocommerce" ver. 3.1.2 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wc-zelle.php" instead of "zelle.php")
  • Domain Path: Please prefix the domain path with a forward slash character ("/languages")
  • Domain Path: The domain path should use only dashes and lowercase characters ("languages")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin35,562 lines of code in 161 files:
LanguageFilesBlank linesComment linesLines of code
PHP1388,32417,62835,025
JavaScript74281381
CSS15296155
SVG1001

PHP code 50% from 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Please fix the following
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity84.84
▷ Minimum class complexity1.00
▷ Maximum class complexity3,096.00
Average method complexity4.61
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes54
▷ Abstract classes23.70%
▷ Concrete classes5296.30%
▷ Final classes00.00%
Methods1,305
▷ Static methods19915.25%
▷ Public methods90469.27%
▷ Protected methods181.38%
▷ Private methods38329.35%
Functions116
▷ Named functions11094.83%
▷ Anonymous functions65.17%
Constants153
▷ Global constants10669.28%
▷ Class constants4730.72%
▷ Public constants47100.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
18 PNG files occupy 0.40MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/zelle-256x256.png9.01KB5.04KB▼ 44.06%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
assets/images/checkout_page.png47.47KB22.97KB▼ 51.62%
assets/images/venmo_35.png0.91KB0.79KB▼ 12.85%
assets/images/venmo-256x256.png11.55KB5.61KB▼ 51.38%