77% edd-venmo

Code Review | Checkout with Venmo on EDD

WordPress plugin Checkout with Venmo on EDD scored 77% from 54 tests.

About plugin

  • Plugin page: edd-venmo
  • Plugin version: 1.0
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8.2
  • WordPress version: 5.9.2
  • First release: Dec 24, 2021
  • Latest release: Dec 24, 2021
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: theafricanboss (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 99 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.02MB] [CPU: ▼298.55ms] Passed 4 tests

A check of server-side resources used by Checkout with Venmo on EDD
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0153.03 ▲0.06
Dashboard /wp-admin3.41 ▲0.0034.78 ▼0.50
Posts /wp-admin/edit.php3.64 ▲0.0036.78 ▼3.99
Add New Post /wp-admin/post-new.php6.91 ▼0.0996.61 ▼1,189.76
Media Library /wp-admin/upload.php3.30 ▲0.0027.38 ▲1.81

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 202 new files
Database: no new tables, 4 new options
New WordPress options
fs_active_plugins
fs_accounts
fs_debug_mode
fs_gdpr

Browser metrics Passed 4 tests

Checkout with Venmo on EDD: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲1015.93 ▲0.355.83 ▼0.002.52 ▼0.06
Dashboard /wp-admin2,895 ▲346.17 ▲0.02119.02 ▼14.97156.91 ▼6.50
Posts /wp-admin/edit.php2,688 ▼63.23 ▼0.0165.94 ▲0.80135.93 ▼2.01
Add New Post /wp-admin/post-new.php1,696 ▼1521.09 ▲0.46440.72 ▼29.39155.26 ▼1.07
Media Library /wp-admin/upload.php1,698 ▼05.53 ▲0.05143.56 ▲2.12177.22 ▼12.55

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 4 options in the database
    • fs_accounts
    • fs_debug_mode
    • fs_gdpr
    • fs_active_plugins

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/edd-venmo/freemius/templates/ajax-loader.php
  • 9× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/edd-venmo/freemius/templates/account/partials/addon.php on line 8
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/edd-venmo/freemius/templates/account/partials/addon.php on line 7
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/edd-venmo/freemius/templates/account/partials/addon.php on line 7
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/edd-venmo/freemius/templates/account/partials/addon.php on line 6
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/edd-venmo/freemius/templates/account/partials/addon.php on line 6
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/edd-venmo/freemius/templates/account/partials/addon.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/edd-venmo/freemius/templates/account/partials/addon.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function freemius() in wp-content/plugins/edd-venmo/freemius/templates/partials/network-activation.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/edd-venmo/languages/index.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: There are too many tags (16 tag instead of maximum 10)
  • Screenshots: Add descriptions for screenshots #2, #3, #4, #5 in edd-venmo/assets to your readme.txt
Please take inspiration from this readme.txt

edd-venmo/edd-venmo.php 77% from 13 tests

The main file in "Checkout with Venmo on EDD" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Domain Path: Please prefix the domain path with a forward slash character ("/languages")
  • Description: Please keep the plugin description shorter than 140 characters (currently 142 characters long)
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")

Code Analysis 97% from 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
Success! There were no dangerous files found in this plugin31,288 lines of code in 138 files:
LanguageFilesBlank linesComment linesLines of code
PHP1197,27816,14030,827
Markdown1680214
JavaScript33459194
JSON10027
CSS130625
SVG1001

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
The following items need your attention
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 2,907)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity90.20
▷ Minimum class complexity1.00
▷ Maximum class complexity2,907.00
Average method complexity4.65
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes45
▷ Abstract classes24.44%
▷ Concrete classes4395.56%
▷ Final classes00.00%
Methods1,132
▷ Static methods17315.28%
▷ Public methods79269.96%
▷ Protected methods151.33%
▷ Private methods32528.71%
Functions112
▷ Named functions10997.32%
▷ Anonymous functions32.68%
Constants127
▷ Global constants10280.31%
▷ Class constants2519.69%
▷ Public constants25100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
12 PNG files occupy 0.09MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/zelle_35.png1.17KB1.06KB▼ 9.22%
assets/images/venmo_35.png0.91KB0.79KB▼ 12.85%
assets/images/cashapp_35.png1.15KB1.02KB▼ 11.12%
assets/images/cashapp.png17.09KB7.62KB▼ 55.39%
assets/images/venmo.png14.51KB6.87KB▼ 52.63%