10% goalcoin-payments-for-woocommerce

Code Review | Goalcoin Payments for WooCommerce

WordPress plugin Goalcoin Payments for WooCommerce scored 10% from 54 tests.

About plugin

  • Plugin page: goalcoin-payments...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9
  • WordPress version: 6.3.1
  • First release: Jun 12, 2014
  • Latest release: Jun 12, 2014
  • Number of updates: 10
  • Update frequency: N/A
  • Top authors: Goalcoin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,122 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/goalcoin-payments-for-woocommerce/wcgoal-utils.php+744
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▼1.65MB] [CPU: ▼49.04ms] Passed 4 tests

Analyzing server-side resources used by Goalcoin Payments for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.34 ▼1.125.70 ▼33.78
Dashboard /wp-admin2.36 ▼0.957.47 ▼42.41
Posts /wp-admin/edit.php2.36 ▼1.006.88 ▼36.74
Add New Post /wp-admin/post-new.php2.36 ▼3.536.75 ▼83.24
Media Library /wp-admin/upload.php2.36 ▼0.877.75 ▼29.62

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: 2 new tables, 7 new options
New tables
wp_wcgoal_goal_addresses
wp_wcgoal_goal_uuid
New WordPress options
can_compress_scripts
WCGOAL-Settings
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Goalcoin Payments for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲10514.77 ▲0.161.94 ▲0.0640.69 ▲0.34
Dashboard /wp-admin2,221 ▲304.92 ▼0.9997.20 ▼2.2296.22 ▲53.33
Posts /wp-admin/edit.php2,101 ▲122.03 ▼0.0133.60 ▼0.3034.50 ▼0.16
Add New Post /wp-admin/post-new.php1,535 ▲1423.11 ▼0.04768.82 ▲110.7047.81 ▼6.22
Media Library /wp-admin/upload.php1,403 ▲184.18 ▼0.2295.38 ▼3.7867.41 ▲18.85

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/goalcoin-payments-for-woocommerce/wcgoal-utils.php+744
    Array and string offset access syntax with curly braces is deprecated
  • Zombie tables were found after uninstall: 2 tables
    • wp_wcgoal_goal_uuid
    • wp_wcgoal_goal_addresses
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • widget_theysaidso_widget
    • WCGOAL-Settings
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/goalcoin-payments-for-woocommerce/wcgoal-goalcoin-gateway.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: bitcoin plugin, goalcoins, plugin, bitcoins, accept goalcoin...

goalcoin-payments-for-woocommerce/goalcoingtw-woocommerce.php 85% from 13 tests

The entry point to "Goalcoin Payments for WooCommerce" version 1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 159 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("goalcoin-payments-for-woocommerce.php" instead of "goalcoingtw-woocommerce.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 plugin2,073 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP84876332,073

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity29.00
▷ Minimum class complexity11.00
▷ Maximum class complexity47.00
Average method complexity6.09
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions53
▷ Named functions53100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-3.png16.24KB11.43KB▼ 29.58%
images/goal_buyitnow_32x.png8.58KB2.81KB▼ 67.30%
images/goalcoin_16x.png3.62KB0.94KB▼ 73.91%
images/icon.png0.68KB0.83KB0.00%
assets/screenshot-1.png11.60KB5.52KB▼ 52.43%