94% bitfinex-pay

Code Review | Bitfinex Pay

WordPress plugin Bitfinex Pay scored 94% from 54 tests.

About plugin

  • Plugin page: bitfinex-pay
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 5.8.1
  • First release: Oct 4, 2021
  • Latest release: Oct 21, 2021
  • Number of updates: 8
  • Update frequency: every 2.5 days
  • Top authors: bitfinex (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 107 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Bitfinex Pay
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1237.08 ▲16.51
Dashboard /wp-admin3.07 ▲0.0149.13 ▼6.82
Posts /wp-admin/edit.php3.12 ▲0.0144.85 ▼1.10
Add New Post /wp-admin/post-new.php5.42 ▼0.0191.15 ▼580.59
Media Library /wp-admin/upload.php3.01 ▲0.0135.24 ▲2.78

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 152 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Bitfinex Pay
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.73 ▲0.3311.30 ▼0.4049.42 ▲2.17
Dashboard /wp-admin2,970 ▲395.89 ▼0.18160.02 ▲6.40113.31 ▲2.93
Posts /wp-admin/edit.php2,739 ▼02.71 ▼0.0273.67 ▲1.52121.40 ▲31.49
Add New Post /wp-admin/post-new.php1,594 ▼8918.72 ▼0.04431.62 ▲9.95109.32 ▼0.96
Media Library /wp-admin/upload.php1,810 ▲35.04 ▼0.00154.32 ▼18.16117.84 ▼9.61

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 46× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/bitfinex-pay/vendor/guzzlehttp/promises/src/EachPromise.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/bitfinex-pay/vendor/guzzlehttp/psr7/src/FnStream.php:15
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Client\\ClientExceptionInterface' not found in wp-content/plugins/bitfinex-pay/vendor/psr/http-client/src/RequestExceptionInterface.php:14
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/bitfinex-pay/vendor/guzzlehttp/psr7/src/AppendStream.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/bitfinex-pay/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:13
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/bitfinex-pay/vendor/guzzlehttp/psr7/src/DroppingStream.php:13
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/bitfinex-pay/vendor/guzzlehttp/psr7/src/CachingStream.php:13
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/bitfinex-pay/vendor/guzzlehttp/psr7/src/Stream.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/bitfinex-pay/vendor/psr/http-message/src/ResponseInterface.php:20
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/bitfinex-pay/vendor/guzzlehttp/psr7/src/MultipartStream.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: bitcoin payments, cryptocurrency pay, pay with bitcoin, crypto payments, tether token...

bitfinex-pay/bfx-pay-woocommerce.php 85% from 13 tests

The main file in "Bitfinex Pay" v. 1.0.3 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:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 295 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("bitfinex-pay.php" instead of "bfx-pay-woocommerce.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin13,578 lines of code in 139 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity14.11
▷ Minimum class complexity1.00
▷ Maximum class complexity84.00
Average method complexity2.70
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes74100.00%
▷ Final classes1925.68%
▷ Static methods13918.76%
▷ Public methods62183.81%
▷ Protected methods60.81%
▷ Private methods11415.38%
▷ Named functions6040.00%
▷ Anonymous functions9060.00%
▷ Global constants00.00%
▷ Class constants55100.00%
▷ Public constants55100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.06MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/bfx-pay-white-mail.png16.98KB1.86KB▼ 89.05%
bfx-pay-wp-directory.png49.56KB14.86KB▼ 70.01%