Benchmarks
Plugin footprint 23% 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
The following installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/templecoin-payments-for-woocommerce/bwwc-utils.php+854
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼1.39MB] [CPU: ▼53.43ms] Passed 4 tests
An overview of server-side resources used by Templecoin Payments for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.61 ▼0.85 | 6.73 ▼38.47 |
Dashboard /wp-admin | 2.63 ▼0.72 | 8.43 ▼52.59 |
Posts /wp-admin/edit.php | 2.63 ▼0.73 | 8.84 ▼36.51 |
Add New Post /wp-admin/post-new.php | 2.63 ▼3.26 | 10.82 ▼86.13 |
Media Library /wp-admin/upload.php | 2.63 ▼0.60 | 9.33 ▼24.19 |
Server storage [IO: ▲0.79MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 37 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_bwwc_btc_addresses |
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
BWWC-Settings |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Templecoin Payments for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲69 | 14.48 ▼0.17 | 1.62 ▼0.31 | 39.92 ▼5.36 |
Dashboard /wp-admin | 2,221 ▲30 | 5.83 ▼0.08 | 103.83 ▼4.97 | 75.57 ▲29.61 |
Posts /wp-admin/edit.php | 2,110 ▲21 | 1.97 ▼0.03 | 37.95 ▲3.76 | 36.06 ▼5.32 |
Add New Post /wp-admin/post-new.php | 1,530 ▲16 | 17.69 ▲0.16 | 689.15 ▲46.84 | 59.41 ▲0.21 |
Media Library /wp-admin/upload.php | 1,400 ▲12 | 4.23 ▼0.00 | 97.22 ▼2.53 | 63.10 ▲19.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/templecoin-payments-for-woocommerce/bwwc-utils.php+854
Array and string offset access syntax with curly braces is deprecated
- Zombie tables were found after uninstall: 1 table
- wp_bwwc_btc_addresses
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- BWWC-Settings
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Interface 'PointInterface' not found in wp-content/plugins/templecoin-payments-for-woocommerce/phpecc/classes/Point.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/templecoin-payments-for-woocommerce/bwwc-bitcoin-gateway.php:9
- > PHP Fatal error
Uncaught Error: Interface 'EcDHInterface' not found in wp-content/plugins/templecoin-payments-for-woocommerce/phpecc/classes/EcDH.php:34
- > PHP Fatal error
Uncaught Error: Interface 'CurveFpInterface' not found in wp-content/plugins/templecoin-payments-for-woocommerce/phpecc/classes/CurveFp.php:31
- > PHP Fatal error
Uncaught Error: Interface 'PrivateKeyInterface' not found in wp-content/plugins/templecoin-payments-for-woocommerce/phpecc/classes/PrivateKey.php:27
- > PHP Fatal error
Uncaught Error: Interface 'SignatureInterface' not found in wp-content/plugins/templecoin-payments-for-woocommerce/phpecc/classes/Signature.php:30
- > PHP Fatal error
Uncaught Error: Interface 'PublicKeyInterface' not found in wp-content/plugins/templecoin-payments-for-woocommerce/phpecc/classes/PublicKey.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (Checkout with option for templecoin payment.), #2 (Order received screen, including QR code of templecoin address and payment amount.), #3 (Templecoin Gateway settings screen.)
templecoin-payments-for-woocommerce/bitcoinway-woocommerce.php 77% from 13 tests
The main file in "Templecoin Payments for WooCommerce" v. 3.10.x... serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of "3.10.x...")
- Description: Please keep the plugin description shorter than 140 characters (currently 162 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("templecoin-payments-for-woocommerce.php" instead of "bitcoinway-woocommerce.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected4,481 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 1,299 | 1,370 | 4,481 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 40.39 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 233.00 |
Average method complexity | 6.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 6 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 169 | |
▷ Static methods | 100 | 59.17% |
▷ Public methods | 169 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 51 | |
▷ Named functions | 51 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
11 PNG files occupy 0.49MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 20.21KB | 8.04KB | ▼ 60.19% |
images/tpc_buyitnow_32x.png | 5.47KB | 1.83KB | ▼ 66.65% |
images/btc_buyitnow_32x.png | 9.37KB | 3.08KB | ▼ 67.14% |
screenshot-1.png | 25.90KB | 9.65KB | ▼ 62.75% |
images/templecoin_16x.png | 3.54KB | 1.05KB | ▼ 70.37% |