Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.55MB] [CPU: ▲0.56ms] 75% from 4 tests
Server-side resources used by Checkout with Cash App on WooCommerce
It is recommended to improve the following
- CPU: Total CPU usage should be kept under 500.00ms (currently 1,889.75ms on /wp-admin/admin.php?page=wc-settings&tab=checkout§ion=cashapp)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.03 ▲0.57 | 36.45 ▼12.47 |
Dashboard /wp-admin | 3.92 ▲0.62 | 54.39 ▲5.17 |
Posts /wp-admin/edit.php | 3.97 ▲0.62 | 52.45 ▲6.28 |
Add New Post /wp-admin/post-new.php | 6.44 ▲0.55 | 104.96 ▲11.72 |
Media Library /wp-admin/upload.php | 3.68 ▲0.46 | 37.88 ▲3.27 |
Automated Order Updates /wp-admin/admin.php?page=wc_cashapp_automated_status | 3.71 | 35.16 |
Cash App Link /wp-admin/admin.php?page=wc-settings&tab=checkout§ion=cashapp | 3.93 | 1,889.75 |
Cash App Link vs Cash App Pay /wp-admin/admin.php?page=wc_cashapp_compared | 3.69 | 36.35 |
Square Tokens /wp-admin/admin.php?page=wc_cashapp_square | 3.69 | 34.31 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 4.05 | 38.89 |
Recommended Plugins /wp-admin/admin.php?page=wc_cashapp_recommended | 3.68 | 35.90 |
Cash App Pay /wp-admin/admin.php?page=wc-settings&tab=checkout§ion=cash-app-pay | 3.52 | 35.67 |
Support /wp-admin/admin.php?page=mailto:info@theafricanboss.com?subject=WC%20Cashapp%20Plugin%20Support&body=Hello%2C%0D%0A%0D%0A | 3.52 | 26.57 |
Help /wp-admin/admin.php?page=wc_cashapp_help | 3.69 | 35.15 |
Server storage [IO: ▲5.29MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 241 new files
Database: no new tables, 10 new options
New WordPress options |
---|
fs_accounts |
recovery_mode_email_last_sent |
fs_active_plugins |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
fs_debug_mode |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Checkout with Cash App on WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,933 ▲198 | 13.24 ▼1.01 | 4.70 ▲2.74 | 31.38 ▼8.17 |
Dashboard /wp-admin | 2,339 ▲148 | 4.84 ▼0.05 | 109.69 ▲7.43 | 46.09 ▲5.81 |
Posts /wp-admin/edit.php | 2,225 ▲136 | 2.02 ▲0.01 | 40.09 ▲3.25 | 41.70 ▲4.47 |
Add New Post /wp-admin/post-new.php | 1,615 ▲82 | 23.29 ▼0.07 | 627.15 ▲48.98 | 56.53 ▲3.06 |
Media Library /wp-admin/upload.php | 1,518 ▲130 | 4.18 ▼0.01 | 96.06 ▼2.35 | 47.89 ▲3.96 |
Automated Order Updates /wp-admin/admin.php?page=wc_cashapp_automated_status | 805 | 1.14 | 6.61 | 49.91 |
Cash App Link /wp-admin/admin.php?page=wc-settings&tab=checkout§ion=cashapp | 1,103 | 1.69 | 26.12 | 55.36 |
Cash App Link vs Cash App Pay /wp-admin/admin.php?page=wc_cashapp_compared | 1,126 | 2.02 | 24.60 | 81.67 |
Square Tokens /wp-admin/admin.php?page=wc_cashapp_square | 806 | 1.14 | 6.06 | 29.94 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,171 | 1.73 | 26.96 | 27.65 |
Recommended Plugins /wp-admin/admin.php?page=wc_cashapp_recommended | 1,012 | 2.03 | 23.82 | 42.92 |
Cash App Pay /wp-admin/admin.php?page=wc-settings&tab=checkout§ion=cash-app-pay | 28 | 0.44 | 0.10 | 3.43 |
Support /wp-admin/admin.php?page=mailto:info@theafricanboss.com?subject=WC%20Cashapp%20Plugin%20Support&body=Hello%2C%0D%0A%0D%0A | 28 | 0.44 | 0.09 | 3.61 |
Help /wp-admin/admin.php?page=wc_cashapp_help | 2,718 | 23.12 | 744.94 | 67.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/wc-cashapp/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 10 options
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- fs_active_plugins
- widget_recent-posts
- fs_debug_mode
- widget_recent-comments
- fs_accounts
- recovery_mode_email_last_sent
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=wc_cashapp_automated_status
- > Error in wp-content/plugins/wc-cashapp/includes/admin/email-receipts.php+8
Uncaught Error: Class 'WC_Cashapp_Gateway' not found in wp-content/plugins/wc-cashapp/includes/admin/email-receipts.php:8
Stack trace:
#0 wp-content/plugins/wc-cashapp/includes/admin/dashboard.php(129): require_once()
#1 wp-includes/class-wp-hook.php(310): wc_cashapp_email_receipts_menu_page()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 {main}
thrown- > GET request to /wp-admin/admin.php?page=wc_cashapp_square
- > Error in wp-content/plugins/wc-cashapp/includes/admin/square.php+6
Uncaught Error: Class 'WC_Cash_App_Pay_Gateway' not found in wp-content/plugins/wc-cashapp/includes/admin/square.php:6
Stack trace:
#0 wp-content/plugins/wc-cashapp/includes/admin/dashboard.php(281): require_once()
#1 wp-includes/class-wp-hook.php(310): wc_cashapp_square_menu_page()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 {main}
thrown
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/wc-cashapp/languages/index.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=wc-settings&tab=checkout§ion=cash-app-pay
- > Network (severe)
wp-admin/admin.php?page=wc-settings&tab=checkout§ion=cash-app-pay - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=mailto:info@theafricanboss.com?subject=WC%20Cashapp%20Plugin%20Support&body=Hello%2C%0D%0A%0D%0A
- > Network (severe)
wp-admin/admin.php?page=mailto:info@theafricanboss.com?subject=WC%20Cashapp%20Plugin%20Support&body=Hello%2C%0D%0A%0D%0A - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 86% 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
Attributes that require attention:
- Tags: Too many tags (18 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wc-cashapp/cashapp.php 77% from 13 tests
The primary PHP file in "Checkout with Cash App on WooCommerce" version 5.3.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wc-cashapp.php" instead of "cashapp.php")
- Domain Path: The domain path should be prefixed with a forward slash character ("/languages")
- Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin36,473 lines of code in 167 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 143 | 8,321 | 18,094 | 35,759 |
JavaScript | 8 | 56 | 143 | 554 |
CSS | 16 | 30 | 6 | 160 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 90.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 52 | |
▷ Abstract classes | 2 | 3.85% |
▷ Concrete classes | 50 | 96.15% |
▷ Final classes | 0 | 0.00% |
Methods | 1,307 | |
▷ Static methods | 197 | 15.07% |
▷ Public methods | 906 | 69.32% |
▷ Protected methods | 29 | 2.22% |
▷ Private methods | 372 | 28.46% |
Functions | 117 | |
▷ Named functions | 110 | 94.02% |
▷ Anonymous functions | 7 | 5.98% |
Constants | 153 | |
▷ Global constants | 106 | 69.28% |
▷ Class constants | 47 | 30.72% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
15 PNG files occupy 0.31MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/cashapp_35.png | 1.15KB | 1.02KB | ▼ 11.12% |
assets/images/venmo_icon_1200.png | 60.88KB | 28.90KB | ▼ 52.53% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
assets/images/zelle_icon_1200.png | 62.93KB | 26.88KB | ▼ 57.30% |
assets/images/venmo-256x256.png | 11.55KB | 5.61KB | ▼ 51.38% |