84% vgc-for-edd

Code Review | Very Good Collection Payment Gateway for Easy Digital Downloads

WordPress plugin Very Good Collection Payment Gateway for Easy Digital Downloads scored84%from 54 tests.

About plugin

  • Plugin page: vgc-for-edd
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.7.2
  • WordPress version: 6.3.1
  • First release: Jun 26, 2021
  • Latest release: Jun 26, 2021
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: wafsite (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /264 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.62MB] [CPU: ▼14.64ms] Passed 4 tests

This is a short check of server-side resources used by Very Good Collection Payment Gateway for Easy Digital Downloads
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0738.01 ▼0.22
Dashboard /wp-admin3.36 ▲0.0654.62 ▲3.59
Posts /wp-admin/edit.php3.42 ▲0.0645.63 ▼0.51
Add New Post /wp-admin/post-new.php3.24 ▼2.6535.62 ▼57.85
Media Library /wp-admin/upload.php3.29 ▲0.0633.96 ▲0.04

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Very Good Collection Payment Gateway for Easy Digital Downloads
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.61 ▼0.971.91 ▼0.1044.00 ▲2.36
Dashboard /wp-admin2,206 ▲145.80 ▲0.85100.72 ▼3.2436.94 ▼5.75
Posts /wp-admin/edit.php2,089 ▼02.03 ▼0.0135.96 ▼3.1637.22 ▲5.01
Add New Post /wp-admin/post-new.php1,533 ▼023.18 ▼0.14621.77 ▼63.2258.75 ▲5.58
Media Library /wp-admin/upload.php1,388 ▼04.21 ▲0.0296.97 ▼13.2442.01 ▼6.03

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vgc-for-edd/very-good-collection-edd.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: payment, verygoodcollection, easydigitaldownloads

vgc-for-edd/very-good-collection-edd.php 92% from 13 tests

"Very Good Collection Payment Gateway for Easy Digital Downloads" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("vgc-for-edd.php" instead of "very-good-collection-edd.php")

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
There were no executable files found in this plugin282 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14433282

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.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