Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Warning in wp-content/plugins/wc-buckaroo-bpe-gateway/install/migration/list/migration-2.24.1.php+72
Invalid argument supplied for foreach()
Server metrics [RAM: ▲0.12MB] [CPU: ▲3.05ms] Passed 4 tests
A check of server-side resources used by Buckaroo Woocommerce Payments Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 40.30 ▲1.65 |
Dashboard /wp-admin | 3.42 ▲0.11 | 52.62 ▲5.04 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 57.64 ▲11.59 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 96.13 ▼1.21 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 40.57 ▲6.70 |
Server storage [IO: ▲8.04MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Please try to fix the following items
- There were 6 files (111.06KB) illegally modified outside of "wp-content/plugins/wc-buckaroo-bpe-gateway/" and "wp-content/uploads/"
- (new file) wp-content/languages/plugins/wc-buckaroo-bpe-gateway-nl_NL.po
- (new file) wp-content/languages/plugins/wc-buckaroo-bpe-gateway-de_DE.po
- (new file) wp-content/languages/plugins/wc-buckaroo-bpe-gateway-fr_FR.mo
- (new file) wp-content/languages/plugins/wc-buckaroo-bpe-gateway-fr_FR.po
- (new file) wp-content/languages/plugins/wc-buckaroo-bpe-gateway-nl_NL.mo
- (new file) wp-content/languages/plugins/wc-buckaroo-bpe-gateway-de_DE.mo
Filesystem: 309 new files
Database: 2 new tables, 9 new options
New tables |
---|
wp_woocommerce_buckaroo_transactions |
wp_buckaroo_log |
New WordPress options |
---|
db_upgraded |
BUCKAROO_BPE_VERSION |
woocommerce_buckaroo_exodus |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
woocommerce_meta_box_errors |
Browser metrics Passed 4 tests
Buckaroo Woocommerce Payments Plugin: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲75 | 13.22 ▼1.17 | 4.95 ▲2.88 | 43.64 ▼4.92 |
Dashboard /wp-admin | 2,213 ▲28 | 5.87 ▲0.08 | 104.68 ▲8.00 | 39.47 ▼4.01 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.11 ▲0.12 | 41.68 ▲1.02 | 36.19 ▲1.57 |
Add New Post /wp-admin/post-new.php | 1,534 ▲13 | 18.21 ▼5.01 | 576.90 ▼35.64 | 50.72 ▼13.82 |
Media Library /wp-admin/upload.php | 1,401 ▲10 | 4.28 ▲0.08 | 96.79 ▲0.47 | 41.91 ▼1.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_buckaroo_log
- wp_woocommerce_buckaroo_transactions
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- BUCKAROO_BPE_VERSION
- woocommerce_meta_box_errors
- widget_recent-comments
- can_compress_scripts
- woocommerce_buckaroo_exodus
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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 take a closer look at the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wc-buckaroo-bpe-gateway/templates/payconiq/qrcode.php
- > /wp-content/plugins/wc-buckaroo-bpe-gateway/tests/bootstrap.php
- 93× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'BuckarooPaymentMethod' not found in wp-content/plugins/wc-buckaroo-bpe-gateway/library/api/paymentmethods/billink/billink.php:3
- > PHP Notice
Undefined variable: order_capture in wp-content/plugins/wc-buckaroo-bpe-gateway/library/klarnakp/capture-form.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wc-buckaroo-bpe-gateway/templates/idin/cart.php:7
- > PHP Fatal error
Uncaught Error: Class 'WC_Session_Handler' not found in wp-content/plugins/wc-buckaroo-bpe-gateway/library/class-wc-session-handler-buckaroo.php:7
- > PHP Fatal error
Uncaught Error: Class 'WC_Session_Handler' not found in wp-content/plugins/wc-buckaroo-bpe-gateway/library/class-wc-session-handler-buckaroo.php:7
- > PHP Fatal error
Uncaught Error: Class 'WC_Session_Handler' not found in wp-content/plugins/wc-buckaroo-bpe-gateway/library/class-wc-session-handler-buckaroo.php:7
- > PHP Fatal error
Uncaught Error: Class 'WC_Session_Handler' not found in wp-content/plugins/wc-buckaroo-bpe-gateway/library/class-wc-session-handler-buckaroo.php:7
- > PHP Fatal error
Uncaught Error: Class 'BuckarooConfig' not found in wp-content/plugins/wc-buckaroo-bpe-gateway/library/api/idin.php:71
- > PHP Fatal error
Uncaught Error: Class 'WC_Session_Handler' not found in wp-content/plugins/wc-buckaroo-bpe-gateway/library/class-wc-session-handler-buckaroo.php:7
- > PHP Fatal error
Uncaught Error: Class 'WC_Session_Handler' not found in wp-content/plugins/wc-buckaroo-bpe-gateway/library/class-wc-session-handler-buckaroo.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% 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
These attributes need to be fixed:
- Screenshots: Please describe screenshot #3 in wc-buckaroo-bpe-gateway/assets to your readme.txt
wc-buckaroo-bpe-gateway/index.php 92% from 13 tests
The primary PHP file in "Buckaroo Woocommerce Payments Plugin" version 3.9.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wc-buckaroo-bpe-gateway.php" instead of "index.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
It is important to fix the following items
- Do not distribute dangerous files with your plugin
- .lnk - File Shortcut in Windows
- ☣ wp-content/plugins/wc-buckaroo-bpe-gateway/library/api/wsdl/wsdl - Shortcut.lnk
- .lnk - File Shortcut in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 156 | 2,988 | 4,815 | 16,764 |
SVG | 49 | 14 | 47 | 9,303 |
JSON | 3 | 0 | 0 | 6,213 |
PO File | 3 | 735 | 820 | 1,848 |
JavaScript | 19 | 194 | 156 | 1,484 |
XSD | 25 | 0 | 0 | 1,399 |
CSS | 1 | 28 | 24 | 244 |
XML | 4 | 22 | 28 | 125 |
Bourne Shell | 1 | 21 | 11 | 123 |
Markdown | 2 | 21 | 0 | 67 |
YAML | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 13.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 385.00 |
Average method complexity | 3.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 48.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 136 | |
▷ Abstract classes | 4 | 2.94% |
▷ Concrete classes | 132 | 97.06% |
▷ Final classes | 2 | 1.52% |
Methods | 799 | |
▷ Static methods | 141 | 17.65% |
▷ Public methods | 563 | 70.46% |
▷ Protected methods | 151 | 18.90% |
▷ Private methods | 85 | 10.64% |
Functions | 99 | |
▷ Named functions | 60 | 60.61% |
▷ Anonymous functions | 39 | 39.39% |
Constants | 98 | |
▷ Global constants | 4 | 4.08% |
▷ Class constants | 94 | 95.92% |
▷ Public constants | 93 | 98.94% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
21 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
library/buckaroo_images/24x24/empayment.png | 3.74KB | 1.23KB | ▼ 67.08% |
library/buckaroo_images/24x24/billink.png | 2.82KB | 2.34KB | ▼ 17.02% |
library/buckaroo_images/24x24/emaestro.png | 3.72KB | 1.18KB | ▼ 68.27% |
library/buckaroo_images/24x24/sofort.png | 0.55KB | 0.49KB | ▼ 10.00% |
library/buckaroo_images/24x24/p24.png | 2.85KB | 1.87KB | ▼ 34.42% |