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
Install script ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼307.48ms] Passed 4 tests
An overview of server-side resources used by Checkout with Cash App on EDD
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.21 ▲0.01 | 55.58 ▼3.85 |
Dashboard /wp-admin | 4.04 ▲0.01 | 39.34 ▲2.37 |
Posts /wp-admin/edit.php | 4.33 ▲0.01 | 41.26 ▼55.87 |
Add New Post /wp-admin/post-new.php | 7.57 ▼0.03 | 100.24 ▼1,169.36 |
Media Library /wp-admin/upload.php | 3.98 ▲0.00 | 27.34 ▼0.83 |
Server storage [IO: ▲3.67MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 200 new files
Database: no new tables, 4 new options
New WordPress options |
---|
fs_active_plugins |
fs_gdpr |
fs_debug_mode |
fs_accounts |
Browser metrics Passed 4 tests
A check of browser resources used by Checkout with Cash App on EDD
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲19 | 15.89 ▲0.19 | 5.55 ▼0.28 | 2.05 ▼0.78 |
Dashboard /wp-admin | 2,888 ▲34 | 6.12 ▼0.02 | 125.85 ▼15.24 | 181.25 ▲10.66 |
Posts /wp-admin/edit.php | 2,694 ▲3 | 3.25 ▲0.01 | 64.40 ▼3.48 | 141.72 ▼15.28 |
Add New Post /wp-admin/post-new.php | 1,661 ▼0 | 16.47 ▼6.32 | 442.07 ▲10.04 | 176.23 ▲19.62 |
Media Library /wp-admin/upload.php | 1,692 ▼9 | 5.61 ▲0.07 | 164.61 ▲21.47 | 210.90 ▲17.07 |
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
- This plugin does not fully uninstall, leaving 4 options in the database
- fs_gdpr
- fs_active_plugins
- fs_accounts
- fs_debug_mode
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/edd-cashapp/freemius/templates/ajax-loader.php
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/edd-cashapp/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/edd-cashapp/freemius/templates/account/partials/addon.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/edd-cashapp/freemius/templates/partials/network-activation.php:6
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/edd-cashapp/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/edd-cashapp/freemius/templates/account/partials/addon.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/edd-cashapp/languages/index.php:3
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/edd-cashapp/freemius/templates/account/partials/addon.php on line 8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/edd-cashapp/freemius/templates/account/partials/addon.php on line 8
- > PHP Fatal error
Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/edd-cashapp/freemius/templates/account/partials/addon.php:9
- > PHP Notice
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 83% from 29 tests
readme.txt 88% 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
Please fix the following attributes:
- Tags: Please delete some tags, you are using 17 tag instead of maximum 10
- Screenshots: No descriptions were found for these screenshots #2, #3 in edd-cashapp/assets to your readme.txt
edd-cashapp/edd-cashapp.php 77% from 13 tests
This is the main PHP file of "Checkout with Cash App on EDD" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Domain Path: The domain path must begin with a forward slash character ("/languages")
- Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 151 characters long)
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
Everything looks great! No dangerous files found in this plugin31,023 lines of code in 136 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 119 | 7,283 | 16,139 | 30,803 |
JavaScript | 3 | 34 | 59 | 194 |
CSS | 13 | 0 | 6 | 25 |
SVG | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
The following items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 2,907)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 90.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,907.00 |
Average method complexity | 4.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 45 | |
▷ Abstract classes | 2 | 4.44% |
▷ Concrete classes | 43 | 95.56% |
▷ Final classes | 0 | 0.00% |
Methods | 1,132 | |
▷ Static methods | 173 | 15.28% |
▷ Public methods | 792 | 69.96% |
▷ Protected methods | 15 | 1.33% |
▷ Private methods | 325 | 28.71% |
Functions | 111 | |
▷ Named functions | 108 | 97.30% |
▷ Anonymous functions | 3 | 2.70% |
Constants | 127 | |
▷ Global constants | 102 | 80.31% |
▷ Class constants | 25 | 19.69% |
▷ Public constants | 25 | 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
12 PNG files occupy 0.09MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
assets/images/venmo_35.png | 0.91KB | 0.79KB | ▼ 12.85% |
assets/images/venmo-256x256.png | 5.29KB | 2.82KB | ▼ 46.62% |
freemius/assets/img/edd-cashapp.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |