Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.26ms] Passed 4 tests
Analyzing server-side resources used by Resurs Bank Payments for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.42 ▼1.38 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.68 ▼2.14 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.89 ▼4.97 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.29 ▼12.53 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.90 ▼1.11 |
Server storage [IO: ▲1.47MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 494 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Resurs Bank Payments for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.67 ▼0.04 | 1.81 ▲0.16 | 39.59 ▼4.53 |
Dashboard /wp-admin | 2,198 ▲26 | 5.58 ▼0.14 | 91.85 ▼25.44 | 42.21 ▼2.22 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 2.02 ▲0.06 | 40.80 ▼0.87 | 35.90 ▼6.41 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.16 ▼0.30 | 658.71 ▲62.50 | 52.90 ▲4.75 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.12 ▼0.06 | 93.66 ▼4.00 | 42.51 ▲0.40 |
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: 6 options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Please fix the following items
- 407× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Parse error
syntax error, unexpected 'Type' (T_STRING) in wp-content/plugins/resurs-bank-payments-for-woocommerce/lib/ecom/src/Lib/Model/PaymentMethod/ApplicationFormSpecResponse/ApplicationFormSpecElementResponse/Type.php on line 15
- > PHP Parse error
syntax error, unexpected 'public' (T_PUBLIC), expecting variable (T_VARIABLE) in wp-content/plugins/resurs-bank-payments-for-woocommerce/lib/ecom/src/Module/RcoCallback/Models/RegisterCallback/Request.php on line 20
- > PHP Parse error
syntax error, unexpected 'public' (T_PUBLIC), expecting variable (T_VARIABLE) in wp-content/plugins/resurs-bank-payments-for-woocommerce/lib/ecom/src/Module/Payment/Models/CreatePaymentRequest/Options/Callback.php on line 23
- > PHP Parse error
syntax error, unexpected ':', expecting ')' in wp-content/plugins/resurs-bank-payments-for-woocommerce/src/Util/Currency.php on line 29
- > PHP Parse error
syntax error, unexpected 'public' (T_PUBLIC), expecting variable (T_VARIABLE) in wp-content/plugins/resurs-bank-payments-for-woocommerce/lib/ecom/src/Lib/Model/Payment/Order.php on line 29
- > PHP Parse error
syntax error, unexpected ':', expecting ')' in wp-content/plugins/resurs-bank-payments-for-woocommerce/src/Settings/Api.php on line 40
- > PHP Parse error
syntax error, unexpected 'public' (T_PUBLIC), expecting variable (T_VARIABLE) in wp-content/plugins/resurs-bank-payments-for-woocommerce/lib/ecom/src/Module/Payment/Models/CreatePaymentRequest/Options.php on line 30
- > PHP Parse error
syntax error, unexpected ':', expecting ')' in wp-content/plugins/resurs-bank-payments-for-woocommerce/lib/ecom/src/Lib/Cache/AbstractCache.php on line 55
- > PHP Parse error
syntax error, unexpected ':', expecting ')' in wp-content/plugins/resurs-bank-payments-for-woocommerce/lib/ecom/tests/Integration/Module/PriceSignage/RepositoryTest.php on line 59
- > PHP Parse error
syntax error, unexpected 'public' (T_PUBLIC), expecting variable (T_VARIABLE) in wp-content/plugins/resurs-bank-payments-for-woocommerce/lib/ecom/src/Module/AnnuityFactor/Models/AnnuityInformationCollection.php on line 25
- > PHP Parse 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 90% from 29 tests
readme.txt 94% from 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
Please fix the following attributes:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
resurs-bank-payments-for-woocommerce/init.php 85% from 13 tests
"Resurs Bank Payments for WooCommerce" version 1.0.14's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("resurs-bank-payments-for-woocommerce.php" instead of "init.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("6.0" instead of "7.6.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin30,418 lines of code in 484 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 447 | 5,697 | 13,220 | 25,628 |
XML | 12 | 5 | 0 | 1,745 |
JSON | 5 | 0 | 0 | 1,436 |
Markdown | 3 | 115 | 0 | 568 |
CSS | 5 | 64 | 18 | 357 |
JavaScript | 5 | 52 | 174 | 286 |
Bourne Shell | 2 | 53 | 9 | 262 |
SVG | 4 | 0 | 1 | 112 |
YAML | 1 | 1 | 0 | 24 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 4.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 1.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 188 | |
Interfaces | 4 | |
Traits | 4 | |
Classes | 408 | |
▷ Abstract classes | 8 | 1.96% |
▷ Concrete classes | 400 | 98.04% |
▷ Final classes | 14 | 3.50% |
Methods | 1,527 | |
▷ Static methods | 418 | 27.37% |
▷ Public methods | 1,197 | 78.39% |
▷ Protected methods | 56 | 3.67% |
▷ Private methods | 274 | 17.94% |
Functions | 17 | |
▷ Named functions | 4 | 23.53% |
▷ Anonymous functions | 13 | 76.47% |
Constants | 64 | |
▷ Global constants | 4 | 6.25% |
▷ Class constants | 60 | 93.75% |
▷ Public constants | 42 | 70.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/ecom/src/Module/PaymentMethod/Widget/Resources/Images/swish.png | 12.95KB | 5.35KB | ▼ 58.70% |
lib/ecom/src/Module/PaymentMethod/Widget/Resources/Images/resurs.png | 15.42KB | 3.70KB | ▼ 76.01% |