Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.30MB] [CPU: ▼168.37ms] Passed 4 tests
Server-side resources used by ezDeFi - Bitcoin, Ethereum and Cryptocurrencies Payment Gateway for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.13 ▲0.29 | 32.30 ▲4.80 |
Dashboard /wp-admin | 3.43 ▲0.36 | 45.20 ▲2.73 |
Posts /wp-admin/edit.php | 3.47 ▲0.35 | 33.37 ▼1.12 |
Add New Post /wp-admin/post-new.php | 5.72 ▲0.28 | 75.62 ▼670.30 |
Media Library /wp-admin/upload.php | 3.30 ▲0.29 | 25.57 ▼4.80 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 38 new files
Database: 1 new table, 1 new option
New tables |
---|
wp_woocommerce_ezdefi_exception |
New WordPress options |
---|
woocommerce_gateway_ezdefi_version |
Browser metrics Passed 4 tests
ezDeFi - Bitcoin, Ethereum and Cryptocurrencies Payment Gateway for WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,666 ▲40 | 15.54 ▼0.22 | 6.20 ▼4.62 | 76.20 ▼0.54 |
Dashboard /wp-admin | 2,933 ▲37 | 6.01 ▼0.14 | 115.15 ▼22.07 | 164.61 ▼6.34 |
Posts /wp-admin/edit.php | 2,740 ▼3 | 3.23 ▲0.01 | 62.29 ▼0.91 | 153.56 ▲11.67 |
Add New Post /wp-admin/post-new.php | 3,815 ▲84 | 19.31 ▲0.54 | 426.19 ▼0.30 | 164.03 ▲2.01 |
Media Library /wp-admin/upload.php | 1,752 ▲3 | 5.53 ▼0.04 | 142.66 ▼24.21 | 188.24 ▼26.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 1 option in the database
- woocommerce_gateway_ezdefi_version
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 | 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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WC_Ezdefi_Db' not found in wp-content/plugins/ezdefi-woocommerce/includes/admin/class-wc-ezdefi-admin-notices.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 86% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Tags: There are too many tags (12 tag instead of maximum 10)
ezdefi-woocommerce/woocommerce-gateway-ezdefi.php 77% from 13 tests
"ezDeFi - Bitcoin, Ethereum and Cryptocurrencies Payment Gateway for WooCommerce" version 2.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("ezdefi-woocommerce.php" instead of "woocommerce-gateway-ezdefi.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Plugin Name: Please shorten the plugin name (currently 79 characters long instead of max. 70)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected3,631 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 440 | 445 | 1,641 |
JavaScript | 6 | 99 | 5 | 730 |
Sass | 4 | 114 | 0 | 627 |
CSS | 5 | 7 | 4 | 622 |
SVG | 1 | 1 | 0 | 11 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 22.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 2.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 97 | |
▷ Static methods | 3 | 3.09% |
▷ Public methods | 83 | 85.57% |
▷ Protected methods | 14 | 14.43% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 4 | 66.67% |
▷ Anonymous functions | 2 | 33.33% |
Constants | 6 | |
▷ Global constants | 4 | 66.67% |
▷ Class constants | 2 | 33.33% |
▷ Public constants | 2 | 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
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/android-icon.png | 17.00KB | 8.90KB | ▼ 47.62% |
assets/images/ios-icon.png | 6.26KB | 4.36KB | ▼ 30.33% |
assets/images/ezdefi-icon.png | 13.51KB | 6.54KB | ▼ 51.56% |