Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼2.27ms] Passed 4 tests
Server-side resources used by Asaas Gateway for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 36.34 ▼5.29 |
Dashboard /wp-admin | 3.39 ▲0.08 | 52.42 ▼0.78 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 54.61 ▲2.22 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 92.38 ▼3.86 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 36.77 ▲0.85 |
Server storage [IO: ▲0.67MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 104 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Asaas Gateway for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲28 | 14.73 ▲0.34 | 1.74 ▼0.44 | 41.00 ▼6.34 |
Dashboard /wp-admin | 2,214 ▲37 | 5.62 ▲0.05 | 97.53 ▲4.88 | 49.01 ▲8.95 |
Posts /wp-admin/edit.php | 2,123 ▲26 | 2.14 ▲0.13 | 37.23 ▼1.92 | 34.39 ▼0.74 |
Add New Post /wp-admin/post-new.php | 1,561 ▲12 | 22.89 ▼0.30 | 660.64 ▼7.16 | 55.83 ▼12.13 |
Media Library /wp-admin/upload.php | 1,422 ▲28 | 4.22 ▲0.07 | 106.51 ▲2.99 | 43.96 ▲2.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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 take a closer look at the following
- 34× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WC_Asaas\\Api\\Client\\Client' not found in wp-content/plugins/woo-asaas/includes/api/client/class-collection-client.php:17
- > PHP Fatal error
Uncaught Error: Class 'WC_Asaas\\Api\\Resources\\Resource' not found in wp-content/plugins/woo-asaas/includes/api/resources/class-credit-card.php:16
- > PHP Fatal error
Uncaught Error: Class 'WC_Asaas\\Gateway\\Gateway' not found in wp-content/plugins/woo-asaas/includes/gateway/class-pix.php:20
- > PHP Fatal error
Uncaught Error: Class 'WC_Asaas\\Checkout\\Form_Field\\Form_Field' not found in wp-content/plugins/woo-asaas/includes/checkout/form-field/class-card-security-code.php:16
- > PHP Fatal error
Uncaught Error: Class 'WC_Asaas\\WC_Asaas' not found in wp-content/plugins/woo-asaas/templates/one-click-buy-option.php:10
- > PHP Fatal error
Uncaught Error: Class 'WC_Asaas\\Api\\Response\\Response' not found in wp-content/plugins/woo-asaas/includes/api/response/class-error-response.php:13
- > PHP Fatal error
Uncaught Error: Class 'WC_Asaas\\Billing_Type\\Billing_Type' not found in wp-content/plugins/woo-asaas/includes/billing-type/class-credit-card.php:13
- > PHP Fatal error
Uncaught Error: Class 'WC_Asaas\\Log\\Logger' not found in wp-content/plugins/woo-asaas/includes/log/class-logger-legacy.php:15
- > PHP Notice
Undefined variable: expiration_period in wp-content/plugins/woo-asaas/templates/order/pix-thankyou-instructions.php on line 17
- > PHP Fatal error
Uncaught Error: Class 'WC_Asaas\\Api\\Resources\\Resource' not found in wp-content/plugins/woo-asaas/includes/api/resources/class-subscriptions.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Donate link: Invalid url: ""
woo-asaas/woo-asaas.php Passed 13 tests
The main file in "Asaas Gateway for WooCommerce" v. 2.1.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
89 characters long description:
Take transparent credit card and bank ticket payment checkouts on your store using Asaas.
Code Analysis Passed 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
Success! There were no dangerous files found in this plugin9,094 lines of code in 93 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 86 | 1,475 | 4,001 | 5,540 |
JavaScript | 3 | 962 | 636 | 2,936 |
PO File | 1 | 219 | 344 | 558 |
CSS | 3 | 0 | 0 | 60 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 9.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 79.00 |
Average method complexity | 2.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 27 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 72 | |
▷ Abstract classes | 6 | 8.33% |
▷ Concrete classes | 66 | 91.67% |
▷ Final classes | 0 | 0.00% |
Methods | 446 | |
▷ Static methods | 25 | 5.61% |
▷ Public methods | 355 | 79.60% |
▷ Protected methods | 9 | 2.02% |
▷ Private methods | 82 | 18.39% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 30 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 30 | 100.00% |
▷ Public constants | 30 | 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
7 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/elo.png | 6.73KB | 4.18KB | ▼ 37.84% |
assets/images/discover.png | 8.75KB | 4.41KB | ▼ 49.65% |
assets/images/mastercard.png | 8.87KB | 5.09KB | ▼ 42.58% |
assets/images/diners.png | 9.07KB | 4.60KB | ▼ 49.28% |
assets/images/visa.png | 3.39KB | 2.71KB | ▼ 20.01% |