Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- The plugin did not install without errors
- > Error in wp-content/plugins/woo-postfinance-checkout/includes/class-wc-postfinancecheckout-migration.php+86
Uncaught Error: Call to undefined function wc_maybe_define_constant() in wp-content/plugins/woo-postfinance-checkout/includes/class-wc-postfinancecheckout-migration.php:86
Stack trace:
#0 wp-includes/class-wp-hook.php(310): WC_PostFinanceCheckout_Migration::install_db()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/includes/plugin.php(693): do_action()
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.57ms] Passed 4 tests
A check of server-side resources used by PostFinance Checkout
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 44.25 ▲4.02 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.77 ▼0.21 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.09 ▼3.39 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.31 ▼5.58 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.02 ▲2.90 |
Server storage [IO: ▲6.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 504 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for PostFinance Checkout
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.42 ▼0.16 | 2.00 ▲0.23 | 43.60 ▲1.61 |
Dashboard /wp-admin | 2,209 ▲21 | 5.04 ▼0.84 | 105.92 ▲3.60 | 42.57 ▼2.49 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.04 ▼0.02 | 35.54 ▼2.45 | 32.67 ▼5.68 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.31 ▲0.24 | 657.51 ▲38.55 | 57.78 ▲4.15 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.22 ▼0.03 | 96.40 ▼16.25 | 44.43 ▲2.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 230× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'PostFinanceCheckout\\Sdk\\Model\\ModelInterface' not found in wp-content/plugins/woo-postfinance-checkout/postfinancecheckout-sdk/lib/Model/Transaction.php:35
- > PHP Fatal error
Uncaught Error: Interface 'PostFinanceCheckout\\Sdk\\Model\\ModelInterface' not found in wp-content/plugins/woo-postfinance-checkout/postfinancecheckout-sdk/lib/Model/PaymentTerminalConfigurationVersion.php:35
- > PHP Fatal error
Uncaught Error: Interface 'PostFinanceCheckout\\Sdk\\Model\\ModelInterface' not found in wp-content/plugins/woo-postfinance-checkout/postfinancecheckout-sdk/lib/Model/Address.php:35
- > PHP Fatal error
Uncaught Error: Interface 'PostFinanceCheckout\\Sdk\\Model\\ModelInterface' not found in wp-content/plugins/woo-postfinance-checkout/postfinancecheckout-sdk/lib/Model/Feature.php:35
- > PHP Fatal error
Uncaught Error: Interface 'PostFinanceCheckout\\Sdk\\Model\\ModelInterface' not found in wp-content/plugins/woo-postfinance-checkout/postfinancecheckout-sdk/lib/Model/AnalyticsQuery.php:35
- > PHP Fatal error
Uncaught Error: Class 'PostFinanceCheckout\\Sdk\\Model\\AbstractHumanUserUpdate' not found in wp-content/plugins/woo-postfinance-checkout/postfinancecheckout-sdk/lib/Model/HumanUserCreate.php:33
- > PHP Fatal error
Uncaught Error: Interface 'PostFinanceCheckout\\Sdk\\Model\\ModelInterface' not found in wp-content/plugins/woo-postfinance-checkout/postfinancecheckout-sdk/lib/Model/Customer.php:35
- > PHP Fatal error
Uncaught Error: Interface 'PostFinanceCheckout\\Sdk\\Model\\ModelInterface' not found in wp-content/plugins/woo-postfinance-checkout/postfinancecheckout-sdk/lib/Model/LegalOrganizationForm.php:35
- > PHP Fatal error
Uncaught Error: Interface 'PostFinanceCheckout\\Sdk\\Model\\ModelInterface' not found in wp-content/plugins/woo-postfinance-checkout/postfinancecheckout-sdk/lib/Model/ChargeFlowLevelConfigurationType.php:35
- > PHP Fatal error
Uncaught Error: Interface 'PostFinanceCheckout\\Sdk\\Model\\ModelInterface' not found in wp-content/plugins/woo-postfinance-checkout/postfinancecheckout-sdk/lib/Model/EntityExportRequest.php:35
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
woo-postfinance-checkout/woocommerce-postfinancecheckout.php 85% from 13 tests
The principal PHP file in "PostFinance Checkout" v. 2.1.24 is loaded by WordPress automatically on each request
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("woo-postfinance-checkout.php" instead of "woocommerce-postfinancecheckout.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Please fix the following items
- Do not include executable or dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/woo-postfinance-checkout/postfinancecheckout-sdk/lib/ca-bundle.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 467 | 22,298 | 80,930 | 77,912 |
JavaScript | 7 | 130 | 56 | 1,005 |
CSS | 4 | 166 | 25 | 758 |
HTML | 1 | 1 | 0 | 716 |
PO File | 1 | 143 | 158 | 408 |
Markdown | 2 | 58 | 0 | 99 |
JSON | 1 | 0 | 0 | 34 |
XML | 1 | 1 | 0 | 20 |
SVG | 2 | 4 | 0 | 18 |
YAML | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 18.76 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 198.00 |
Average method complexity | 2.01 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 71.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 458 | |
▷ Abstract classes | 5 | 1.09% |
▷ Concrete classes | 453 | 98.91% |
▷ Final classes | 10 | 2.21% |
Methods | 8,119 | |
▷ Static methods | 1,354 | 16.68% |
▷ Public methods | 7,878 | 97.03% |
▷ Protected methods | 175 | 2.16% |
▷ Private methods | 66 | 0.81% |
Functions | 5 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 5 | 100.00% |
Constants | 614 | |
▷ Global constants | 10 | 1.63% |
▷ Class constants | 604 | 98.37% |
▷ Public constants | 604 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.93MB with 0.61MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
docs/en/resource/order-void-woocommerce.png | 194.68KB | 55.25KB | ▼ 71.62% |
docs/en/resource/order-capture-woocommerce.png | 194.65KB | 55.14KB | ▼ 71.67% |
docs/en/resource/method.png | 67.82KB | 31.12KB | ▼ 54.12% |
docs/en/resource/settings.png | 88.92KB | 37.60KB | ▼ 57.71% |
docs/en/resource/order-refund-woocommerce2.png | 215.40KB | 61.02KB | ▼ 71.67% |