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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.49ms] Passed 4 tests
This is a short check of server-side resources used by Cryptocurrency Product for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.43 ▼3.76 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.82 ▼1.00 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.88 ▼2.32 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.43 ▼6.88 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 31.86 ▲1.31 |
Server storage [IO: ▲10.32MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 1,377 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Cryptocurrency Product for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲3 | 14.69 ▲0.37 | 1.72 ▼0.17 | 38.24 ▼5.27 |
Dashboard /wp-admin | 2,198 ▲27 | 5.59 ▼0.01 | 93.85 ▼7.09 | 38.60 ▼4.28 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.96 ▲0.00 | 38.79 ▼1.18 | 35.63 ▼1.84 |
Add New Post /wp-admin/post-new.php | 1,526 ▼10 | 23.38 ▲0.14 | 629.67 ▼53.95 | 55.89 ▼5.59 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.07 ▼0.10 | 95.01 ▼8.30 | 40.36 ▼3.45 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
Please fix the following
- 595× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\EC\\Curves\\sect409k1' not found in wp-content/plugins/cryptocurrency-product-for-woocommerce/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/nistk409.php:18
- > PHP Fatal error
Uncaught Error: Class 'FG\\ASN1\\ASNObject' not found in wp-content/plugins/cryptocurrency-product-for-woocommerce/vendor/fgrosse/phpasn1/lib/ASN1/AbstractString.php:15
- > PHP Fatal error
Uncaught Error: Class 'BitWasp\\Bitcoin\\Collection\\StaticBufferCollection' not found in wp-content/plugins/cryptocurrency-product-for-woocommerce/vendor/olegabr/bitcoin/src/Script/ScriptWitness.php:11
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\EC\\BaseCurves\\Prime' not found in wp-content/plugins/cryptocurrency-product-for-woocommerce/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/secp384r1.php:21
- > PHP Fatal error
Uncaught Error: Class 'BitWasp\\Bitcoin\\Key\\KeyToScript\\Factory\\KeyToScriptDataFactory' not found in wp-content/plugins/cryptocurrency-product-for-woocommerce/vendor/olegabr/bitcoin/src/Key/KeyToScript/Factory/P2wpkhScriptDataFactory.php:13
- > PHP Fatal error
Uncaught Error: Class 'Web3\\Methods\\EthMethod' not found in wp-content/plugins/cryptocurrency-product-for-woocommerce/vendor/olegabr/web3.php/src/Methods/Eth/Hashrate.php:18
- > PHP Fatal error
Uncaught Error: Class 'BitWasp\\Bitcoin\\Serializable' not found in wp-content/plugins/cryptocurrency-product-for-woocommerce/vendor/olegabr/bitcoin/src/Script/Interpreter/Number.php:13
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Math\\Common\\FiniteField\\Integer' not found in wp-content/plugins/cryptocurrency-product-for-woocommerce/vendor/phpseclib/phpseclib/phpseclib/Math/BinaryField/Integer.php:37
- > PHP Fatal error
Trait 'phpseclib3\\Crypt\\EC\\Formats\\Keys\\Common' not found in wp-content/plugins/cryptocurrency-product-for-woocommerce/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Formats/Keys/libsodium.php on line 33
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Math\\BigInteger\\Engines\\BCMath' not found in wp-content/plugins/cryptocurrency-product-for-woocommerce/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/BCMath/BuiltIn.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% 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:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
cryptocurrency-product-for-woocommerce/cryptocurrency-product-for-woocommerce.php 85% from 13 tests
The main file in "Cryptocurrency Product for WooCommerce" v. 3.16.11 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 190 characters long)
- Requires at least: Required version must match the one declared in readme.txt ("4.7" instead of "5.5.0")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected130,725 lines of code in 1,307 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,276 | 27,173 | 70,987 | 126,659 |
JSON | 1 | 0 | 0 | 1,997 |
PO File | 3 | 490 | 1,068 | 1,562 |
JavaScript | 7 | 42 | 110 | 296 |
Markdown | 2 | 25 | 0 | 80 |
SVG | 1 | 1 | 1 | 59 |
XML | 2 | 0 | 0 | 49 |
CSS | 13 | 0 | 0 | 13 |
YAML | 1 | 0 | 0 | 7 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 0% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,096)
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 204)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 13.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 3.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 204.00 |
Code structure | ||
---|---|---|
Namespaces | 186 | |
Interfaces | 107 | |
Traits | 7 | |
Classes | 1,045 | |
▷ Abstract classes | 247 | 23.64% |
▷ Concrete classes | 798 | 76.36% |
▷ Final classes | 50 | 6.27% |
Methods | 6,889 | |
▷ Static methods | 1,197 | 17.38% |
▷ Public methods | 5,593 | 81.19% |
▷ Protected methods | 453 | 6.58% |
▷ Private methods | 843 | 12.24% |
Functions | 659 | |
▷ Named functions | 381 | 57.81% |
▷ Anonymous functions | 278 | 42.19% |
Constants | 901 | |
▷ Global constants | 107 | 11.88% |
▷ Class constants | 794 | 88.12% |
▷ Public constants | 783 | 98.61% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
15 PNG files occupy 0.40MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-10.png | 28.64KB | 11.34KB | ▼ 60.39% |
assets/screenshot-3.png | 27.69KB | 11.26KB | ▼ 59.35% |
assets/screenshot-8.png | 44.12KB | 16.49KB | ▼ 62.64% |
assets/icon-256x256.png | 8.68KB | 6.70KB | ▼ 22.87% |
vendor/freemius/wordpress-sdk/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |