Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.00MB] [CPU: ▼176.23ms] Passed 4 tests
Server-side resources used by Checkout Finland for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 24.89 ▲9.89 |
Dashboard /wp-admin | 3.06 ▼0.00 | 32.16 ▼4.29 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 31.49 ▲1.91 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 68.71 ▼703.10 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 22.29 ▲0.58 |
Server storage [IO: ▲2.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 376 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Checkout Finland for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,666 ▲65 | 15.95 ▼0.03 | 8.27 ▲2.82 | 78.28 ▲2.14 |
Dashboard /wp-admin | 2,930 ▲34 | 6.07 ▼0.05 | 114.39 ▼20.90 | 168.70 ▼4.84 |
Posts /wp-admin/edit.php | 2,740 ▼0 | 3.23 ▼0.00 | 65.17 ▲0.38 | 135.69 ▼4.40 |
Add New Post /wp-admin/post-new.php | 3,698 ▼37 | 18.09 ▲0.06 | 434.74 ▼30.79 | 160.24 ▼0.89 |
Media Library /wp-admin/upload.php | 1,749 ▲3 | 5.56 ▲0.04 | 142.93 ▼5.65 | 201.18 ▲14.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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 items
- 186× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/op-payment-service-for-woocommerce/vendor/composer/installers/src/Composer/Installers/AkauntingInstaller.php:5
- > PHP Fatal error
Uncaught Error: Interface 'OpMerchantServices\\SDK\\Interfaces\\ResponseInterface' not found in wp-content/plugins/op-payment-service-for-woocommerce/vendor/checkout-finland/checkout-finland-php-sdk/src/Response/RevertPaymentAuthHoldResponse.php:17
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/op-payment-service-for-woocommerce/vendor/composer/installers/src/Composer/Installers/StarbugInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/op-payment-service-for-woocommerce/vendor/composer/installers/src/Composer/Installers/ElggInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/op-payment-service-for-woocommerce/vendor/composer/installers/src/Composer/Installers/MayaInstaller.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\UploadedFileInterface' not found in wp-content/plugins/op-payment-service-for-woocommerce/vendor/checkout-finland/checkout-finland-php-sdk/lib/guzzlehttp/psr7/src/UploadedFile.php:10
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/op-payment-service-for-woocommerce/vendor/composer/installers/src/Composer/Installers/RoundcubeInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/op-payment-service-for-woocommerce/vendor/composer/installers/src/Composer/Installers/MauticInstaller.php:7
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/op-payment-service-for-woocommerce/vendor/composer/installers/src/Composer/Installers/ZendInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/op-payment-service-for-woocommerce/vendor/composer/installers/src/Composer/Installers/EliasisInstaller.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: woocommerce
op-payment-service-for-woocommerce/plugin.php 77% from 13 tests
Analyzing the main PHP file in "Checkout Finland for WooCommerce" version 1.7.1
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
- Main file name: The principal plugin file should be the same as the plugin slug ("op-payment-service-for-woocommerce.php" instead of "plugin.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 175 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected49,412 lines of code in 353 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 293 | 4,243 | 9,988 | 34,024 |
JSON | 14 | 1 | 0 | 10,491 |
Markdown | 20 | 1,274 | 0 | 3,750 |
PO File | 2 | 128 | 142 | 388 |
Sass | 1 | 32 | 1 | 242 |
JavaScript | 4 | 15 | 15 | 199 |
YAML | 7 | 55 | 0 | 198 |
SVG | 8 | 0 | 8 | 90 |
Dockerfile | 1 | 8 | 0 | 10 |
XML | 1 | 0 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
CSS | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
These items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 9.28 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 179.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 23 | |
Interfaces | 23 | |
Traits | 5 | |
Classes | 233 | |
▷ Abstract classes | 3 | 1.29% |
▷ Concrete classes | 230 | 98.71% |
▷ Final classes | 25 | 10.87% |
Methods | 1,286 | |
▷ Static methods | 154 | 11.98% |
▷ Public methods | 1,054 | 81.96% |
▷ Protected methods | 80 | 6.22% |
▷ Private methods | 152 | 11.82% |
Functions | 207 | |
▷ Named functions | 71 | 34.30% |
▷ Anonymous functions | 136 | 65.70% |
Constants | 181 | |
▷ Global constants | 41 | 22.65% |
▷ Class constants | 140 | 77.35% |
▷ Public constants | 140 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin