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
- > Warning in wp-content/plugins/bitcoin-payments-for-wp-woocommerce/bitcoinpayment.php+24
Use of undefined constant page - assumed 'page' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.90MB] [CPU: ▼52.95ms] Passed 4 tests
An overview of server-side resources used by Bitcoin Payments for WP WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.38 | 5.68 ▼38.92 |
Dashboard /wp-admin | 2.11 ▼1.20 | 8.41 ▼38.56 |
Posts /wp-admin/edit.php | 2.11 ▼1.25 | 6.74 ▼41.54 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 6.40 ▼92.79 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 6.68 ▼26.92 |
Receive Transaction /wp-admin/admin.php?page=receivetransaction | 2.11 | 8.54 |
Send Transaction /wp-admin/admin.php?page=sendtransaction | 2.11 | 7.07 |
Withdraw /wp-admin/admin.php?page=withdraw | 2.11 | 7.19 |
Bitcoin Order /wp-admin/admin.php?page=manageorder | 2.11 | 6.69 |
Bitcoin Payment /wp-admin/admin.php?page=managebitcoin | 2.11 | 7.71 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_theysaidso_widget |
btc_bitcoinaddress |
theysaidso_admin_options |
btc_apipath |
can_compress_scripts |
btc_username |
db_upgraded |
widget_recent-posts |
btc_password |
btc_domainname |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Bitcoin Payments for WP WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,970 ▲224 | 13.58 ▼0.80 | 7.91 ▲6.15 | 39.35 ▼5.95 |
Dashboard /wp-admin | 2,258 ▲73 | 4.92 ▼1.04 | 109.84 ▲11.09 | 78.21 ▲37.47 |
Posts /wp-admin/edit.php | 2,143 ▲54 | 2.19 ▲0.18 | 36.07 ▲2.29 | 33.06 ▼4.34 |
Add New Post /wp-admin/post-new.php | 1,559 ▲30 | 17.57 ▼0.77 | 722.50 ▲113.69 | 39.37 ▼23.52 |
Media Library /wp-admin/upload.php | 1,440 ▲55 | 4.25 ▲0.03 | 95.86 ▼0.09 | 69.65 ▲26.40 |
Receive Transaction /wp-admin/admin.php?page=receivetransaction | 891 | 2.07 | 24.37 | 25.28 |
Send Transaction /wp-admin/admin.php?page=sendtransaction | 888 | 2.04 | 26.16 | 24.73 |
Withdraw /wp-admin/admin.php?page=withdraw | 870 | 1.72 | 25.24 | 24.57 |
Bitcoin Order /wp-admin/admin.php?page=manageorder | 888 | 1.71 | 26.45 | 26.73 |
Bitcoin Payment /wp-admin/admin.php?page=managebitcoin | 867 | 1.70 | 25.33 | 25.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the mainfunction handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=managebitcoin
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the mainfunction handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=managebitcoin
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the function handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 44 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=managebitcoin
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=manageorder
- > Notice in wp-content/plugins/bitcoin-payments-for-wp-woocommerce/manageorder.php+63
Undefined index: s
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=manageorder
- > Notice in wp-content/plugins/bitcoin-payments-for-wp-woocommerce/manageorder.php+29
Trying to access array offset on value of type bool
- 21 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=managebitcoin
- > Notice in wp-content/plugins/bitcoin-payments-for-wp-woocommerce/adduserdetail.php+57
Trying to access array offset on value of type null
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=manageorder
- > Notice in wp-content/plugins/bitcoin-payments-for-wp-woocommerce/manageorder.php+48
Undefined variable: success
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=manageorder
- > Notice in wp-content/plugins/bitcoin-payments-for-wp-woocommerce/manageorder.php+53
Undefined variable: error
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=managebitcoin
- > Notice in wp-content/plugins/bitcoin-payments-for-wp-woocommerce/adduserdetail.php+57
Undefined variable: returndata
- > GET request to /wp-admin/admin.php?page=managebitcoin
- > Notice in wp-content/plugins/bitcoin-payments-for-wp-woocommerce/adduserdetail.php+80
Undefined index: apipath
- > GET request to /wp-admin/admin.php?page=managebitcoin
- > Notice in wp-content/plugins/bitcoin-payments-for-wp-woocommerce/adduserdetail.php+88
Undefined index: domainname
- > GET request to /wp-admin/admin.php?page=managebitcoin
- > Notice in wp-content/plugins/bitcoin-payments-for-wp-woocommerce/adduserdetail.php+96
Undefined index: username
- > GET request to /wp-admin/admin.php?page=managebitcoin
- > Notice in wp-content/plugins/bitcoin-payments-for-wp-woocommerce/adduserdetail.php+106
Undefined index: password
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 fix the following
- 12× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bitcoin-payments-for-wp-woocommerce/receivetransaction.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/bitcoin-payments-for-wp-woocommerce/bitcoinpayment.php:12
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/bitcoin-payments-for-wp-woocommerce/bitcoin_payment.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bitcoin-payments-for-wp-woocommerce/adduserdetail.php:68
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bitcoin-payments-for-wp-woocommerce/manageorder.php:17
- > PHP Notice
Undefined variable: returndata in wp-content/plugins/bitcoin-payments-for-wp-woocommerce/adduserdetail.php on line 57
- > PHP Fatal error
Uncaught Error: Class 'WC_Order' not found in wp-content/plugins/bitcoin-payments-for-wp-woocommerce/getpaymentbutton.php:10
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/bitcoin-payments-for-wp-woocommerce/adduserdetail.php on line 57
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bitcoin-payments-for-wp-woocommerce/sendtransaction.php:17
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/bitcoin-payments-for-wp-woocommerce/adduserdetail.php on line 53
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Donate link: Invalid URI found ("")
bitcoin-payments-for-wp-woocommerce/bitcoinpayment.php 92% from 13 tests
The main PHP script in "Bitcoin Payments for WP WooCommerce" version 1.0 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bitcoin-payments-for-wp-woocommerce.php" instead of "bitcoinpayment.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,038 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 264 | 292 | 979 |
JavaScript | 2 | 2 | 1 | 59 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 4.67 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 34 | 97.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.86% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 9 | 90.00% |
▷ Class constants | 1 | 10.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/bitcoin_wp.png | 3.59KB | 1.01KB | ▼ 71.76% |