Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲2.98MB] [CPU: ▲14.39ms] Passed 4 tests
A check of server-side resources used by BTCPayWall
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.20 ▲2.74 | 57.94 ▲18.62 |
Dashboard /wp-admin | 6.37 ▲3.07 | 74.55 ▲22.45 |
Posts /wp-admin/edit.php | 6.42 ▲3.07 | 67.25 ▲16.26 |
Add New Post /wp-admin/post-new.php | 9.03 ▲3.15 | 104.43 ▲0.24 |
Media Library /wp-admin/upload.php | 6.27 ▲3.04 | 61.70 ▲27.00 |
Download Store /wp-admin/admin.php?page=btcpw_download_store | 6.29 | 56.47 |
Pay-per -> All templates /wp-admin/admin.php?page=btcpw_pay_per_shortcode_list | 6.28 | 58.76 |
Download Store -> All Products /wp-admin/edit.php?post_type=digital_download | 6.34 | 61.24 |
Pay-per -> Add template /wp-admin/admin.php?page=btcpw_pay_per_shortcode_generator | 6.27 | 55.99 |
Settings /wp-admin/admin.php?page=btcpw_general_settings | 6.30 | 55.29 |
Donation -> All Forms /wp-admin/edit.php?post_type=btcpw_donation | 6.34 | 52.10 |
Donation -> Add Form /wp-admin/post-new.php?post_type=btcpw_donation | 6.40 | 170.87 |
Pay-per-shortcode /wp-admin/admin.php?page=btcpw_pay_per_shortcode | 6.41 | 57.89 |
Download Store -> Add Product /wp-admin/post-new.php?post_type=digital_download | 6.43 | 74.03 |
Payments /wp-admin/admin.php?page=btcpw_payments | 6.30 | 59.76 |
Server storage [IO: ▲3.99MB] [DB: ▲0.09MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 161 new files
Database: 6 new tables, 11 new options
New tables |
---|
wp_btcpaywall_tippers |
wp_btcpaywall_pay_per_shortcodes |
wp_btcpaywall_forms |
wp_btcpaywall_payments |
wp_btcpaywall_tippings |
wp_btcpaywall_customers |
New WordPress options |
---|
widget_tipping-box |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
btcpw_success_page |
db_upgraded |
widget_recent-posts |
widget_tipping-banner-high |
widget_tipping-banner-wide |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
Checking browser requirements for BTCPayWall
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,170 ▲384 | 15.64 ▲1.23 | 12.88 ▲10.89 | 43.60 ▲4.24 |
Dashboard /wp-admin | 2,419 ▲245 | 6.43 ▲0.76 | 113.05 ▲26.04 | 47.56 ▲1.58 |
Posts /wp-admin/edit.php | 2,347 ▲247 | 3.74 ▲1.73 | 55.89 ▲18.45 | 31.98 ▼10.62 |
Add New Post /wp-admin/post-new.php | 6,440 ▲4,906 | 29.24 ▲6.28 | 916.89 ▲252.20 | 37.62 ▼12.83 |
Media Library /wp-admin/upload.php | 1,484 ▲81 | 4.35 ▲0.01 | 84.03 ▼19.27 | 48.19 ▲4.21 |
Download Store /wp-admin/admin.php?page=btcpw_download_store | 1,432 | 3.49 | 58.02 | 45.46 |
Pay-per -> All templates /wp-admin/admin.php?page=btcpw_pay_per_shortcode_list | 1,234 | 3.36 | 41.02 | 27.62 |
Download Store -> All Products /wp-admin/edit.php?post_type=digital_download | 1,355 | 3.79 | 47.18 | 30.40 |
Pay-per -> Add template /wp-admin/admin.php?page=btcpw_pay_per_shortcode_generator | 1,097 | 3.32 | 39.21 | 27.12 |
Settings /wp-admin/admin.php?page=btcpw_general_settings | 1,519 | 3.40 | 42.52 | 31.45 |
Donation -> All Forms /wp-admin/edit.php?post_type=btcpw_donation | 1,321 | 3.56 | 47.38 | 30.17 |
Donation -> Add Form /wp-admin/post-new.php?post_type=btcpw_donation | 3,819 | 5.76 | 137.66 | 107.05 |
Pay-per-shortcode /wp-admin/admin.php?page=btcpw_pay_per_shortcode | 2,498 | 5.12 | 93.06 | 37.08 |
Download Store -> Add Product /wp-admin/post-new.php?post_type=digital_download | 3,194 | 9.36 | 204.35 | 87.31 |
Payments /wp-admin/admin.php?page=btcpw_payments | 1,195 | 3.33 | 41.00 | 27.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.09MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie tables detected upon uninstall: 6 tables
- wp_btcpaywall_tippers
- wp_btcpaywall_customers
- wp_btcpaywall_payments
- wp_btcpaywall_forms
- wp_btcpaywall_pay_per_shortcodes
- wp_btcpaywall_tippings
- Zombie WordPress options detected upon uninstall: 11 options
- can_compress_scripts
- btcpw_checkout_page
- widget_tipping-banner-wide
- widget_recent-comments
- widget_tipping-box
- db_upgraded
- widget_tipping-banner-high
- theysaidso_admin_options
- btcpw_success_page
- widget_theysaidso_widget
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'BTCPayWall_Payment' not found in wp-content/plugins/btcpaywall/templates/emails/email-customer.php:13
- > PHP Fatal error
Uncaught Error: Class 'BTCPayWall_Payment' not found in wp-content/plugins/btcpaywall/templates/emails/email-notify-admin.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
btcpaywall/btcpaywall.php 85% from 13 tests
"BTCPayWall" version 1.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Domain Path: The domain path should use only dashes and lowercase characters ("languages")
- Domain Path: Please prefix the domain path with a forward slash character ("/languages")
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
Success! There were no dangerous files found in this plugin78,762 lines of code in 148 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 35,349 |
PHP | 103 | 2,636 | 2,416 | 23,026 |
JavaScript | 34 | 296 | 90 | 17,372 |
CSS | 2 | 369 | 41 | 2,176 |
SVG | 5 | 0 | 0 | 658 |
Bourne Shell | 1 | 23 | 11 | 147 |
Markdown | 1 | 18 | 0 | 34 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 19.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 152.00 |
Average method complexity | 3.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 75.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 44 | |
▷ Abstract classes | 2 | 4.55% |
▷ Concrete classes | 42 | 95.45% |
▷ Final classes | 1 | 2.38% |
Methods | 345 | |
▷ Static methods | 10 | 2.90% |
▷ Public methods | 284 | 82.32% |
▷ Protected methods | 43 | 12.46% |
▷ Private methods | 18 | 5.22% |
Functions | 158 | |
▷ Named functions | 153 | 96.84% |
▷ Anonymous functions | 5 | 3.16% |
Constants | 7 | |
▷ Global constants | 4 | 57.14% |
▷ Class constants | 3 | 42.86% |
▷ Public constants | 3 | 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
7 PNG files occupy 0.22MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/dist/img/preview.png | 20.39KB | 11.72KB | ▼ 42.50% |
assets/dist/img/Tipping-banner-wide.png | 40.15KB | 16.77KB | ▼ 58.22% |
assets/src/img/BTCPayWall_logo.png | 25.32KB | 9.41KB | ▼ 62.83% |
assets/dist/img/BTCPayWall_logo.png | 25.32KB | 9.41KB | ▼ 62.83% |
assets/dist/img/Tipping-banner-high.png | 21.00KB | 7.02KB | ▼ 66.56% |