88% gourl-woocommerce-bitcoin-altcoin-payment-gateway-addon

Code Review | GoUrl WooCommerce - Bitcoin Altcoin Payment Gateway Addon

WordPress plugin GoUrl WooCommerce - Bitcoin Altcoin Payment Gateway Addon scored 88% from 54 tests.

About plugin

  • Plugin page: gourl-woocommerce...
  • Plugin version: 1.3.9
  • PHP version: 7.4.16
  • WordPress compatibility: 2.1.0-6.3
  • WordPress version: 6.3.1
  • First release: Jan 5, 2015
  • Latest release: Aug 6, 2023
  • Number of updates: 122
  • Update frequency: every 25.7 days
  • Top authors: gourl (100%)

Code review

54 tests

User reviews

37 reviews

Install metrics

2,000+ active / 185,459 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.36MB] [CPU: ▼5.65ms] Passed 4 tests

An overview of server-side resources used by GoUrl WooCommerce - Bitcoin Altcoin Payment Gateway Addon
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.82 ▲0.3641.14 ▼1.31
Dashboard /wp-admin3.66 ▲0.3648.73 ▼1.32
Posts /wp-admin/edit.php3.78 ▲0.4251.12 ▲0.66
Add New Post /wp-admin/post-new.php6.24 ▲0.3688.29 ▼20.63
Media Library /wp-admin/upload.php3.59 ▲0.3637.78 ▲3.86

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

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

Browser metrics Passed 4 tests

A check of browser resources used by GoUrl WooCommerce - Bitcoin Altcoin Payment Gateway Addon
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.21 ▼1.534.57 ▲2.6939.49 ▼10.23
Dashboard /wp-admin2,209 ▲245.83 ▲0.9196.58 ▼5.9039.85 ▼4.52
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0432.98 ▼1.8331.95 ▼1.50
Add New Post /wp-admin/post-new.php1,533 ▲1223.13 ▼0.02671.31 ▲41.7464.93 ▲13.42
Media Library /wp-admin/upload.php1,388 ▼04.18 ▼0.0495.70 ▲1.2341.53 ▲1.93

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 79% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 32 tag instead of maximum 10
  • Screenshots: Please add images for these screenshots: #1 (Bitcoin/Altcoin Payments Gateway for WooCommerce - Options), #2 (WooCommerce Checkout Page), #3 (WooCommerce Bitcoin Payment Page), #4 (Bitcoin Payment for WooCommerce Received Successfully), #5 (WooCommerce Edit Order Page), #6 (Optional - Display or use product prices in Bitcoin/Altcoin directly)
You can look at the official readme.txt

gourl-woocommerce-bitcoin-altcoin-payment-gateway-addon/gourl-woocommerce.php 69% from 13 tests

"GoUrl WooCommerce - Bitcoin Altcoin Payment Gateway Addon" version 1.3.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Plugin Name: A shorter plugin name is better (currently 79 characters long instead of max. 70)
  • Requires at least: Required version does not match the one declared in readme.txt ("3.5" instead of "2.1.0")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gourl-woocommerce-bitcoin-altcoin-payment-gateway-addon.php" instead of "gourl-woocommerce.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 791 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin2,795 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PO File34435161,569
PHP14281901,147
Markdown254071
HTML1208

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.67
Average class complexity169.00
▷ Minimum class complexity169.00
▷ Maximum class complexity169.00
Average method complexity22.00
▷ Minimum method complexity1.00
▷ Maximum method complexity43.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods787.50%
▷ Protected methods00.00%
▷ Private methods112.50%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
27 PNG files occupy 1.02MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/crypto2.png5.72KB3.28KB▼ 42.73%
screenshot-8.png63.58KB61.31KB▼ 3.57%
images/crypto4.png7.30KB3.53KB▼ 51.65%
screenshot-7.png209.12KB205.76KB▼ 1.61%
screenshot-11.png34.85KB32.92KB▼ 5.55%