94% accept-bitcoin-payments-on-woocommerce-thebigcoin

Code Review | Accept CryptoCurrency Payments on WooCommerce – CryptoCurrency Gateway Plugin from TheBigCoin

WordPress plugin Accept CryptoCurrency Payments on WooCommerce – CryptoCurrency Gateway Plugin from TheBigCoin scored 94% from 54 tests.

About plugin

  • Plugin page: accept-bitcoin-pa...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.6
  • WordPress version: 5.9.2
  • First release: Nov 16, 2017
  • Latest release: Jun 5, 2018
  • Number of updates: 52
  • Update frequency: every 3.9 days
  • Top authors: thebigcoin (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

20+ active / 4,275 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.02MB] [CPU: ▼304.51ms] Passed 4 tests

Server-side resources used by Accept CryptoCurrency Payments on WooCommerce – CryptoCurrency Gateway Plugin from TheBigCoin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0155.67 ▲3.13
Dashboard /wp-admin3.41 ▲0.0132.66 ▲1.10
Posts /wp-admin/edit.php3.64 ▼0.0038.21 ▼4.73
Add New Post /wp-admin/post-new.php6.91 ▼0.0992.10 ▼1,214.05
Media Library /wp-admin/upload.php3.30 ▲0.0023.67 ▼0.37

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Accept CryptoCurrency Payments on WooCommerce – CryptoCurrency Gateway Plugin from TheBigCoin: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲4116.02 ▲0.326.22 ▼0.342.86 ▲0.47
Dashboard /wp-admin2,888 ▲346.12 ▼0.07113.88 ▼15.45154.17 ▼5.13
Posts /wp-admin/edit.php2,694 ▼03.23 ▲0.0064.88 ▲2.20147.41 ▲7.19
Add New Post /wp-admin/post-new.php1,661 ▼9116.38 ▼4.53410.64 ▼28.49156.38 ▼4.25
Media Library /wp-admin/upload.php1,698 ▼35.48 ▼0.04139.05 ▲4.22189.05 ▲7.95

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 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 50% from 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
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/accept-bitcoin-payments-on-woocommerce-thebigcoin/thebigcoin.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed: Please take inspiration from this readme.txt

accept-bitcoin-payments-on-woocommerce-thebigcoin/thebigcoin.php 92% from 13 tests

The main file in "Accept CryptoCurrency Payments on WooCommerce – CryptoCurrency Gateway Plugin from TheBigCoin" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("accept-bitcoin-payments-on-woocommerce-thebigcoin.php" instead of "thebigcoin.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
Success! There were no dangerous files found in this plugin581 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP37911581

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity45.00
▷ Minimum class complexity20.00
▷ Maximum class complexity70.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods22
▷ Static methods00.00%
▷ Public methods1568.18%
▷ Protected methods313.64%
▷ Private methods418.18%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants133.33%
▷ Class constants266.67%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/thebigcoin-button.png3.48KB1.83KB▼ 47.52%