Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.00MB] [CPU: ▼5.50ms] Passed 4 tests
A check of server-side resources used by Estonian Banklinks for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.74 ▼0.48 |
Dashboard /wp-admin | 3.31 ▼0.03 | 44.78 ▼11.41 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.78 ▲0.53 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 88.45 ▼6.16 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 32.89 ▼3.96 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Estonian Banklinks for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.25 ▼1.54 | 1.79 ▲0.01 | 39.30 ▼4.16 |
Dashboard /wp-admin | 2,206 ▲15 | 5.83 ▲0.92 | 105.79 ▼3.55 | 36.72 ▼5.61 |
Posts /wp-admin/edit.php | 2,092 ▲6 | 2.06 ▲0.08 | 41.38 ▲6.43 | 35.96 ▲0.48 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 18.61 ▼4.76 | 631.96 ▼49.82 | 57.35 ▲4.49 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.17 ▼0.12 | 102.89 ▼1.73 | 42.60 ▼3.61 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 18× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WC_Banklink_Ipizza' not found in wp-content/plugins/estonian-banklinks-for-woocommerce/includes/gateways/class-wc-banklink-lhv-gateway.php:2
- > PHP Fatal error
Uncaught Error: Class 'WC_Banklink_Ipizza' not found in wp-content/plugins/estonian-banklinks-for-woocommerce/includes/gateways/class-wc-banklink-seb-gateway.php:2
- > PHP Fatal error
Uncaught Error: Class 'WC_Banklink_Ipizza' not found in wp-content/plugins/estonian-banklinks-for-woocommerce/includes/gateways/class-wc-banklink-nordea-ipizza-gateway.php:2
- > PHP Fatal error
Uncaught Error: Class 'WC_Banklink_Solo' not found in wp-content/plugins/estonian-banklinks-for-woocommerce/includes/gateways/class-wc-banklink-nordea-gateway.php:2
- > PHP Fatal error
Uncaught Error: Class 'WC_Banklink' not found in wp-content/plugins/estonian-banklinks-for-woocommerce/includes/abstracts/class-wc-banklink-maksekeskus.php:2
- > PHP Fatal error
Uncaught Error: Class 'WC_Banklink_Maksekeskus' not found in wp-content/plugins/estonian-banklinks-for-woocommerce/includes/gateways/class-wc-banklink-maksekeskus-redirect-gateway.php:2
- > PHP Fatal error
Uncaught Error: Class 'WC_Banklink_Maksekeskus' not found in wp-content/plugins/estonian-banklinks-for-woocommerce/includes/gateways/class-wc-banklink-maksekeskus-billing-api.php:2
- > PHP Fatal error
Uncaught Error: Class 'WC_Banklink' not found in wp-content/plugins/estonian-banklinks-for-woocommerce/includes/abstracts/class-wc-banklink-ipizza.php:2
- > PHP Fatal error
Uncaught Error: Class 'WC_Banklink' not found in wp-content/plugins/estonian-banklinks-for-woocommerce/includes/gateways/class-wc-banklink-estcard-gateway.php:2
- > PHP Notice
Undefined variable: methods in wp-content/plugins/estonian-banklinks-for-woocommerce/woocommerce/checkout/payment-method-maksekeskus.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: woocommerce, banklink, estonia, payment gateway, pangalink
estonian-banklinks-for-woocommerce/estonian-banklinks-for-woocommerce.php 85% from 13 tests
The primary PHP file in "Estonian Banklinks for WooCommerce" version 1.4 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("4.1" instead of "2.6")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,399 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 280 | 663 | 1,202 |
PO File | 1 | 59 | 81 | 164 |
LESS | 1 | 6 | 0 | 32 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 8.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 2.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 4 | 25.00% |
▷ Concrete classes | 12 | 75.00% |
▷ Final classes | 0 | 0.00% |
Methods | 74 | |
▷ Static methods | 1 | 1.35% |
▷ Public methods | 73 | 98.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.35% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
15 PNG files occupy 0.11MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/liisi.png | 3.20KB | 1.96KB | ▼ 38.64% |
assets/img/krediidipank.png | 1.08KB | 1.07KB | 0.45% |
assets/screenshot-2.png | 29.98KB | 13.50KB | ▼ 54.96% |
assets/img/swedbank.png | 1.07KB | 1.08KB | 0.00% |
assets/img/maksekeskus_redirect.png | 0.38KB | 0.40KB | 0.00% |