84% accept-bitcoin-payin-local-by-align-commerce-for-woocommerce

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

WordPress plugin Woocommerce - 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: 18
  • Update frequency: every 2.3 days
  • Top authors: aligncommerce (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,136 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.74ms] Passed 4 tests

This is a short check of server-side resources used by Woocommerce - Accept Bitcoin and Payin Local Gateway by Align Commerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0246.32 ▲4.97
Dashboard /wp-admin3.33 ▼0.0252.46 ▼20.01
Posts /wp-admin/edit.php3.38 ▲0.0251.43 ▲0.74
Add New Post /wp-admin/post-new.php5.91 ▲0.0288.39 ▼17.55
Media Library /wp-admin/upload.php3.25 ▲0.0237.92 ▲1.85

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Woocommerce - Accept Bitcoin and Payin Local Gateway by Align Commerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.26 ▼0.491.92 ▼0.2043.08 ▲2.29
Dashboard /wp-admin2,201 ▲245.66 ▲0.0891.33 ▼5.0941.52 ▼4.91
Posts /wp-admin/edit.php2,103 ▼02.05 ▲0.0035.41 ▼4.0736.14 ▼1.60
Add New Post /wp-admin/post-new.php1,556 ▲1123.17 ▼0.18590.91 ▼82.8556.05 ▼7.16
Media Library /wp-admin/upload.php1,409 ▲94.21 ▼0.0097.21 ▼10.5343.85 ▼1.05

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/accept-bitcoin-payin-local-by-align-commerce-for-woocommerce/woocommerce-aligncommerce-payment.php on line 12
    • > 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-woocommerce/woocommerce-aligncommerce-payment.php on line 12
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/accept-bitcoin-payin-local-by-align-commerce-for-woocommerce/class-wc-banktransfer-pay.php:7
    • > PHP Warning
      require_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-woocommerce/woocommerce-aligncommerce-payment.php on line 12

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 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: euro, bitcoin, payments, woocommerce, gateway...

accept-bitcoin-payin-local-by-align-commerce-for-woocommerce/woocommerce-aligncommerce-payment.php 92% from 13 tests

Analyzing the main PHP file in "Woocommerce - Accept Bitcoin and Payin Local Gateway by Align Commerce" version 1.0.0
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("accept-bitcoin-payin-local-by-align-commerce-for-woocommerce.php" instead of "woocommerce-aligncommerce-payment.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected840 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3195258840

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity30.00
▷ Minimum class complexity27.00
▷ Maximum class complexity33.00
Average method complexity5.14
▷ Minimum method complexity2.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
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-1.png41.44KB23.29KB▼ 43.80%
screenshot-2.png122.81KB42.28KB▼ 65.57%
screenshot-3.png84.76KB35.14KB▼ 58.54%