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.00MB] [CPU: ▼6.56ms] Passed 4 tests
This is a short check of server-side resources used by IMMAGIT PayU LATAM Payment Gateway for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 34.94 ▼0.86 |
Dashboard /wp-admin | 3.31 ▲0.01 | 43.17 ▼2.05 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.76 ▼5.43 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 76.67 ▼17.88 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.59 ▼0.50 |
Server storage [IO: ▲2.62MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for IMMAGIT PayU LATAM Payment Gateway for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲35 | 14.28 ▲0.00 | 1.76 ▲0.19 | 37.81 ▼7.42 |
Dashboard /wp-admin | 2,202 ▲25 | 5.53 ▼0.14 | 81.42 ▼10.31 | 38.72 ▼6.20 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▲0.04 | 33.77 ▼1.05 | 37.86 ▲4.03 |
Add New Post /wp-admin/post-new.php | 1,543 ▲12 | 18.37 ▼4.68 | 614.26 ▼34.30 | 69.44 ▲2.31 |
Media Library /wp-admin/upload.php | 1,410 ▲10 | 4.26 ▲0.04 | 96.81 ▼3.88 | 42.02 ▼6.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: woocommerce, ecommerce, wordpress, payu, gateways...
wc-payu-payment-gateway/wc-payu-payment-gateway.php 77% from 13 tests
The main PHP file in "IMMAGIT PayU LATAM Payment Gateway for WooCommerce" ver. 1.1.3.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Requires PHP: The required version number did not match the one declared in readme.txt ("7.2" instead of "7.0")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 172 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin7,223 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 8 | 17,040 | 48,296 | 5,533 |
PHP | 7 | 134 | 101 | 1,689 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 71.60 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 163.00 |
Average method complexity | 6.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 62.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 1 | 20.00% |
▷ Concrete classes | 4 | 80.00% |
▷ Final classes | 0 | 0.00% |
Methods | 62 | |
▷ Static methods | 2 | 3.23% |
▷ Public methods | 62 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 4 | 66.67% |
▷ Anonymous functions | 2 | 33.33% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
10 PNG files occupy 0.18MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/btnpay.png | 6.02KB | 2.62KB | ▼ 56.52% |
assets/images/payulogoAR.png | 27.59KB | 9.03KB | ▼ 67.26% |
assets/images/payulogoPE.png | 20.62KB | 7.14KB | ▼ 65.37% |
assets/images/payulogoBR.png | 25.73KB | 8.48KB | ▼ 67.05% |
assets/images/payulogoCO.png | 26.07KB | 8.78KB | ▼ 66.33% |