Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼0.91MB] [CPU: ▼32.40ms] Passed 4 tests
Server-side resources used by GiroCheckout Plug-in for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 42.08 ▲3.27 |
Dashboard /wp-admin | 3.04 ▼0.26 | 25.98 ▼28.85 |
Posts /wp-admin/edit.php | 3.04 ▼0.32 | 24.76 ▼29.12 |
Add New Post /wp-admin/post-new.php | 3.04 ▼2.85 | 26.74 ▼63.35 |
Media Library /wp-admin/upload.php | 3.04 ▼0.19 | 26.03 ▼8.28 |
Server storage [IO: ▲0.98MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 118 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_girocheckout_orders_status |
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for GiroCheckout Plug-in for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.25 ▼0.03 | 1.80 ▲0.17 | 44.69 ▲2.14 |
Dashboard /wp-admin | 2,192 ▲21 | 5.50 ▼0.10 | 88.50 ▼3.56 | 39.08 ▼4.89 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▲0.06 | 38.49 ▼2.13 | 33.98 ▼3.14 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.07 ▲0.03 | 673.51 ▲51.82 | 51.52 ▲6.56 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.19 ▲0.00 | 104.88 ▼0.31 | 46.84 ▲1.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'girocheckout_update_admin_options' not found or invalid function name
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
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 no errors were found, this is by no means 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
The following issues need your attention
- 66× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'GiroCheckout_SDK_AbstractApi' not found in wp-content/plugins/girocheckout/library/api/bluecode/GiroCheckout_SDK_BlueCodeTransaction.php:9
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/girocheckout/payments/gc_bluecode.php:2
- > PHP Fatal error
Uncaught Error: Class 'GiroCheckout_SDK_AbstractApi' not found in wp-content/plugins/girocheckout/library/api/paydirekt/GiroCheckout_SDK_PaydirektTransaction.php:9
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/girocheckout/payments/gc_paydirekt.php:2
- > PHP Fatal error
Uncaught Error: Class 'GiroCheckout_SDK_AbstractApi' not found in wp-content/plugins/girocheckout/library/api/paydirekt/GiroCheckout_SDK_PaydirektVoid.php:9
- > PHP Fatal error
Uncaught Error: Class 'GiroCheckout_SDK_AbstractApi' not found in wp-content/plugins/girocheckout/library/api/paypage/GiroCheckout_SDK_PaypageRefund.php:8
- > PHP Fatal error
Uncaught Error: Class 'GiroCheckout_SDK_AbstractApi' not found in wp-content/plugins/girocheckout/library/api/giropay/GiroCheckout_SDK_GiropayTransactionWithGiropayID.php:9
- > PHP Fatal error
Uncaught Error: Class 'GiroCheckout_SDK_AbstractApi' not found in wp-content/plugins/girocheckout/library/api/creditcard/GiroCheckout_SDK_CreditCardVoid.php:8
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/girocheckout/payments/gc_eps.php:2
- > PHP Fatal error
Uncaught Error: Class 'GiroCheckout_SDK_AbstractApi' not found in wp-content/plugins/girocheckout/library/api/creditcard/GiroCheckout_SDK_CreditCardInitform.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: payment, woocommerce
girocheckout/girocheckout.php Passed 13 tests
The entry point to "GiroCheckout Plug-in for WooCommerce" version 4.1.9 is a PHP file that has certain tags in its header comment area
70 characters long description:
Plugin to integrate the GiroCheckout payment methods into WooCommerce.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin8,315 lines of code in 83 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 80 | 1,618 | 3,622 | 7,680 |
PO File | 3 | 242 | 381 | 635 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 10.76 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 4.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 54.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 78 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 78 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 207 | |
▷ Static methods | 27 | 13.04% |
▷ Public methods | 200 | 96.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 3.38% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 97 | |
▷ Global constants | 5 | 5.15% |
▷ Class constants | 92 | 94.85% |
▷ Public constants | 92 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
12 PNG files occupy 0.12MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/visa_msc_40px.png | 17.21KB | 1.71KB | ▼ 90.04% |
img/visa_msc_jcb_40px.png | 4.93KB | 2.46KB | ▼ 50.08% |
img/gc_sofortuw.png | 8.75KB | 1.82KB | ▼ 79.23% |
img/gc_paydirekt.png | 14.50KB | 3.33KB | ▼ 77.06% |
img/visa_msc_amex_jcb_40px.png | 6.60KB | 2.89KB | ▼ 56.25% |