90% vendbile-payment-gateway

Code Review | Vendible Payment Gateway

WordPress plugin Vendible Payment Gateway scored90%from 54 tests.

About plugin

  • Plugin page: vendbile-payment-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.2.1
  • WordPress version: 6.3.1
  • First release: Oct 10, 2019
  • Latest release: Oct 10, 2019
  • Number of updates: 2
  • Update frequency: every 3.5 days
  • Top authors: vendiblegateway (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /430 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
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.85ms] Passed 4 tests

Server-side resources used by Vendible Payment Gateway
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.50 ▲0.79
Dashboard /wp-admin3.33 ▼0.0256.98 ▼12.66
Posts /wp-admin/edit.php3.38 ▲0.0252.06 ▼2.91
Add New Post /wp-admin/post-new.php5.91 ▲0.0296.21 ▼15.37
Media Library /wp-admin/upload.php3.25 ▲0.0237.45 ▼0.47

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Vendible Payment Gateway
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲5014.73 ▲0.281.83 ▲0.0443.93 ▲3.86
Dashboard /wp-admin2,205 ▲285.70 ▲0.0393.13 ▼15.9943.53 ▼5.32
Posts /wp-admin/edit.php2,107 ▲72.01 ▼0.0240.08 ▲3.9637.00 ▲3.05
Add New Post /wp-admin/post-new.php1,562 ▲1618.20 ▼5.11589.20 ▼71.2858.86 ▼7.02
Media Library /wp-admin/upload.php1,407 ▲74.18 ▼0.0495.63 ▼10.7445.62 ▼2.36

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: payment request, crypto currency, bitcoin, vendible, blockchain

vendbile-payment-gateway/vendible-payment-gateway.php 92% from 13 tests

This is the main PHP file of "Vendible Payment Gateway" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("vendbile-payment-gateway.php" instead of "vendible-payment-gateway.php")

Code Analysis Passed 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
Good job! No executable or dangerous file extensions detected884 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP266128774
CSS1214110

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity95.00
▷ Minimum class complexity95.00
▷ Maximum class complexity95.00
Average method complexity6.53
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods15.88%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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
5 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/pivx.png4.05KB3.96KB▼ 2.07%
assets/bitcoin.png3.46KB3.03KB▼ 12.23%
assets/bitcoin-cash.png3.32KB3.33KB0.00%
assets/litecoin.png2.98KB2.28KB▼ 23.52%
assets/iop.png14.54KB12.11KB▼ 16.69%