Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼10.02ms] Passed 4 tests
A check of server-side resources used by Virtuaria - PagSeguro Crédito, Pix e Boleto
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.91 ▼0.95 |
Dashboard /wp-admin | 3.33 ▼0.02 | 45.00 ▼17.85 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 46.16 ▲0.34 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 79.41 ▼21.63 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.40 ▲3.05 |
Server storage [IO: ▲0.65MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Virtuaria - PagSeguro Crédito, Pix e Boleto: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲60 | 14.22 ▲0.15 | 1.52 ▼0.14 | 37.76 ▼5.82 |
Dashboard /wp-admin | 2,212 ▲37 | 5.54 ▼0.19 | 90.20 ▼14.95 | 40.33 ▼7.79 |
Posts /wp-admin/edit.php | 2,121 ▲21 | 2.03 ▲0.09 | 41.40 ▲0.16 | 37.88 ▲2.09 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 22.98 ▼0.13 | 660.01 ▼42.56 | 53.79 ▼6.23 |
Media Library /wp-admin/upload.php | 1,420 ▲26 | 4.18 ▲0.07 | 101.71 ▼1.38 | 44.35 ▼0.30 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: woocommerce, pagseguro, payment method, gateway, pix...
virtuaria-pagseguro/virtuaria-pagseguro.php Passed 13 tests
The primary PHP file in "Virtuaria - PagSeguro Crédito, Pix e Boleto" version 2.7.0 is used by WordPress to initiate all plugin functionality
61 characters long description:
Adiciona o método de pagamento PagSeguro a sua loja virtual.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected4,884 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 379 | 512 | 3,540 |
CSS | 8 | 3 | 2 | 677 |
PO File | 1 | 130 | 160 | 375 |
JavaScript | 5 | 22 | 0 | 236 |
SVG | 1 | 1 | 1 | 56 |
PHP code Passed 2 tests
A short review of 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.52 |
Average class complexity | 129.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 258.00 |
Average method complexity | 6.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 61.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 71 | |
▷ Static methods | 2 | 2.82% |
▷ Public methods | 60 | 84.51% |
▷ Protected methods | 1 | 1.41% |
▷ Private methods | 10 | 14.08% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 2 | 66.67% |
▷ Class constants | 1 | 33.33% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/codigo-de-barras.png | 23.31KB | 9.04KB | ▼ 61.21% |
public/images/pagseguro.png | 3.67KB | 2.47KB | ▼ 32.72% |
public/images/loading.png | 5.59KB | 0.67KB | ▼ 88.06% |
public/images/conectar.png | 8.19KB | 1.26KB | ▼ 84.60% |
public/images/sem-ficha.png | 0.78KB | 0.92KB | 0.00% |