Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼294.86ms] Passed 4 tests
A check of server-side resources used by ezDeFi - Bitcoin, Ethereum and Cryptocurrencies Payment Gateway for Easy Digital Downloads
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.42 | 56.60 ▲34.74 |
Dashboard /wp-admin | 3.43 ▲0.03 | 34.39 ▲1.37 |
Posts /wp-admin/edit.php | 3.67 ▲0.03 | 38.33 ▼7.86 |
Add New Post /wp-admin/post-new.php | 6.94 ▼0.06 | 97.75 ▼1,168.12 |
Media Library /wp-admin/upload.php | 3.32 ▲0.02 | 25.89 ▼4.81 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 48 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for ezDeFi - Bitcoin, Ethereum and Cryptocurrencies Payment Gateway for Easy Digital Downloads
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,794 ▲72 | 16.23 ▲0.47 | 6.16 ▲0.62 | 3.03 ▲0.63 |
Dashboard /wp-admin | 2,895 ▲37 | 6.14 ▼0.03 | 118.75 ▼16.08 | 157.80 ▼2.56 |
Posts /wp-admin/edit.php | 2,691 ▲3 | 3.23 ▼0.00 | 64.43 ▼1.67 | 137.79 ▼3.71 |
Add New Post /wp-admin/post-new.php | 1,661 ▼50 | 16.09 ▼4.63 | 425.27 ▼24.62 | 149.01 ▼13.63 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.45 ▼0.01 | 144.77 ▲1.36 | 184.94 ▼6.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully
Smoke tests Passed 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Tags: You are using too many tags: 12 tag instead of maximum 10
ezdefi-easy-digital-download/edd-ezdefi.php 77% from 13 tests
The main PHP script in "ezDeFi - Bitcoin, Ethereum and Cryptocurrencies Payment Gateway for Easy Digital Downloads" version 2.0.0 is automatically included on every request by WordPress
It is important to fix the following:
- Plugin Name: Please don't use more than 70 characters for the plugin name (currently 90 characters long)
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("ezdefi-easy-digital-download.php" instead of "edd-ezdefi.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin4,116 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 441 | 100 | 1,604 |
JavaScript | 8 | 208 | 126 | 1,308 |
Sass | 4 | 110 | 0 | 604 |
CSS | 5 | 6 | 4 | 599 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 14.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 2.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 90 | |
▷ Static methods | 4 | 4.44% |
▷ Public methods | 82 | 91.11% |
▷ Protected methods | 8 | 8.89% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 5 | 62.50% |
▷ Anonymous functions | 3 | 37.50% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/bitcoin-icon.png | 4.20KB | 1.50KB | ▼ 64.26% |
assets/android-icon.png | 17.00KB | 8.90KB | ▼ 47.62% |
assets/ezdefi-icon.png | 13.51KB | 6.54KB | ▼ 51.56% |
assets/ios-icon.png | 6.26KB | 4.36KB | ▼ 30.33% |
assets/newsd-icon.png | 8.85KB | 3.07KB | ▼ 65.28% |