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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.17MB] [CPU: ▼19.69ms] Passed 4 tests
Analyzing server-side resources used by AQPago Pagamentos para WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 34.61 ▼10.76 |
Dashboard /wp-admin | 3.20 ▼0.11 | 31.46 ▼21.76 |
Posts /wp-admin/edit.php | 3.26 ▼0.09 | 38.13 ▼14.73 |
Add New Post /wp-admin/post-new.php | 5.44 ▼0.45 | 68.98 ▼31.50 |
Media Library /wp-admin/upload.php | 3.20 ▼0.03 | 29.90 ▼8.45 |
Server storage [IO: ▲5.27MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 298 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for AQPago Pagamentos para WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.30 ▼1.00 | 1.78 ▼0.00 | 39.71 ▼3.88 |
Dashboard /wp-admin | 2,209 ▲21 | 5.85 ▲0.01 | 109.56 ▼7.99 | 42.29 ▼3.92 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.05 | 40.12 ▲3.70 | 36.42 ▼0.27 |
Add New Post /wp-admin/post-new.php | 1,519 ▼14 | 23.07 ▼0.36 | 683.47 ▲10.31 | 51.73 ▼13.14 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.25 ▲0.04 | 99.63 ▼13.30 | 41.77 ▼7.05 |
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 6 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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 fix the following items
- 4× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/aqpago/templates/modal/first-card.php
- > /wp-content/plugins/aqpago/templates/admin/order-info-ticket.php
- > /wp-content/plugins/aqpago/templates/modal/second-card.php
- > /wp-content/plugins/aqpago/templates/admin/order-info-credit.php
- 125× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Picqer\\Barcode\\Types\\TypeStandard2of5' not found in wp-content/plugins/aqpago/includes/barcode-generator/Types/TypeStandard2of5Checksum.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_js() in wp-content/plugins/aqpago/templates/session.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/aqpago/templates/success/aqpago.php:3
- > PHP Fatal error
Uncaught Error: Class 'Picqer\\Barcode\\Types\\TypeEanUpcBase' not found in wp-content/plugins/aqpago/library/vendor/picqer/php-barcode-generator/src/Types/TypeUpcE.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/aqpago/templates/success/credit.php:5
- > PHP Fatal error
Uncaught Error: Class 'Aqbank\\Apiv2\\Aqpago\\Request\\AbstractRequest' not found in wp-content/plugins/aqpago/sdk/Aqpago/Request/Order/QueryOrderRequest.php:16
- > PHP Fatal error
Uncaught Error: Interface 'Aqbank\\Apiv2\\Aqpago\\AqpagoSerializable' not found in wp-content/plugins/aqpago/sdk/Aqpago/Address.php:10
- > PHP Fatal error
Uncaught Error: Class 'Picqer\\Barcode\\Types\\TypePostnet' not found in wp-content/plugins/aqpago/library/vendor/picqer/php-barcode-generator/src/Types/TypePlanet.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Aqbank\\Apiv2\\Aqpago\\AqpagoSerializable' not found in wp-content/plugins/aqpago/sdk/Aqpago/Shipping.php:10
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/aqpago/library/vendor/picqer/php-barcode-generator/tests/BarcodeDynamicHtmlTest.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
3 plugin tags: payment, aqpago, woocommerce
aqpago/aqpago.php 92% from 13 tests
The principal PHP file in "AQPago Pagamentos para WooCommerce" v. 1.3.27 is loaded by WordPress automatically on each request
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 391 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin17,657 lines of code in 172 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 113 | 2,342 | 2,072 | 11,024 |
JavaScript | 5 | 675 | 225 | 2,913 |
SVG | 34 | 1 | 0 | 2,302 |
CSS | 5 | 43 | 5 | 687 |
Markdown | 5 | 151 | 0 | 349 |
HTML | 4 | 0 | 0 | 194 |
JSON | 3 | 0 | 0 | 143 |
XML | 1 | 0 | 0 | 23 |
YAML | 2 | 9 | 0 | 22 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 402)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 10.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 558.00 |
Average method complexity | 3.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 402.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 133 | |
▷ Abstract classes | 5 | 3.76% |
▷ Concrete classes | 128 | 96.24% |
▷ Final classes | 0 | 0.00% |
Methods | 532 | |
▷ Static methods | 37 | 6.95% |
▷ Public methods | 467 | 87.78% |
▷ Protected methods | 52 | 9.77% |
▷ Private methods | 13 | 2.44% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.00% |
Constants | 82 | |
▷ Global constants | 3 | 3.66% |
▷ Class constants | 79 | 96.34% |
▷ Public constants | 77 | 97.47% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/visa.png | 19.26KB | 8.62KB | ▼ 55.22% |
assets/images/aqpago-logo.png | 8.14KB | 4.57KB | ▼ 43.87% |