84% woo-instant-bitcoin

Code Review | WooCommerce Cryptoo.me Instant Bitcoin payment gateway

WordPress plugin WooCommerce Cryptoo.me Instant Bitcoin payment gateway scored 84% from 54 tests.

About plugin

  • Plugin page: woo-instant-bitcoin
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 1.6-5.5
  • WordPress version: 6.3.1
  • First release: Dec 5, 2018
  • Latest release: Sep 9, 2020
  • Number of updates: 28
  • Update frequency: every 23.0 days
  • Top authors: trof (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 3,424 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼3.51ms] Passed 4 tests

An overview of server-side resources used by WooCommerce Cryptoo.me Instant Bitcoin payment gateway
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0640.15 ▼1.95
Dashboard /wp-admin3.37 ▲0.0650.05 ▼0.99
Posts /wp-admin/edit.php3.42 ▲0.0651.42 ▼2.42
Add New Post /wp-admin/post-new.php5.95 ▲0.0692.29 ▼6.98
Media Library /wp-admin/upload.php3.29 ▲0.0635.63 ▼2.69

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WooCommerce Cryptoo.me Instant Bitcoin payment gateway
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.69 ▼0.711.82 ▼0.1141.88 ▲2.78
Dashboard /wp-admin2,206 ▲155.83 ▼0.07109.52 ▲4.3443.67 ▲1.05
Posts /wp-admin/edit.php2,092 ▲32.04 ▲0.0542.17 ▲0.0838.65 ▲3.30
Add New Post /wp-admin/post-new.php1,514 ▼2817.67 ▼0.67681.65 ▲60.0355.92 ▲4.91
Media Library /wp-admin/upload.php1,388 ▲34.22 ▲0.0198.67 ▼5.5143.82 ▼1.03

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

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
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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-instant-bitcoin/woo-instant-bitcoin.php:40

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 Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: satoshi, woocommerce, cryptoo, payment, gateway...

woo-instant-bitcoin/woo-instant-bitcoin.php 85% from 13 tests

The main PHP script in "WooCommerce Cryptoo.me Instant Bitcoin payment gateway" version 1.1.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Requires at least: The required version number did not match the one declared in readme.txt ("3.3" instead of "1.6")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin364 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP183119245
PO File13737119

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/icons/cryptoome.png3.09KB1.83KB▼ 40.63%
assets/images/icons/icon-256x256.png9.56KB4.19KB▼ 56.15%