Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.61ms] Passed 4 tests
Analyzing server-side resources used by Woocommerce ESTO
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 34.82 ▼7.71 |
Dashboard /wp-admin | 3.33 ▼0.02 | 51.34 ▼10.69 |
Posts /wp-admin/edit.php | 3.39 ▲0.02 | 48.83 ▲1.17 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.02 | 86.91 ▼13.22 |
Media Library /wp-admin/upload.php | 3.26 ▲0.02 | 38.44 ▲1.52 |
Server storage [IO: ▲0.99MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 92 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Woocommerce ESTO
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲18 | 14.34 ▼0.36 | 1.53 ▼0.38 | 37.74 ▼5.61 |
Dashboard /wp-admin | 2,198 ▲21 | 5.59 ▼0.06 | 89.91 ▼8.56 | 41.61 ▼2.09 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.94 ▼0.02 | 37.17 ▼3.71 | 32.31 ▼3.32 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.11 ▲0.02 | 678.38 ▲21.23 | 52.86 ▲0.25 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.20 ▲0.01 | 100.39 ▲2.10 | 46.00 ▲3.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
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)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
Please fix the following items
- 14× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WC_Esto_Payment' not found in wp-content/plugins/woo-esto/includes/class-wc-esto-pay-later-payment.php:2
- > PHP Notice
Undefined variable: show_esto_3 in wp-content/plugins/woo-esto/assets/view/calculator.php on line 6
- > PHP Notice
Undefined variable: calc_text in wp-content/plugins/woo-esto/assets/view/calculator-archive.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'WC_Esto_Payment' not found in wp-content/plugins/woo-esto/includes/class-wc-esto-pay-payment.php:2
- > PHP Notice
Undefined variable: calc_text in wp-content/plugins/woo-esto/assets/view/calculator.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'WC_Esto_Payment' not found in wp-content/plugins/woo-esto/includes/class-wc-esto-x-payment.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woo-esto/includes/Payment.php:984
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/woo-esto/assets/view/calculator.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woo-esto/includes/Payment.php:984
- > PHP Fatal error
Uncaught Error: Class 'WC_Esto_Payment' not found in wp-content/plugins/woo-esto/includes/class-wc-pay-later-payment.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
No tags were detected
woo-esto/esto-payment.php 92% from 13 tests
The entry point to "Woocommerce ESTO" version 2.24.2 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-esto.php" instead of "esto-payment.php")
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
Success! There were no dangerous files found in this plugin5,901 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 561 | 381 | 2,656 |
PO File | 5 | 625 | 986 | 1,623 |
SVG | 20 | 0 | 16 | 1,442 |
CSS | 4 | 20 | 0 | 148 |
JavaScript | 3 | 3 | 0 | 32 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 34.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 98.00 |
Average method complexity | 4.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.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 | 96 | |
▷ Static methods | 3 | 3.12% |
▷ Public methods | 78 | 81.25% |
▷ Protected methods | 16 | 16.67% |
▷ Private methods | 2 | 2.08% |
Functions | 16 | |
▷ Named functions | 13 | 81.25% |
▷ Anonymous functions | 3 | 18.75% |
Constants | 13 | |
▷ Global constants | 3 | 23.08% |
▷ Class constants | 10 | 76.92% |
▷ Public constants | 10 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
39 PNG files occupy 0.60MB with 0.36MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/bank-logos/medicinos.png | 34.63KB | 7.53KB | ▼ 78.27% |
assets/images/icons/ESTO3EE.png | 8.07KB | 4.92KB | ▼ 38.97% |
assets/images/bank-logos/industra.png | 33.25KB | 11.34KB | ▼ 65.90% |
assets/images/bank-logos/pop_pankki.png | 24.31KB | 5.36KB | ▼ 77.95% |
assets/images/icons/ESTO3LV.png | 7.86KB | 4.84KB | ▼ 38.44% |