Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼3.94ms] Passed 4 tests
An overview of server-side resources used by MultiSafepay plugin for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.13 ▼4.40 |
Dashboard /wp-admin | 3.31 ▼0.04 | 44.01 ▼18.21 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.43 ▲1.67 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.39 ▲5.19 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.89 ▲5.33 |
Server storage [IO: ▲1.81MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 329 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
MultiSafepay plugin for WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲43 | 14.32 ▼0.06 | 1.81 ▼0.33 | 42.43 ▼2.30 |
Dashboard /wp-admin | 2,195 ▲20 | 5.61 ▼0.11 | 90.61 ▼20.13 | 44.12 ▼1.84 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.01 ▲0.03 | 39.62 ▲5.90 | 42.34 ▲6.38 |
Add New Post /wp-admin/post-new.php | 1,526 ▼1 | 23.00 ▼0.15 | 587.69 ▼105.17 | 58.48 ▼2.41 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.27 ▲0.08 | 97.52 ▲3.66 | 43.00 ▲1.19 |
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
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
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)
The smoke test was a success, however most plugin functionality was not tested
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
- 86× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'MultiSafepay\\Api\\Base\\DataObject' not found in wp-content/plugins/multisafepay/vendor/multisafepay/php-sdk/src/Api/Transactions/TransactionResponse/RelatedTransaction.php:16
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Discovery\\Exception' not found in wp-content/plugins/multisafepay/vendor/php-http/discovery/src/Exception/NotFoundException.php:14
- > PHP Fatal error
Uncaught Error: Interface 'MultiSafepay\\Api\\Transactions\\OrderRequest\\Arguments\\GatewayInfoInterface' not found in wp-content/plugins/multisafepay/vendor/multisafepay/php-sdk/src/Api/Transactions/OrderRequest/Arguments/GatewayInfo/Wallet.php:15
- > PHP Fatal error
Uncaught Error: Class 'MultiSafepay\\ValueObject\\CartItem' not found in wp-content/plugins/multisafepay/vendor/multisafepay/php-sdk/src/Api/Transactions/OrderRequest/Arguments/ShoppingCart/ShippingItem.php:15
- > PHP Fatal error
Uncaught Error: Class 'MultiSafepay\\ValueObject\\CartItem' not found in wp-content/plugins/multisafepay/vendor/multisafepay/php-sdk/src/Api/Transactions/OrderRequest/Arguments/ShoppingCart/Item.php:15
- > PHP Fatal error
Uncaught Error: Class 'MultiSafepay\\Api\\AbstractManager' not found in wp-content/plugins/multisafepay/vendor/multisafepay/php-sdk/src/Api/TokenManager.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Discovery\\Strategy\\DiscoveryStrategy' not found in wp-content/plugins/multisafepay/vendor/php-http/discovery/src/Strategy/PuliBetaStrategy.php:20
- > PHP Fatal error
Uncaught Error: Class 'Http\\Discovery\\ClassDiscovery' not found in wp-content/plugins/multisafepay/vendor/php-http/discovery/src/StreamFactoryDiscovery.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestFactoryInterface' not found in wp-content/plugins/multisafepay/vendor/php-http/discovery/src/Psr17Factory.php:42
- > PHP Fatal error
Uncaught Error: Class 'MultiSafepay\\Api\\Base\\DataObject' not found in wp-content/plugins/multisafepay/vendor/multisafepay/php-sdk/src/Api/Transactions/TransactionResponse/OrderAdjustment.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Tags: You are using too many tags: 12 tag instead of maximum 10
multisafepay/multisafepay.php Passed 13 tests
The primary PHP file in "MultiSafepay plugin for WooCommerce" version 6.2.0 is used by WordPress to initiate all plugin functionality
27 characters long description:
MultiSafepay Payment Plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin14,355 lines of code in 240 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 208 | 2,436 | 7,197 | 10,696 |
Markdown | 18 | 617 | 0 | 1,674 |
PO File | 1 | 259 | 367 | 908 |
JSON | 7 | 0 | 0 | 646 |
JavaScript | 3 | 52 | 6 | 256 |
CSS | 2 | 4 | 0 | 167 |
XML | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 6.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 73.00 |
Average method complexity | 2.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 45 | |
Interfaces | 23 | |
Traits | 5 | |
Classes | 166 | |
▷ Abstract classes | 2 | 1.20% |
▷ Concrete classes | 164 | 98.80% |
▷ Final classes | 15 | 9.15% |
Methods | 1,021 | |
▷ Static methods | 89 | 8.72% |
▷ Public methods | 906 | 88.74% |
▷ Protected methods | 7 | 0.69% |
▷ Private methods | 108 | 10.58% |
Functions | 9 | |
▷ Named functions | 3 | 33.33% |
▷ Anonymous functions | 6 | 66.67% |
Constants | 111 | |
▷ Global constants | 3 | 2.70% |
▷ Class constants | 108 | 97.30% |
▷ Public constants | 96 | 88.89% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
70 PNG files occupy 0.92MB with 0.52MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/public/img/klarna.png | 11.79KB | 4.41KB | ▼ 62.62% |
assets/public/img/fashioncheque.png | 8.52KB | 3.95KB | ▼ 53.61% |
assets/public/img/wijncadeau.png | 13.70KB | 6.18KB | ▼ 54.90% |
assets/public/img/visa.png | 10.96KB | 5.50KB | ▼ 49.82% |
assets/public/img/good4fun.png | 22.70KB | 9.19KB | ▼ 59.53% |