Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲6.26MB] [CPU: ▲56.80ms] 75% from 4 tests
Server-side resources used by Cryptocurrency Payment Gateway
Please take the time to fix the following items
- Extra RAM: Extra memory usage must be kept under 5MB (currently 6.26MB on /wp-admin/options-general.php?page=redux-framework)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.47 ▲6.00 | 102.03 ▲65.38 |
Dashboard /wp-admin | 9.71 ▲6.37 | 101.66 ▲38.79 |
Posts /wp-admin/edit.php | 9.75 ▲6.39 | 110.20 ▲62.03 |
Add New Post /wp-admin/post-new.php | 12.26 ▲6.37 | 154.25 ▲61.00 |
Media Library /wp-admin/upload.php | 9.55 ▲6.32 | 105.02 ▲71.33 |
Redux /wp-admin/options-general.php?page=redux-framework | 9.54 | 83.57 |
Server storage [IO: ▲28.62MB] [DB: ▲0.01MB] 67% from 3 tests
Filesystem and database footprint
Please try to fix the following items
- Total filesystem usage must be limited to 25MB (currently using 28.62MB)
Filesystem: 2,090 new files
Database: 2 new tables, 10 new options
New tables |
---|
wp_cryptowoo_exchange_rates |
wp_cryptowoo_payments_temp |
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
cryptowoo_activation_time |
widget_recent-comments |
cryptowoo_payments |
db_upgraded |
cryptowoo_payments-transients |
widget_recent-posts |
can_compress_scripts |
cryptowoo_version |
Browser metrics Passed 4 tests
An overview of browser requirements for Cryptocurrency Payment Gateway
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,918 ▲172 | 13.50 ▼0.85 | 9.08 ▲7.64 | 40.54 ▲0.91 |
Dashboard /wp-admin | 2,235 ▲55 | 5.65 ▼0.03 | 86.25 ▲1.55 | 38.99 ▼7.50 |
Posts /wp-admin/edit.php | 2,143 ▲43 | 2.03 ▲0.03 | 39.90 ▲3.48 | 36.87 ▲3.17 |
Add New Post /wp-admin/post-new.php | 1,573 ▲45 | 21.07 ▲0.01 | 683.59 ▲18.90 | 67.22 ▲6.12 |
Media Library /wp-admin/upload.php | 1,445 ▲42 | 4.25 ▲0.07 | 98.01 ▼1.95 | 43.42 ▼0.65 |
Redux /wp-admin/options-general.php?page=redux-framework | 1,046 | 3.36 | 77.10 | 82.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 305× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
require(wp-content/plugins/cryptocurrency-payment-gateway/vendor/bitwasp/buffertools/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/cryptocurrency-payment-gateway/vendor/bitwasp/buffertools/examples/usingTemplates2.php on line 3
- > PHP Fatal error
Uncaught Error: Interface 'BitWasp\\Bitcoin\\SerializableInterface' not found in wp-content/plugins/cryptocurrency-payment-gateway/vendor/bitwasp/bitcoin/src/Serializable.php:7
- > PHP Fatal error
Uncaught Error: Interface 'BitWasp\\Buffertools\\TypeFactoryInterface' not found in wp-content/plugins/cryptocurrency-payment-gateway/vendor/bitwasp/buffertools/src/Buffertools/TypeFactory.php:24
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/cryptocurrency-payment-gateway/vendor/bitwasp/buffertools/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/cryptocurrency-payment-gateway/vendor/bitwasp/buffertools/examples/usingBuffer.php on line 3
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/cryptocurrency-payment-gateway/vendor/bitwasp/buffertools/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/cryptocurrency-payment-gateway/vendor/bitwasp/buffertools/examples/usingTemplates2.php on line 3
- > PHP Fatal error
Uncaught Error: Interface 'BitWasp\\Bitcoin\\Crypto\\EcAdapter\\Serializer\\Signature\\DerSignatureSerializerInterface' not found in wp-content/plugins/cryptocurrency-payment-gateway/vendor/bitwasp/bitcoin/src/Crypto/EcAdapter/Impl/PhpEcc/Serializer/Signature/DerSignatureSerializer.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/cryptocurrency-payment-gateway/admin/redux-framework/inc/fields/slider/field_slider.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/cryptocurrency-payment-gateway/admin/redux-framework/inc/fields/ace_editor/field_ace_editor.php:8
- > PHP Fatal error
Uncaught Error: Interface 'BitWasp\\Bitcoin\\Crypto\\EcAdapter\\Adapter\\EcAdapterInterface' not found in wp-content/plugins/cryptocurrency-payment-gateway/vendor/bitwasp/bitcoin/src/Crypto/EcAdapter/Impl/PhpEcc/Adapter/EcAdapter.php:19
- > PHP Fatal error
Uncaught Error: Interface 'BitWasp\\Bitcoin\\Script\\Interpreter\\InterpreterInterface' not found in wp-content/plugins/cryptocurrency-payment-gateway/vendor/bitwasp/bitcoin/src/Script/Interpreter/Interpreter.php:26
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please describe screenshot #23 in cryptocurrency-payment-gateway/assets to your readme.txt
cryptocurrency-payment-gateway/cryptocurrency-payment-gateway.php 85% from 13 tests
The main PHP file in "Cryptocurrency Payment Gateway" ver. 1.5.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("4.7" instead of "3.0")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis 97% from 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
Success! There were no dangerous files found in this plugin155,038 lines of code in 1,733 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 784 | 17,320 | 36,357 | 71,031 |
JavaScript | 663 | 8,423 | 4,457 | 40,883 |
CSS | 131 | 10,124 | 415 | 19,593 |
Sass | 98 | 1,896 | 80 | 12,806 |
SVG | 11 | 5 | 0 | 5,307 |
PO File | 2 | 1,231 | 1,858 | 3,454 |
JSON | 11 | 1 | 0 | 844 |
Markdown | 14 | 249 | 0 | 607 |
YAML | 8 | 40 | 12 | 227 |
XML | 5 | 5 | 0 | 127 |
Bourne Shell | 4 | 27 | 0 | 87 |
make | 1 | 14 | 0 | 41 |
Ant | 1 | 5 | 0 | 31 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 204)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 15.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 322.00 |
Average method complexity | 3.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 204.00 |
Code structure | ||
---|---|---|
Namespaces | 112 | |
Interfaces | 67 | |
Traits | 0 | |
Classes | 640 | |
▷ Abstract classes | 44 | 6.88% |
▷ Concrete classes | 596 | 93.12% |
▷ Final classes | 0 | 0.00% |
Methods | 4,578 | |
▷ Static methods | 766 | 16.73% |
▷ Public methods | 3,625 | 79.18% |
▷ Protected methods | 700 | 15.29% |
▷ Private methods | 253 | 5.53% |
Functions | 194 | |
▷ Named functions | 119 | 61.34% |
▷ Anonymous functions | 75 | 38.66% |
Constants | 478 | |
▷ Global constants | 29 | 6.07% |
▷ Class constants | 449 | 93.93% |
▷ Public constants | 445 | 99.11% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
74 PNG files occupy 0.26MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/redux-framework/assets/img/jquery-ui-bootstrap/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.08KB | 0.17KB | 0.00% |
assets/images/flags/ltc.png | 3.31KB | 2.10KB | ▼ 36.57% |
admin/redux-framework/assets/img/2cl.png | 0.24KB | 0.24KB | ▼ 1.61% |
assets/images/cryptowoo-logo-260x40.png | 4.86KB | 1.59KB | ▼ 67.34% |
assets/images/flags/usd.png | 4.85KB | 1.62KB | ▼ 66.56% |