Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼12.15ms] Passed 4 tests
This is a short check of server-side resources used by Virtuaria - Pagseguro Pix para Woocommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 39.00 ▼6.46 |
Dashboard /wp-admin | 3.36 ▼0.02 | 48.86 ▼22.31 |
Posts /wp-admin/edit.php | 3.48 ▲0.08 | 46.45 ▼6.62 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.02 | 88.25 ▼13.21 |
Media Library /wp-admin/upload.php | 3.29 ▲0.02 | 38.63 ▲4.32 |
Server storage [IO: ▲0.96MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 170 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Virtuaria - Pagseguro Pix para Woocommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲44 | 14.25 ▼0.10 | 1.66 ▼0.17 | 40.05 ▼4.85 |
Dashboard /wp-admin | 2,214 ▲34 | 5.57 ▼0.10 | 88.52 ▼6.47 | 41.60 ▲3.41 |
Posts /wp-admin/edit.php | 2,117 ▲17 | 2.03 ▲0.02 | 41.04 ▲0.08 | 37.78 ▲1.33 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 23.23 ▼0.22 | 638.31 ▲15.24 | 52.76 ▼4.89 |
Media Library /wp-admin/upload.php | 1,419 ▲19 | 4.26 ▲0.09 | 103.49 ▲5.26 | 44.17 ▲3.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following items
- 48× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/virtuaria-pagseguro-pix/vendor/guzzlehttp/promises/src/EachPromise.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/virtuaria-pagseguro-pix/vendor/guzzlehttp/psr7/src/LazyOpenStream.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/virtuaria-pagseguro-pix/vendor/guzzlehttp/psr7/src/CachingStream.php:13
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/virtuaria-pagseguro-pix/vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php:13
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/virtuaria-pagseguro-pix/vendor/guzzlehttp/guzzle/src/Exception/ClientException.php:8
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/virtuaria-pagseguro-pix/vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php:10
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Cookie\\CookieJarInterface' not found in wp-content/plugins/virtuaria-pagseguro-pix/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\ResponseInterface' not found in wp-content/plugins/virtuaria-pagseguro-pix/vendor/guzzlehttp/psr7/src/Response.php:13
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/virtuaria-pagseguro-pix/vendor/guzzlehttp/promises/src/Coroutine.php:45
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/virtuaria-pagseguro-pix/vendor/guzzlehttp/psr7/src/InflateStream.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: payment method, woocommerce, pix, payment, gateway...
virtuaria-pagseguro-pix/virtuaria-pagseguro-pix.php Passed 13 tests
The entry point to "Virtuaria - Pagseguro Pix para Woocommerce" version 1.0.1 is a PHP file that has certain tags in its header comment area
46 characters long description:
Adiciona o método de pagamento PagSeguro Pix.
Code Analysis Passed 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
There were no executable files found in this plugin15,772 lines of code in 155 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 126 | 2,180 | 6,107 | 10,989 |
Markdown | 15 | 1,265 | 0 | 3,647 |
JSON | 10 | 0 | 0 | 1,045 |
CSS | 1 | 0 | 0 | 54 |
JavaScript | 2 | 1 | 0 | 30 |
YAML | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 13.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 2.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 26 | |
Traits | 3 | |
Classes | 81 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 81 | 100.00% |
▷ Final classes | 35 | 43.21% |
Methods | 790 | |
▷ Static methods | 146 | 18.48% |
▷ Public methods | 663 | 83.92% |
▷ Protected methods | 5 | 0.63% |
▷ Private methods | 122 | 15.44% |
Functions | 124 | |
▷ Named functions | 34 | 27.42% |
▷ Anonymous functions | 90 | 72.58% |
Constants | 65 | |
▷ Global constants | 2 | 3.08% |
▷ Class constants | 63 | 96.92% |
▷ Public constants | 52 | 82.54% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/pague-com-pix.png | 2.70KB | 2.12KB | ▼ 21.33% |