Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- The plugin cannot be installed
- > User error in wp-content/plugins/blockonomics-bitcoin-payments/blockonomics-woocommerce.php+619
Wordpress Bitcoin Payments - Blockonomics requires WooCommerce plugin to be installed and active.
Server metrics [RAM: ▲0.00MB] [CPU: ▼9.01ms] Passed 4 tests
This is a short check of server-side resources used by Wordpress Bitcoin Payments - Blockonomics
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 43.36 ▼11.22 |
Dashboard /wp-admin | 3.30 ▲0.00 | 48.18 ▼5.84 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.88 ▼1.55 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.00 ▼17.44 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.19 ▼0.67 |
Server storage [IO: ▲0.63MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 32 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_blockonomics_payments |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
blockonomics_db_version |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Wordpress Bitcoin Payments - Blockonomics
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.35 ▲0.03 | 1.80 ▼0.23 | 44.67 ▼9.74 |
Dashboard /wp-admin | 2,198 ▲24 | 5.61 ▼0.02 | 89.56 ▼11.62 | 39.86 ▼3.73 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.94 ▼0.04 | 39.49 ▼1.73 | 37.15 ▲2.28 |
Add New Post /wp-admin/post-new.php | 1,526 ▼1 | 23.06 ▼0.12 | 702.73 ▲8.69 | 57.00 ▼9.28 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.21 ▲0.01 | 98.96 ▲0.46 | 40.27 ▼2.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The plugin did not uninstall gracefully
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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 fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/blockonomics-bitcoin-payments/templates/blockonomics_no_crypto_selected.php
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/blockonomics-bitcoin-payments/templates/blockonomics_nojs_checkout.php:27
- > PHP Fatal error
Uncaught Error: Class 'Blockonomics' not found in wp-content/plugins/blockonomics-bitcoin-payments/templates/blockonomics_crypto_options.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/blockonomics-bitcoin-payments/templates/blockonomics_nojs_payment_confirmation.php:4
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/blockonomics-bitcoin-payments/php/WC_Gateway_Blockonomics.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/blockonomics-bitcoin-payments/templates/blockonomics_error.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/blockonomics-bitcoin-payments/templates/blockonomics_nojs_crypto_options.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/blockonomics-bitcoin-payments/templates/blockonomics_checkout.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% 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
5 plugin tags: accept bitcoin, bitcoin wordpress plugin, bitcoin woocommerce, bitcoin, bitcoin payments
blockonomics-bitcoin-payments/blockonomics-woocommerce.php 92% from 13 tests
"Wordpress Bitcoin Payments - Blockonomics" version 3.6.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("blockonomics-bitcoin-payments.php" instead of "blockonomics-woocommerce.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected6,544 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 1,002 | 832 | 5,241 |
JavaScript | 10 | 130 | 377 | 813 |
CSS | 2 | 121 | 12 | 490 |
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 code | 0.32 |
Average class complexity | 36.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 186.00 |
Average method complexity | 3.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 238 | |
▷ Static methods | 69 | 28.99% |
▷ Public methods | 208 | 87.39% |
▷ Protected methods | 23 | 9.66% |
▷ Private methods | 7 | 2.94% |
Functions | 35 | |
▷ Named functions | 33 | 94.29% |
▷ Anonymous functions | 2 | 5.71% |
Constants | 45 | |
▷ Global constants | 33 | 73.33% |
▷ Class constants | 12 | 26.67% |
▷ Public constants | 12 | 100.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
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
blockonomics.png | 6.34KB | 3.88KB | ▼ 38.87% |
img/bitcoin-icon.png | 2.11KB | 1.30KB | ▼ 38.43% |
img/bch-icon.png | 1.46KB | 1.28KB | ▼ 12.40% |
img/bitcoin-bch-icon.png | 1.86KB | 1.58KB | ▼ 14.87% |