Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼14.23ms] Passed 4 tests
An overview of server-side resources used by Paytrail for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 32.69 ▼43.95 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.65 ▼9.45 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 51.17 ▼1.33 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.63 ▼2.19 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.81 ▼1.31 |
Server storage [IO: ▲0.78MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 146 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Paytrail for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲13 | 14.57 ▲0.23 | 1.57 ▼1.86 | 38.38 ▼20.57 |
Dashboard /wp-admin | 2,189 ▲9 | 5.49 ▼0.16 | 101.36 ▼27.77 | 44.79 ▼14.00 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 1.98 ▼0.01 | 39.74 ▼4.20 | 42.61 ▲3.22 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 22.97 ▼0.15 | 642.41 ▼78.05 | 55.49 ▼3.86 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.19 ▼0.00 | 95.31 ▼4.96 | 40.70 ▼1.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 70× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Trait 'Paytrail\\SDK\\Util\\ObjectPropertyConverter' not found in wp-content/plugins/paytrail-for-woocommerce/vendor/paytrail/paytrail-php-sdk/src/Model/Token/Customer.php on line 20
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/paytrail-for-woocommerce/vendor/paytrail/paytrail-php-sdk/tests/Model/CustomerTest.php:11
- > PHP Fatal error
Uncaught Error: Class 'Paytrail\\WooCommercePaymentGateway\\Controllers\\AbstractController' not found in wp-content/plugins/paytrail-for-woocommerce/src/Controllers/CardCancel.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Paytrail\\SDK\\Interfaces\\ResponseInterface' not found in wp-content/plugins/paytrail-for-woocommerce/vendor/paytrail/paytrail-php-sdk/src/Response/RevertPaymentAuthHoldResponse.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Paytrail\\SDK\\Interfaces\\ResponseInterface' not found in wp-content/plugins/paytrail-for-woocommerce/vendor/paytrail/paytrail-php-sdk/src/Response/SettlementResponse.php:9
- > PHP Fatal error
Uncaught Error: Class 'Paytrail\\SDK\\PaytrailClient' not found in wp-content/plugins/paytrail-for-woocommerce/vendor/paytrail/paytrail-php-sdk/src/Client.php:50
- > PHP Fatal error
Uncaught Error: Interface 'Paytrail\\SDK\\Interfaces\\ResponseInterface' not found in wp-content/plugins/paytrail-for-woocommerce/vendor/paytrail/paytrail-php-sdk/src/Response/PaymentStatusResponse.php:20
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/paytrail-for-woocommerce/vendor/paytrail/paytrail-php-sdk/tests/Model/AddressTest.php:11
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/paytrail-for-woocommerce/vendor/paytrail/paytrail-php-sdk/tests/Model/Token/CardTest.php:11
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/paytrail-for-woocommerce/vendor/paytrail/paytrail-php-sdk/tests/Request/GetTokenRequestTest.php:11
- > 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 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
1 plugin tags: woocommerce
paytrail-for-woocommerce/plugin.php 92% from 13 tests
The main PHP script in "Paytrail for WooCommerce" version 1.3.10 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("paytrail-for-woocommerce.php" instead of "plugin.php")
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
No dangerous file extensions were detected16,193 lines of code in 137 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 109 | 2,189 | 4,664 | 7,793 |
JSON | 5 | 0 | 0 | 7,046 |
PO File | 2 | 130 | 146 | 388 |
Markdown | 4 | 126 | 0 | 347 |
Sass | 1 | 32 | 1 | 242 |
JavaScript | 4 | 15 | 15 | 199 |
SVG | 8 | 0 | 8 | 90 |
XML | 2 | 5 | 3 | 48 |
YAML | 1 | 7 | 0 | 39 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 8.16 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 128.00 |
Average method complexity | 2.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 18 | |
Interfaces | 9 | |
Traits | 3 | |
Classes | 84 | |
▷ Abstract classes | 4 | 4.76% |
▷ Concrete classes | 80 | 95.24% |
▷ Final classes | 2 | 2.50% |
Methods | 666 | |
▷ Static methods | 36 | 5.41% |
▷ Public methods | 588 | 88.29% |
▷ Protected methods | 46 | 6.91% |
▷ Private methods | 32 | 4.80% |
Functions | 54 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 54 | 100.00% |
Constants | 23 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 23 | 100.00% |
▷ Public constants | 17 | 73.91% |
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
PNG images were not found in this plugin