Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.54MB] [CPU: ▼3.16ms] Passed 4 tests
Server-side resources used by Coinbase Commerce - Crypto Gateway for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.05 ▲0.59 | 38.79 ▼0.68 |
Dashboard /wp-admin | 3.89 ▲0.59 | 48.92 ▲1.16 |
Posts /wp-admin/edit.php | 3.94 ▲0.59 | 47.35 ▲4.21 |
Add New Post /wp-admin/post-new.php | 6.44 ▲0.55 | 84.13 ▼16.26 |
Media Library /wp-admin/upload.php | 3.66 ▲0.43 | 40.13 ▲3.13 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 4.00 | 37.60 |
Coinbase Commerce For WooCommerce /wp-admin/admin.php?page=coinbase-commerce-for-woocommerce | 3.89 | 41.53 |
Server storage [IO: ▲4.37MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 200 new files
Database: no new tables, 9 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
fs_active_plugins |
fs_accounts |
widget_theysaidso_widget |
widget_recent-comments |
fs_debug_mode |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Coinbase Commerce - Crypto Gateway for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲98 | 13.27 ▼0.95 | 1.52 ▼0.10 | 31.88 ▼13.64 |
Dashboard /wp-admin | 2,239 ▲51 | 5.80 ▲0.96 | 95.68 ▼3.80 | 38.13 ▼3.92 |
Posts /wp-admin/edit.php | 2,122 ▲30 | 2.03 ▲0.04 | 35.09 ▼1.06 | 36.37 ▲4.02 |
Add New Post /wp-admin/post-new.php | 1,534 ▼0 | 23.57 ▲0.51 | 659.85 ▲10.50 | 54.52 ▼4.10 |
Media Library /wp-admin/upload.php | 1,424 ▲36 | 4.24 ▲0.11 | 94.94 ▼6.95 | 44.85 ▼1.85 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,071 | 1.77 | 24.17 | 26.83 |
Coinbase Commerce For WooCommerce /wp-admin/admin.php?page=coinbase-commerce-for-woocommerce | 982 | 1.79 | 27.45 | 56.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- fs_accounts
- db_upgraded
- widget_theysaidso_widget
- fs_active_plugins
- fs_debug_mode
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/commerce-coinbase-for-woocommerce/includes/webhook.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: You are using too many tags: 12 tag instead of maximum 10
- Screenshots: No descriptions were found for these screenshots #1, #10, #2, #3, #4, #5, #6, #7, #8, #9 in commerce-coinbase-for-woocommerce/assets to your readme.txt
commerce-coinbase-for-woocommerce/coinbase-gateway-for-woocommerce.php 92% from 13 tests
The main PHP script in "Coinbase Commerce - Crypto Gateway for WooCommerce" version 1.6.0 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("commerce-coinbase-for-woocommerce.php" instead of "coinbase-gateway-for-woocommerce.php")
Code Analysis 97% from 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 detected70,494 lines of code in 149 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 36,539 |
PHP | 124 | 8,056 | 17,340 | 33,319 |
JavaScript | 7 | 56 | 71 | 309 |
Markdown | 2 | 96 | 0 | 293 |
Bourne Shell | 1 | 4 | 3 | 21 |
CSS | 13 | 0 | 0 | 13 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please tend to the following items
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 87.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 51 | |
▷ Abstract classes | 2 | 3.92% |
▷ Concrete classes | 49 | 96.08% |
▷ Final classes | 1 | 2.04% |
Methods | 1,283 | |
▷ Static methods | 197 | 15.35% |
▷ Public methods | 894 | 69.68% |
▷ Protected methods | 17 | 1.33% |
▷ Private methods | 372 | 28.99% |
Functions | 107 | |
▷ Named functions | 106 | 99.07% |
▷ Anonymous functions | 1 | 0.93% |
Constants | 154 | |
▷ Global constants | 107 | 69.48% |
▷ Class constants | 47 | 30.52% |
▷ Public constants | 47 | 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
4 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/coinbase-commerce-for-woocommerce.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
assets/images/icon.png | 27.70KB | 9.23KB | ▼ 66.66% |