Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.14MB] [CPU: ▲6.11ms] Passed 4 tests
Server-side resources used by Cryptocurrency Payment Gateway for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.64 ▲1.18 | 43.81 ▲6.45 |
Dashboard /wp-admin | 4.47 ▲1.16 | 53.83 ▲7.66 |
Posts /wp-admin/edit.php | 4.52 ▲1.16 | 57.46 ▲10.07 |
Add New Post /wp-admin/post-new.php | 7.01 ▲1.13 | 99.84 ▲0.26 |
Media Library /wp-admin/upload.php | 4.33 ▲1.10 | 48.84 ▲12.24 |
Server storage [IO: ▲1.78MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 169 new files
Database: no new tables, 9 new options
New WordPress options |
---|
wc_triplea_crypto_payment_installed |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
wc_triplea_crypto_payment_version |
woocommerce_triplea_payment_gateway_settings |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Cryptocurrency Payment Gateway for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.13 ▼0.21 | 1.82 ▲0.26 | 37.74 ▼0.69 |
Dashboard /wp-admin | 2,192 ▲15 | 5.62 ▼0.00 | 93.70 ▼7.53 | 42.71 ▼5.07 |
Posts /wp-admin/edit.php | 2,097 ▼6 | 1.95 ▲0.00 | 38.91 ▼1.86 | 35.09 ▼4.83 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.37 ▲0.22 | 613.73 ▼89.54 | 52.90 ▼1.48 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.23 ▼0.05 | 99.36 ▼5.78 | 45.13 ▲1.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 9 options
- widget_recent-posts
- db_upgraded
- wc_triplea_crypto_payment_installed
- woocommerce_triplea_payment_gateway_settings
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- wc_triplea_crypto_payment_version
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 148× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Constant SODIUM_CRYPTO_PWHASH_MEMLIMIT_INTERACTIVE already defined in wp-content/plugins/triplea-cryptocurrency-payment-gateway-for-woocommerce/vendor/paragonie/sodium_compat/lib/php72compat_const.php on line 57
- > PHP Notice
Constant SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_NPUBBYTES already defined in wp-content/plugins/triplea-cryptocurrency-payment-gateway-for-woocommerce/vendor/paragonie/sodium_compat/lib/php72compat_const.php on line 17
- > PHP Notice
Constant SODIUM_CRYPTO_PWHASH_ALG_ARGON2ID13 already defined in wp-content/plugins/triplea-cryptocurrency-payment-gateway-for-woocommerce/vendor/paragonie/sodium_compat/lib/php72compat_const.php on line 56
- > PHP Fatal error
Uncaught Error: Class 'ParagonIE_Sodium_Core_ChaCha20_IetfCtx' not found in wp-content/plugins/triplea-cryptocurrency-payment-gateway-for-woocommerce/vendor/paragonie/sodium_compat/namespaced/Core/ChaCha20/IetfCtx.php:4
- > PHP Notice
Constant SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_KEYBYTES already defined in wp-content/plugins/triplea-cryptocurrency-payment-gateway-for-woocommerce/vendor/paragonie/sodium_compat/lib/php72compat_const.php on line 19
- > PHP Notice
Constant SODIUM_CRYPTO_SCALARMULT_BYTES already defined in wp-content/plugins/triplea-cryptocurrency-payment-gateway-for-woocommerce/vendor/paragonie/sodium_compat/lib/php72compat_const.php on line 69
- > PHP Notice
Constant SODIUM_CRYPTO_AEAD_AES256GCM_ABYTES already defined in wp-content/plugins/triplea-cryptocurrency-payment-gateway-for-woocommerce/vendor/paragonie/sodium_compat/lib/php72compat_const.php on line 14
- > PHP Notice
Constant SODIUM_CRYPTO_KX_PUBLICKEYBYTES already defined in wp-content/plugins/triplea-cryptocurrency-payment-gateway-for-woocommerce/vendor/paragonie/sodium_compat/lib/php72compat_const.php on line 44
- > PHP Notice
Constant SODIUM_LIBRARY_MINOR_VERSION already defined in wp-content/plugins/triplea-cryptocurrency-payment-gateway-for-woocommerce/vendor/paragonie/sodium_compat/lib/php72compat_const.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'ParagonIE_Sodium_Core_HChaCha20' not found in wp-content/plugins/triplea-cryptocurrency-payment-gateway-for-woocommerce/vendor/paragonie/sodium_compat/namespaced/Core/HChaCha20.php:4
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: altcoin woocommerce, crypto payment gateway, crypto payments, bitcoin, bitcoin payments
triplea-cryptocurrency-payment-gateway-for-woocommerce/triplea-cryptocurrency-payment-gateway-for-woocommerce.php 77% from 13 tests
This is the main PHP file of "Cryptocurrency Payment Gateway for WooCommerce" version 2.0.13, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Requires at least: Required version does not match the one declared in readme.txt ("5.5" instead of "5.0.0")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 265 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected29,772 lines of code in 151 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 131 | 3,761 | 12,969 | 26,988 |
PO File | 7 | 378 | 406 | 1,308 |
Markdown | 3 | 150 | 0 | 493 |
JSON | 6 | 0 | 0 | 438 |
JavaScript | 1 | 59 | 24 | 290 |
CSS | 2 | 46 | 4 | 249 |
SVG | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 19.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 386.00 |
Average method complexity | 3.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 60.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 107 | |
▷ Abstract classes | 20 | 18.69% |
▷ Concrete classes | 87 | 81.31% |
▷ Final classes | 1 | 1.15% |
Methods | 874 | |
▷ Static methods | 567 | 64.87% |
▷ Public methods | 781 | 89.36% |
▷ Protected methods | 51 | 5.84% |
▷ Private methods | 42 | 4.81% |
Functions | 185 | |
▷ Named functions | 181 | 97.84% |
▷ Anonymous functions | 4 | 2.16% |
Constants | 335 | |
▷ Global constants | 16 | 4.78% |
▷ Class constants | 319 | 95.22% |
▷ Public constants | 319 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/crypto-icon.png | 12.60KB | 5.23KB | ▼ 58.47% |