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
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼8.95ms] Passed 4 tests
An overview of server-side resources used by WooCommerce Yapay Intermediador
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 40.12 ▼5.29 |
Dashboard /wp-admin | 3.39 ▲0.08 | 47.30 ▼3.54 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 50.97 ▲0.47 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 83.70 ▼22.66 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 35.64 ▼4.29 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 51 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_woocommerce_yapay_intermediador_request |
wp_woocommerce_yapay_intermediador_transactions |
wp_woocommerce_yapay_intermediador_response |
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
woocommerce_yapay_intermediador_db_version |
Browser metrics Passed 4 tests
WooCommerce Yapay Intermediador: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲30 | 14.34 ▼0.01 | 1.89 ▲0.05 | 44.53 ▼4.19 |
Dashboard /wp-admin | 2,195 ▲15 | 5.62 ▲0.10 | 90.34 ▼3.94 | 41.24 ▼2.09 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.00 ▼0.01 | 38.26 ▲1.64 | 37.18 ▲0.52 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.94 ▲0.93 | 701.87 ▲33.61 | 58.31 ▼4.01 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.09 ▼0.04 | 97.38 ▼12.47 | 45.16 ▼1.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- woocommerce_yapay_intermediador_db_version
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% 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
Almost there! Just fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/woo-yapay/templates/orders/wc_yapay_intermediador_bs_order.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/woo-yapay/templates/orders/wc_yapay_intermediador_pix_order.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Página dos plugins no Wordpress, onde clicar para configurar as formas de pagamento), #2 (Página de configuração do plugin)
woo-yapay/wc-yapay_intermediador.php 92% from 13 tests
"WooCommerce Yapay Intermediador" version 0.6.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("woo-yapay.php" instead of "wc-yapay_intermediador.php")
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 plugin4,517 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 559 | 142 | 2,461 |
SVG | 19 | 5 | 3 | 1,445 |
JavaScript | 1 | 38 | 6 | 472 |
CSS | 1 | 29 | 1 | 139 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 28.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 5.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 44 | 95.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.35% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ 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
6 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/banner_semlogo_formas.png | 21.17KB | 6.59KB | ▼ 68.85% |
assets/images/BannerYapayIntermediador890px.png | 28.35KB | 9.86KB | ▼ 65.21% |
assets/images/paymentFlagsTc.png | 30.92KB | 8.74KB | ▼ 71.72% |
assets/images/overlay.png | 0.27KB | 0.10KB | ▼ 62.37% |
assets/images/close.png | 1.48KB | 1.73KB | 0.00% |