Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.27ms] Passed 4 tests
An overview of server-side resources used by Eupago Gateway For Woocommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 37.99 ▼5.94 |
Dashboard /wp-admin | 3.35 ▲0.04 | 44.11 ▼3.15 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 45.75 ▼2.49 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 84.55 ▼9.51 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.09 ▼2.15 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Eupago Gateway For Woocommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲16 | 14.54 ▲0.20 | 1.63 ▼0.46 | 39.59 ▼3.12 |
Dashboard /wp-admin | 2,208 ▲27 | 5.56 ▼0.12 | 87.02 ▼20.48 | 40.45 ▲2.79 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.00 ▲0.05 | 38.16 ▼0.04 | 34.44 ▼4.42 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 23.39 ▲0.25 | 651.32 ▼44.95 | 50.52 ▼9.57 |
Media Library /wp-admin/upload.php | 1,413 ▲13 | 4.26 ▲0.10 | 94.58 ▼8.66 | 41.65 ▼3.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% 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)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/eupago-gateway-for-woocommerce/includes/views/callback-script.php
- > /wp-content/plugins/eupago-gateway-for-woocommerce/templates/emails/plain-instructions.php
- 11× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eupago-gateway-for-woocommerce/includes/hooks/hooks-refund.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eupago-gateway-for-woocommerce/includes/views/eupago-admin-page.php:43
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/eupago-gateway-for-woocommerce/includes/views/html-admin-page.php:4
- > PHP Notice
Undefined index: callback_api_key in wp-content/plugins/eupago-gateway-for-woocommerce/includes/views/callback-script.php on line 7
- > PHP Notice
Undefined index: callback_url in wp-content/plugins/eupago-gateway-for-woocommerce/includes/views/callback-script.php on line 8
- > PHP Notice
Undefined index: client_secret in wp-content/plugins/eupago-gateway-for-woocommerce/includes/views/callback-script.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eupago-gateway-for-woocommerce/includes/hooks/hooks-sms.php:85
- > PHP Fatal error
Uncaught Error: Class 'WC_Integration' not found in wp-content/plugins/eupago-gateway-for-woocommerce/includes/class-wc-eupago-integration.php:12
- > PHP Fatal error
Uncaught Error: Class 'WC_Order' not found in wp-content/plugins/eupago-gateway-for-woocommerce/includes/views/order-meta-box.php:2
- > PHP Notice
Undefined index: client_id in wp-content/plugins/eupago-gateway-for-woocommerce/includes/views/callback-script.php on line 5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% 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
These attributes need your attention:
- Tags: There are too many tags (17 tag instead of maximum 10)
eupago-gateway-for-woocommerce/eupago-gateway-for-woocommerce.php 92% from 13 tests
"Eupago Gateway For Woocommerce" version 3.1.13's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 148 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected3,962 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 563 | 639 | 3,372 |
PO File | 1 | 151 | 304 | 403 |
CSS | 1 | 27 | 8 | 118 |
JavaScript | 1 | 7 | 13 | 69 |
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.40 |
Average class complexity | 38.20 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 3.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 130 | |
▷ Static methods | 2 | 1.54% |
▷ Public methods | 128 | 98.46% |
▷ Protected methods | 1 | 0.77% |
▷ Private methods | 1 | 0.77% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
15 PNG files occupy 0.13MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/eupago_logo.png | 2.36KB | 2.64KB | 0.00% |
assets/images/pagaqui_banner.png | 10.14KB | 3.88KB | ▼ 61.78% |
assets/images/multibanco_banner.png | 2.24KB | 1.31KB | ▼ 41.45% |
assets/images/eupago.png | 17.70KB | 7.46KB | ▼ 57.83% |
assets/images/payshop_banner.png | 13.44KB | 3.70KB | ▼ 72.49% |