Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼5.56ms] Passed 4 tests
An overview of server-side resources used by WooCommerce Crypto Payment Processor
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 42.94 ▲3.62 |
Dashboard /wp-admin | 3.39 ▲0.05 | 50.96 ▼13.93 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 46.55 ▲0.91 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 85.70 ▼10.70 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 36.63 ▲1.49 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 75 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for WooCommerce Crypto Payment Processor
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.35 ▲0.00 | 1.56 ▼0.15 | 44.06 ▲0.68 |
Dashboard /wp-admin | 2,198 ▲21 | 5.59 ▲0.07 | 94.44 ▲10.08 | 42.84 ▲5.13 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▲0.07 | 35.08 ▼2.74 | 31.70 ▼3.15 |
Add New Post /wp-admin/post-new.php | 1,526 ▼9 | 22.99 ▲4.73 | 660.65 ▲66.21 | 60.73 ▼10.99 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.18 ▼0.08 | 94.84 ▼4.55 | 42.41 ▼1.32 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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 fix the following items
- 25× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CoinGate\\Exception\\ApiErrorException' not found in wp-content/plugins/coingate-for-woocommerce/vendor/coingate/coingate-php/lib/Exception/Api/BadAuthToken.php:10
- > PHP Fatal error
Uncaught Error: Interface 'CoinGate\\HttpClient\\ClientInterface' not found in wp-content/plugins/coingate-for-woocommerce/vendor/coingate/coingate-php/lib/HttpClient/CurlClient.php:8
- > PHP Fatal error
Uncaught Error: Class 'CoinGate\\Exception\\ApiErrorException' not found in wp-content/plugins/coingate-for-woocommerce/vendor/coingate/coingate-php/lib/Exception/UnknownApiErrorException.php:5
- > PHP Fatal error
Uncaught Error: Class 'CoinGate\\Resources\\Order' not found in wp-content/plugins/coingate-for-woocommerce/vendor/coingate/coingate-php/lib/Resources/Checkout.php:13
- > PHP Fatal error
Uncaught Error: Class 'CoinGate\\Exception\\ApiErrorException' not found in wp-content/plugins/coingate-for-woocommerce/vendor/coingate/coingate-php/lib/Exception/InternalServerError.php:8
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/coingate-for-woocommerce/vendor/coingate/coingate-php/tests/TestCase.php:5
- > PHP Fatal error
Uncaught Error: Class 'CoinGate\\Exception\\ApiErrorException' not found in wp-content/plugins/coingate-for-woocommerce/vendor/coingate/coingate-php/lib/Exception/Api/BadRequest.php:10
- > PHP Fatal error
Uncaught Error: Class 'CoinGate\\Exception\\ApiErrorException' not found in wp-content/plugins/coingate-for-woocommerce/vendor/coingate/coingate-php/lib/Exception/Api/Unauthorized.php:10
- > PHP Fatal error
Uncaught Error: Class 'CoinGate\\Exception\\ApiErrorException' not found in wp-content/plugins/coingate-for-woocommerce/vendor/coingate/coingate-php/lib/Exception/Api/OrderIsNotValid.php:10
- > PHP Fatal error
Uncaught Error: Class 'CoinGate\\TestCase' not found in wp-content/plugins/coingate-for-woocommerce/vendor/coingate/coingate-php/tests/CoinGate/HttpClient/CurlClientTest.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Tags: Too many tags (19 tag instead of maximum 10); only the first 5 tags are used in your directory listing
coingate-for-woocommerce/coingate-for-woocommerce.php Passed 13 tests
The principal PHP file in "WooCommerce Crypto Payment Processor" v. 2.1.1 is loaded by WordPress automatically on each request
79 characters long description:
Accept Bitcoin and 70+ Cryptocurrencies via CoinGate in your WooCommerce store.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin2,416 lines of code in 64 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 56 | 656 | 1,222 | 1,994 |
Markdown | 4 | 99 | 0 | 239 |
JSON | 3 | 1 | 0 | 159 |
Bourne Shell | 1 | 11 | 2 | 24 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 5.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 42 | |
▷ Abstract classes | 2 | 4.76% |
▷ Concrete classes | 40 | 95.24% |
▷ Final classes | 0 | 0.00% |
Methods | 157 | |
▷ Static methods | 24 | 15.29% |
▷ Public methods | 130 | 82.80% |
▷ Protected methods | 12 | 7.64% |
▷ Private methods | 15 | 9.55% |
Functions | 8 | |
▷ Named functions | 4 | 50.00% |
▷ Anonymous functions | 4 | 50.00% |
Constants | 10 | |
▷ Global constants | 2 | 20.00% |
▷ Class constants | 8 | 80.00% |
▷ Public constants | 8 | 100.00% |
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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/bitcoin.png | 3.06KB | 2.06KB | ▼ 32.77% |