84% accept-bitcoin-payin-local-by-align-commerce-for-wp-ecommerce

Code Review | WP-eCommerce - Accept Bitcoin and Payin Local Gateway by Align Commerce

WordPress plugin WP-eCommerce - Accept Bitcoin and Payin Local Gateway by Align Commerce scored84%from 54 tests.

About plugin

  • Plugin page: accept-bitcoin-pa...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Oct 16, 2014
  • Latest release: Nov 26, 2014
  • Number of updates: 8
  • Update frequency: every 5.3 days
  • Top authors: aligncommerce (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,083 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼18.60ms] Passed 4 tests

A check of server-side resources used by WP-eCommerce - Accept Bitcoin and Payin Local Gateway by Align Commerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0044.63 ▲6.36
Dashboard /wp-admin3.31 ▲0.0055.15 ▼5.48
Posts /wp-admin/edit.php3.36 ▲0.0057.77 ▼0.48
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.49 ▼56.31
Media Library /wp-admin/upload.php3.23 ▲0.0032.85 ▼12.13

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by WP-eCommerce - Accept Bitcoin and Payin Local Gateway by Align Commerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.33 ▼1.122.21 ▲0.5752.29 ▲6.24
Dashboard /wp-admin2,203 ▲154.87 ▼0.94118.63 ▼0.3747.16 ▼0.20
Posts /wp-admin/edit.php2,092 ▼02.00 ▲0.0043.77 ▼20.1543.26 ▼9.84
Add New Post /wp-admin/post-new.php1,530 ▲12223.37 ▲5.83674.29 ▼40.5666.01 ▲1.95
Media Library /wp-admin/upload.php1,388 ▼04.25 ▲0.10112.29 ▼73.1447.59 ▼42.25

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_uninstall_hook() in wp-content/plugins/accept-bitcoin-payin-local-by-align-commerce-for-wp-ecommerce/alligncommerce_payment.php:20
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/accept-bitcoin-payin-local-by-align-commerce-for-wp-ecommerce/alligncommerce_payment.php on line 18
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/accept-bitcoin-payin-local-by-align-commerce-for-wp-ecommerce/alligncommerce_payment.php on line 18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/accept-bitcoin-payin-local-by-align-commerce-for-wp-ecommerce/alligncommerce_bank_transfer_pay.php:7
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/accept-bitcoin-payin-local-by-align-commerce-for-wp-ecommerce/alligncommerce_payment.php on line 18

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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
6 plugin tags: gateway, euro, woocommerce, payments, bitcoin...

accept-bitcoin-payin-local-by-align-commerce-for-wp-ecommerce/alligncommerce_payment.php 92% from 13 tests

The main file in "WP-eCommerce - Accept Bitcoin and Payin Local Gateway by Align Commerce" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("accept-bitcoin-payin-local-by-align-commerce-for-wp-ecommerce.php" instead of "alligncommerce_payment.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected882 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2137188882

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.24MB with 0.14MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png84.76KB35.14KB▼ 58.54%
screenshot-1.png41.44KB23.29KB▼ 43.80%
screenshot-2.png122.81KB42.28KB▼ 65.57%