84% bitpace-crypto-payment-gateway

Code Review | Bitpace Bitcoin and Crypto Payment Gateway for WooCommerce

WordPress plugin Bitpace Bitcoin and Crypto Payment Gateway for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: bitpace-crypto-pa...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.0
  • WordPress version: 6.3.1
  • First release: May 21, 2021
  • Latest release: Jul 6, 2022
  • Number of updates: 9
  • Update frequency: every 50.6 days
  • Top authors: bitpace (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,440 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼1.07ms] Passed 4 tests

This is a short check of server-side resources used by Bitpace Bitcoin and Crypto Payment Gateway for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0343.20 ▲5.97
Dashboard /wp-admin3.34 ▲0.0347.58 ▲1.42
Posts /wp-admin/edit.php3.39 ▲0.0342.26 ▼1.29
Add New Post /wp-admin/post-new.php5.92 ▲0.0381.05 ▼2.04
Media Library /wp-admin/upload.php3.26 ▲0.0332.35 ▼2.38

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Bitpace Bitcoin and Crypto Payment Gateway for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.58 ▲0.211.88 ▲0.0743.90 ▼1.17
Dashboard /wp-admin2,195 ▲155.62 ▼0.0689.55 ▼11.9843.42 ▼0.78
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0133.29 ▼3.5935.37 ▲0.89
Add New Post /wp-admin/post-new.php1,526 ▼223.58 ▲0.68660.05 ▼37.6752.55 ▼1.05
Media Library /wp-admin/upload.php1,397 ▼64.21 ▲0.01107.08 ▲6.6245.88 ▲1.39

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/bitpace-crypto-payment-gateway/bitpace-payment-woocommerce.php:15

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, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
Please take inspiration from this readme.txt

bitpace-crypto-payment-gateway/bitpace-payment-woocommerce.php 92% from 13 tests

The main PHP file in "Bitpace Bitcoin and Crypto Payment Gateway for WooCommerce" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this 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 ("bitpace-crypto-payment-gateway.php" instead of "bitpace-payment-woocommerce.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
Everything looks great! No dangerous files found in this plugin292 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP26111292

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity8.50
▷ Minimum class complexity6.00
▷ Maximum class complexity11.00
Average method complexity2.15
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods1292.31%
▷ Protected methods00.00%
▷ Private methods17.69%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/icon.png5.84KB2.07KB▼ 64.59%