Benchmarks
Plugin footprint 83% from 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.00MB] [CPU: ▼8.61ms] Passed 4 tests
An overview of server-side resources used by Bitfinex Pay
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 43.86 ▲3.06 |
Dashboard /wp-admin | 3.32 ▼0.03 | 43.78 ▼16.12 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 42.98 ▼1.87 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 82.09 ▼16.47 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.89 ▲0.04 |
Server storage [IO: ▲1.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 169 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Bitfinex Pay
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.69 ▲0.34 | 1.75 ▲0.10 | 44.44 ▲6.76 |
Dashboard /wp-admin | 2,195 ▲14 | 5.54 ▼0.19 | 80.23 ▼19.52 | 35.37 ▼9.75 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.98 ▲0.00 | 34.97 ▲0.98 | 29.02 ▼9.01 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 23.23 ▼0.02 | 681.34 ▲55.03 | 53.17 ▼7.60 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.19 ▼0.03 | 102.18 ▲3.93 | 45.45 ▲3.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
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
- 49× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > 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: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/bitfinex-pay/vendor/psr/http-message/src/RequestInterface.php:24
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/bitfinex-pay/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/bitfinex-pay/vendor/guzzlehttp/psr7/src/BufferStream.php:17
- > 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
- > 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 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/bitfinex-pay/vendor/guzzlehttp/promises/src/FulfilledPromise.php:15
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/bitfinex-pay/vendor/guzzlehttp/promises/src/AggregateException.php:10
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/bitfinex-pay/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:15
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/bitfinex-pay/vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
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: tether payments, ethereum payments, bitcoin payments, crypto payments, cryptocurrency pay...
bitfinex-pay/bfx-pay-woocommerce.php 85% from 13 tests
The main file in "Bitfinex Pay" v. 3.0.0 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:
- Main file name: The principal plugin file should be the same as the plugin slug ("bitfinex-pay.php" instead of "bfx-pay-woocommerce.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 295 characters long)
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 plugin15,724 lines of code in 153 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 120 | 2,171 | 5,639 | 10,643 |
Markdown | 18 | 1,452 | 0 | 3,975 |
JSON | 13 | 0 | 0 | 1,074 |
SVG | 2 | 0 | 0 | 32 |
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 code | 0.46 |
Average class complexity | 13.61 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 98.00 |
Average method complexity | 2.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 26 | |
Traits | 3 | |
Classes | 79 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 79 | 100.00% |
▷ Final classes | 35 | 44.30% |
Methods | 766 | |
▷ Static methods | 145 | 18.93% |
▷ Public methods | 641 | 83.68% |
▷ Protected methods | 10 | 1.31% |
▷ Private methods | 115 | 15.01% |
Functions | 114 | |
▷ Named functions | 22 | 19.30% |
▷ Anonymous functions | 92 | 80.70% |
Constants | 64 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 64 | 100.00% |
▷ Public constants | 53 | 82.81% |
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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
bfx-pay-wp-directory.png | 49.56KB | 14.86KB | ▼ 70.01% |
assets/img/bfx-pay-white-mail.png | 16.98KB | 1.86KB | ▼ 89.05% |