99% gourl-wp-ecommerce-bitcoin-altcoin-payment-gateway-addon

Code Review | GoUrl WP eCommerce - Bitcoin Altcoin Payment Gateway Addon

WordPress plugin GoUrl WP eCommerce - Bitcoin Altcoin Payment Gateway Addon scored 99% from 54 tests.

About plugin

  • Plugin page: gourl-wp-ecommerc...
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.8
  • WordPress version: 5.8.1
  • First release: Feb 1, 2015
  • Latest release: Jul 13, 2021
  • Number of updates: 18
  • Update frequency: every 130.8 days
  • Top authors: gourl (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

70+ active / 59,179 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.12MB] [CPU: ▼140.09ms] Passed 4 tests

Analyzing server-side resources used by GoUrl WP eCommerce - Bitcoin Altcoin Payment Gateway Addon
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.96 ▲0.2334.48 ▲14.31
Dashboard /wp-admin3.18 ▲0.1247.85 ▼3.82
Posts /wp-admin/edit.php3.23 ▲0.1244.73 ▲2.03
Add New Post /wp-admin/post-new.php5.54 ▲0.1095.42 ▼550.49
Media Library /wp-admin/upload.php3.13 ▲0.1234.32 ▼8.08

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

GoUrl WP eCommerce - Bitcoin Altcoin Payment Gateway Addon: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.87 ▲0.348.46 ▼0.9748.99 ▼5.96
Dashboard /wp-admin2,973 ▲426.05 ▲0.05158.45 ▼13.28122.49 ▲1.86
Posts /wp-admin/edit.php2,736 ▼32.69 ▼0.0067.63 ▼4.0397.21 ▲3.43
Add New Post /wp-admin/post-new.php1,516 ▼6518.59 ▲0.73382.15 ▼52.50114.46 ▼22.65
Media Library /wp-admin/upload.php1,810 ▲35.03 ▲0.02155.84 ▼8.56135.40 ▼17.87

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 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 SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Bitcoin Payments Gateway for WP eCommerce - Options), #2 (WP eCommerce Checkout Page), #3 (WP eCommerce Bitcoin Payment Page), #4 (Bitcoin Payment for WP eCommerce Received Successfully), #5 (WP eCommerce Edit Order Page), #6 (Optional - You can place your product prices in Bitcoins/Altcoins directly)
  • Tags: You are using too many tags: 53 tag instead of maximum 10
The official readme.txt is a good inspiration

gourl-wp-ecommerce-bitcoin-altcoin-payment-gateway-addon/gourl-wp-ecommerce.php 85% from 13 tests

The main PHP file in "GoUrl WP eCommerce - Bitcoin Altcoin Payment Gateway Addon" ver. 1.1.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 608 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("gourl-wp-ecommerce-bitcoin-altcoin-payment-gateway-addon.php" instead of "gourl-wp-ecommerce.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin439 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP115398395
Markdown129044

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity93.00
▷ Minimum class complexity93.00
▷ Maximum class complexity93.00
Average method complexity10.20
▷ Minimum method complexity1.00
▷ Maximum method complexity45.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods770.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
6 compressed PNG files occupy 0.26MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-6.png47.19KB46.40KB▼ 1.67%
screenshot-4.png29.37KB27.37KB▼ 6.80%
screenshot-2.png23.95KB22.75KB▼ 5.01%
screenshot-1.png80.88KB79.94KB▼ 1.17%
screenshot-3.png42.01KB39.35KB▼ 6.33%