Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.34ms] Passed 4 tests
Analyzing server-side resources used by iPag Pagamentos Digitais
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 36.91 ▼1.25 |
Dashboard /wp-admin | 3.34 ▲0.03 | 45.37 ▼6.68 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.14 ▲3.88 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 79.75 ▼21.29 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.63 ▲4.30 |
Server storage [IO: ▲6.85MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 385 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_ipag_gateway |
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for iPag Pagamentos Digitais
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.22 ▼1.08 | 5.51 ▲3.74 | 45.16 ▲5.03 |
Dashboard /wp-admin | 2,206 ▲21 | 4.84 ▼1.01 | 103.92 ▼13.93 | 40.80 ▼6.30 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.04 ▼0.01 | 34.00 ▼3.65 | 33.06 ▼3.47 |
Add New Post /wp-admin/post-new.php | 1,528 ▼14 | 23.21 ▲4.89 | 698.79 ▲73.09 | 62.41 ▲5.04 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.19 ▲0.02 | 105.87 ▲6.94 | 46.24 ▲1.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie tables detected upon uninstall: 1 table
- wp_ipag_gateway
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 32× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\OptionsResolver\\Exception\\InvalidArgumentException' not found in wp-content/plugins/ipag-woocommerce/libs/symfony/options-resolver/Exception/UndefinedOptionsException.php:22
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\HttpKernel\\Bundle\\Bundle' not found in wp-content/plugins/ipag-woocommerce/libs/endroid-qr-code/src/Bundle/EndroidQrCodeBundle.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\OptionsResolver\\Exception\\ExceptionInterface' not found in wp-content/plugins/ipag-woocommerce/libs/symfony/options-resolver/Exception/NoConfigurationException.php:24
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/ipag-woocommerce/libs/endroid-qr-code/tests/QrCodeTest.php:17
- > PHP Fatal error
Uncaught Error: Class 'WC_iPag_Loader' not found in wp-content/plugins/ipag-woocommerce/classes/ipag-gateway-debito.php:3
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\HttpKernel\\Kernel' not found in wp-content/plugins/ipag-woocommerce/libs/endroid-qr-code/tests/Bundle/app/AppKernel.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\OptionsResolver\\Exception\\ExceptionInterface' not found in wp-content/plugins/ipag-woocommerce/libs/symfony/options-resolver/Exception/NoSuchOptionException.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ipag-woocommerce/classes/ipag-gateway-pix.php:3
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\OptionsResolver\\Options' not found in wp-content/plugins/ipag-woocommerce/libs/symfony/options-resolver/OptionsResolver.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function WC() in wp-content/plugins/ipag-woocommerce/templates/ipag-gateway-template-credito.php:7
- > 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)
Everything seems fine on the user side
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
8 plugin tags: payments, pagamentos, ipag, visa, boletos...
ipag-woocommerce/ipag-gateway.php 92% from 13 tests
"iPag Pagamentos Digitais" version 2.3.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ipag-woocommerce.php" instead of "ipag-gateway.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin9,631 lines of code in 65 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 48 | 1,397 | 1,376 | 8,098 |
JavaScript | 3 | 132 | 131 | 777 |
PO File | 1 | 155 | 323 | 317 |
Markdown | 3 | 40 | 0 | 159 |
CSS | 2 | 15 | 9 | 133 |
JSON | 2 | 0 | 0 | 73 |
XML | 2 | 3 | 0 | 39 |
YAML | 4 | 6 | 0 | 35 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 19.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 145.00 |
Average method complexity | 2.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 91.00 |
Code structure | ||
---|---|---|
Namespaces | 16 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 39 | |
▷ Abstract classes | 1 | 2.56% |
▷ Concrete classes | 38 | 97.44% |
▷ Final classes | 0 | 0.00% |
Methods | 384 | |
▷ Static methods | 16 | 4.17% |
▷ Public methods | 364 | 94.79% |
▷ Protected methods | 11 | 2.86% |
▷ Private methods | 9 | 2.34% |
Functions | 84 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 84 | 100.00% |
Constants | 25 | |
▷ Global constants | 5 | 20.00% |
▷ Class constants | 20 | 80.00% |
▷ Public constants | 20 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
76 PNG files occupy 0.33MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
libs/endroid-qr-code/assets/image/qrv28.png | 0.25KB | 0.23KB | ▼ 7.14% |
libs/endroid-qr-code/assets/image/qrv40.png | 0.27KB | 0.25KB | ▼ 6.14% |
images/aura.png | 14.16KB | 4.82KB | ▼ 65.93% |
libs/endroid-qr-code/assets/image/qrv10.png | 0.22KB | 0.21KB | ▼ 6.17% |
libs/endroid-qr-code/assets/image/qrv33.png | 0.26KB | 0.24KB | ▼ 8.30% |