Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼1.92MB] [CPU: ▼49.69ms] Passed 4 tests
Server-side resources used by Multibanco / MB Way / Transferência Simplificada / Payshop (by LUSOPAY) for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 5.29 ▼29.81 |
Dashboard /wp-admin | 2.09 ▼1.21 | 5.90 ▼42.57 |
Posts /wp-admin/edit.php | 2.09 ▼1.26 | 5.81 ▼38.35 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.79 | 5.69 ▼87.02 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 6.82 ▼30.80 |
Server storage [IO: ▲0.28MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Multibanco / MB Way / Transferência Simplificada / Payshop (by LUSOPAY) for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲42 | 14.36 ▲0.00 | 1.66 ▲0.03 | 42.70 ▲3.85 |
Dashboard /wp-admin | 2,206 ▲25 | 5.73 ▲0.08 | 80.76 ▼21.02 | 39.98 ▼2.77 |
Posts /wp-admin/edit.php | 2,115 ▲15 | 2.02 ▲0.05 | 35.04 ▼4.05 | 38.17 ▲1.77 |
Add New Post /wp-admin/post-new.php | 1,535 ▲1 | 23.00 ▲4.77 | 636.03 ▲1.42 | 56.01 ▼7.34 |
Media Library /wp-admin/upload.php | 1,408 ▲11 | 4.29 ▲0.06 | 96.39 ▼36.79 | 40.51 ▼12.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/multibanco-e-ou-payshop-by-lusopay/multibanco-e-ou-payshop-by-lusopay.php+40
in_array() expects parameter 2 to be array, bool given
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/multibanco-e-ou-payshop-by-lusopay/includes/views/html-admin-page-mbway.php:2
- > PHP Fatal error
Uncaught Error: Class 'WC_Order_Lusopay' not found in wp-content/plugins/multibanco-e-ou-payshop-by-lusopay/includes/views/order-meta-box.php:2
- > PHP Fatal error
Uncaught Error: Class 'WC_Integration' not found in wp-content/plugins/multibanco-e-ou-payshop-by-lusopay/includes/class-wc-lusopay-integration.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/multibanco-e-ou-payshop-by-lusopay/includes/views/html-admin-page-pisp.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/multibanco-e-ou-payshop-by-lusopay/includes/views/html-admin-page-mb-ps.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
multibanco-e-ou-payshop-by-lusopay/multibanco-e-ou-payshop-by-lusopay.php 85% from 13 tests
The entry point to "Multibanco / MB Way / Transferência Simplificada / Payshop (by LUSOPAY) for WooCommerce" version 3.0.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Description: The description should be shorter than 140 characters (currently 340 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin3,755 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 776 | 1,264 | 3,166 |
PO File | 1 | 177 | 266 | 570 |
JavaScript | 1 | 7 | 24 | 19 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 56.86 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 108.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 168 | |
▷ Static methods | 1 | 0.60% |
▷ Public methods | 165 | 98.21% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 1.79% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
imagens/MB.png | 8.32KB | 3.89KB | ▼ 53.26% |
imagens/multibanco_icon.png | 2.50KB | 0.72KB | ▼ 71.29% |
imagens/pisp_icon.png | 1.32KB | 1.20KB | ▼ 9.06% |
imagens/payshop_icon.png | 3.64KB | 1.89KB | ▼ 48.11% |