Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼6.05ms] Passed 4 tests
This is a short check of server-side resources used by WooCommerce Redsys Gateway Light
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 38.38 ▼8.20 |
Dashboard /wp-admin | 3.42 ▲0.07 | 45.25 ▼12.07 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 44.81 ▲1.92 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 79.72 ▼5.43 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 37.70 ▲1.49 |
About Redsys /wp-admin/admin.php?page=redsys-about-page | 3.31 | 30.08 |
Server storage [IO: ▲1.11MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 50 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
woocommerce-redsys-version |
theysaidso_admin_options |
woocommerce-redsys-rate |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce Redsys Gateway Light
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲18 | 14.54 ▲0.19 | 1.78 ▼0.50 | 43.72 ▼7.54 |
Dashboard /wp-admin | 2,198 ▲24 | 5.57 ▲0.04 | 81.82 ▼2.56 | 39.48 ▲2.45 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.97 ▼0.01 | 35.54 ▲1.75 | 34.66 ▼4.75 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.23 ▼0.46 | 747.00 ▲77.92 | 59.06 ▲2.13 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.23 ▼0.00 | 108.28 ▲3.98 | 46.85 ▲2.63 |
About Redsys /wp-admin/admin.php?page=redsys-about-page | 1,484 | 6.43 | 49.55 | 81.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 8 options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- woocommerce-redsys-rate
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- woocommerce-redsys-version
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Please fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\WooCommerce\\Blocks\\Payments\\Integrations\\AbstractPaymentMethodType' not found in wp-content/plugins/woo-redsys-gateway-light/includes/blocks/wc-gateway-bizum-lite-support.php:9
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\WooCommerce\\Blocks\\Payments\\Integrations\\AbstractPaymentMethodType' not found in wp-content/plugins/woo-redsys-gateway-light/includes/blocks/wc-gateway-redsys-lite-support.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/woo-redsys-gateway-light/woocommerce-redsys.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
woo-redsys-gateway-light/woocommerce-redsys.php 77% from 13 tests
The primary PHP file in "WooCommerce Redsys Gateway Light" version 5.3.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-redsys-gateway-light.php" instead of "woocommerce-redsys.php")
- Description: The description should be shorter than 140 characters (currently 164 characters long)
- Requires at least: The required version number must match the one declared in readme.txt ("4.0" instead of "7.4")
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
Success! There were no dangerous files found in this plugin7,557 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 427 | 987 | 6,758 |
SVG | 1 | 0 | 0 | 403 |
CSS | 3 | 2 | 0 | 383 |
XML | 1 | 0 | 0 | 12 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 58.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 147.00 |
Average method complexity | 3.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 48.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 2 | 25.00% |
Methods | 163 | |
▷ Static methods | 1 | 0.61% |
▷ Public methods | 163 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 36 | |
▷ Named functions | 32 | 88.89% |
▷ Anonymous functions | 4 | 11.11% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
10 PNG files occupy 0.30MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icono-redsys.png | 10.02KB | 3.98KB | ▼ 60.29% |
assets/images/second-terminal.png | 34.42KB | 11.56KB | ▼ 66.41% |
assets/images/bizum.png | 4.11KB | 2.37KB | ▼ 42.38% |
assets/images/redsys.png | 2.04KB | 1.28KB | ▼ 37.37% |
assets/images/sequential.png | 55.21KB | 18.45KB | ▼ 66.58% |