Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼295.90ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce BitTube payment gateway
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.05 | 58.20 ▲6.92 |
Dashboard /wp-admin | 3.46 ▲0.04 | 34.38 ▲0.81 |
Posts /wp-admin/edit.php | 3.69 ▲0.04 | 37.36 ▲1.61 |
Add New Post /wp-admin/post-new.php | 6.93 ▼0.05 | 93.65 ▼1,184.26 |
Media Library /wp-admin/upload.php | 3.34 ▲0.04 | 23.27 ▼1.75 |
Server storage [IO: ▲0.74MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 41 new files
Database: 3 new tables, no new options
New tables |
---|
wp_bittube_gateway_quotes_txids |
wp_bittube_gateway_live_rates |
wp_bittube_gateway_quotes |
Browser metrics Passed 4 tests
An overview of browser requirements for WooCommerce BitTube payment gateway
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,785 ▲32 | 15.93 ▲0.28 | 6.53 ▼0.06 | 2.86 ▲0.19 |
Dashboard /wp-admin | 2,892 ▲31 | 6.01 ▼0.09 | 117.11 ▼21.56 | 153.52 ▼10.15 |
Posts /wp-admin/edit.php | 2,685 ▼0 | 3.23 ▼0.01 | 63.33 ▼1.22 | 138.16 ▼8.20 |
Add New Post /wp-admin/post-new.php | 1,661 ▲6 | 16.52 ▼3.83 | 403.53 ▼58.97 | 159.09 ▲0.74 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.50 ▼0.01 | 136.24 ▼9.95 | 184.55 ▼7.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie tables detected upon uninstall: 3 tables
- wp_bittube_gateway_quotes_txids
- wp_bittube_gateway_quotes
- wp_bittube_gateway_live_rates
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/bittube-woocommerce-gateway/templates/bittube-gateway/admin/settings-page.php
- > /wp-content/plugins/bittube-woocommerce-gateway/templates/bittube-gateway/customer/order-email-error-block.php
- > /wp-content/plugins/bittube-woocommerce-gateway/templates/bittube-gateway/customer/order-error-page.php
- 37× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/bittube-woocommerce-gateway/templates/bittube-gateway/admin/settings-page.php on line 1
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/bittube-woocommerce-gateway/include/admin/class-bittube-admin-payments-list.php on line 9
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/bittube-woocommerce-gateway/templates/bittube-gateway/customer/order-email-block.php on line 9
- > PHP Notice
Undefined variable: ajax_url in wp-content/plugins/bittube-woocommerce-gateway/templates/bittube-gateway/customer/order-page.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'BitTube_Gateway' not found in wp-content/plugins/bittube-woocommerce-gateway/templates/bittube-gateway/admin/order-history-page.php:20
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/bittube-woocommerce-gateway/templates/bittube-gateway/admin/order-history-page.php on line 8
- > PHP Notice
Undefined variable: details in wp-content/plugins/bittube-woocommerce-gateway/templates/bittube-gateway/customer/order-email-block.php on line 1
- > PHP Notice
Undefined variable: method_title in wp-content/plugins/bittube-woocommerce-gateway/templates/bittube-gateway/customer/order-email-error-block.php on line 2
- > PHP Notice
Undefined variable: details in wp-content/plugins/bittube-woocommerce-gateway/templates/bittube-gateway/customer/order-email-block.php on line 9
- > PHP Notice
Undefined variable: method_title in wp-content/plugins/bittube-woocommerce-gateway/templates/bittube-gateway/customer/order-page2.php on line 2
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: payment, cryptocurrency, accept tube, bittube, woocommerce...
bittube-woocommerce-gateway/bittube-woocommerce-gateway.php Passed 13 tests
"WooCommerce BitTube payment gateway" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
47 characters long description:
Extends WooCommerce by adding a BitTube Gateway
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin4,143 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 503 | 400 | 2,764 |
JavaScript | 5 | 224 | 316 | 1,191 |
CSS | 1 | 11 | 0 | 111 |
Markdown | 1 | 25 | 0 | 64 |
HTML | 1 | 0 | 0 | 13 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 34.44 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 93.00 |
Average method complexity | 3.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 131 | |
▷ Static methods | 26 | 19.85% |
▷ Public methods | 104 | 79.39% |
▷ Protected methods | 16 | 12.21% |
▷ Private methods | 11 | 8.40% |
Functions | 22 | |
▷ Named functions | 21 | 95.45% |
▷ Anonymous functions | 1 | 4.55% |
Constants | 23 | |
▷ Global constants | 12 | 52.17% |
▷ Class constants | 11 | 47.83% |
▷ Public constants | 11 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.49MB with 0.38MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 40.35KB | 19.74KB | ▼ 51.08% |
assets/icon-256x256.fw.png | 65.08KB | 4.12KB | ▼ 93.67% |
assets/icon-128x128.png | 65.84KB | 4.88KB | ▼ 92.58% |
assets/icon-128x128.fw.png | 65.84KB | 4.88KB | ▼ 92.58% |
templates/bittube-gateway/customer/bittube-accepted-here.png | 3.97KB | 1.88KB | ▼ 52.67% |