Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Error in wp-content/plugins/woo-wallee/includes/class-wc-wallee-migration.php+86
Uncaught Error: Call to undefined function wc_maybe_define_constant() in wp-content/plugins/woo-wallee/includes/class-wc-wallee-migration.php:86
Stack trace:
#0 wp-includes/class-wp-hook.php(310): WC_Wallee_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: ▼4.42ms] Passed 4 tests
This is a short check of server-side resources used by wallee
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.68 ▼3.82 |
Dashboard /wp-admin | 3.31 ▲0.00 | 43.60 ▼3.00 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.42 ▼0.45 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.21 ▼10.26 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.73 ▼0.58 |
Server storage [IO: ▲7.84MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 674 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
wallee: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.48 ▼0.27 | 1.73 ▼0.34 | 49.71 ▲0.25 |
Dashboard /wp-admin | 2,203 ▲18 | 5.78 ▲0.73 | 100.37 ▼19.79 | 37.72 ▼3.62 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▲0.00 | 34.00 ▼3.25 | 34.06 ▲0.38 |
Add New Post /wp-admin/post-new.php | 1,542 ▲22 | 18.24 ▼4.83 | 595.73 ▼71.87 | 54.44 ▼15.21 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.21 ▼0.03 | 93.22 ▼8.07 | 41.54 ▼3.74 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 337× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Wallee\\Sdk\\Model\\ModelInterface' not found in wp-content/plugins/woo-wallee/wallee-sdk/lib/Model/Transaction.php:35
- > PHP Fatal error
Uncaught Error: Interface 'Wallee\\Sdk\\Model\\ModelInterface' not found in wp-content/plugins/woo-wallee/wallee-sdk/lib/Model/EntityQuery.php:35
- > PHP Fatal error
Uncaught Error: Interface 'Wallee\\Sdk\\Model\\ModelInterface' not found in wp-content/plugins/woo-wallee/wallee-sdk/lib/Model/ShopifySubscription.php:35
- > PHP Fatal error
Uncaught Error: Interface 'Wallee\\Sdk\\Model\\ModelInterface' not found in wp-content/plugins/woo-wallee/wallee-sdk/lib/Model/WebAppConfirmationResponse.php:35
- > PHP Fatal error
Uncaught Error: Interface 'Wallee\\Sdk\\Model\\ModelInterface' not found in wp-content/plugins/woo-wallee/wallee-sdk/lib/Model/AbstractCustomerActive.php:34
- > PHP Fatal error
Uncaught Error: Class 'Wallee\\Sdk\\Model\\TransactionAwareEntity' not found in wp-content/plugins/woo-wallee/wallee-sdk/lib/Model/ConnectorInvocation.php:33
- > PHP Fatal error
Uncaught Error: Interface 'Wallee\\Sdk\\Model\\ModelInterface' not found in wp-content/plugins/woo-wallee/wallee-sdk/lib/Model/InvoiceReimbursement.php:35
- > PHP Fatal error
Uncaught Error: Interface 'Wallee\\Sdk\\Model\\ModelInterface' not found in wp-content/plugins/woo-wallee/wallee-sdk/lib/Model/RenderedDocument.php:35
- > PHP Fatal error
Uncaught Error: Class 'Wallee\\Sdk\\Model\\AbstractAccountUpdate' not found in wp-content/plugins/woo-wallee/wallee-sdk/lib/Model/AccountCreate.php:33
- > PHP Fatal error
Uncaught Error: Interface 'Wallee\\Sdk\\Model\\ModelInterface' not found in wp-content/plugins/woo-wallee/wallee-sdk/lib/Model/ShopifySubscriptionAddressCreate.php:35
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: You are using too many tags: 12 tag instead of maximum 10
woo-wallee/woocommerce-wallee.php 85% from 13 tests
The main PHP script in "wallee" version 2.1.24 is automatically included on every request by WordPress
Please take the time to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-wallee.php" instead of "woocommerce-wallee.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Almost there! Just fix the following issues
- For security reasons, never distribute binary or executable files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/woo-wallee/wallee-sdk/lib/ca-bundle.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 637 | 31,561 | 114,395 | 109,911 |
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 overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 19.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 198.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 71.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 628 | |
▷ Abstract classes | 5 | 0.80% |
▷ Concrete classes | 623 | 99.20% |
▷ Final classes | 10 | 1.61% |
Methods | 11,474 | |
▷ Static methods | 1,920 | 16.73% |
▷ Public methods | 11,233 | 97.90% |
▷ Protected methods | 175 | 1.53% |
▷ Private methods | 66 | 0.58% |
Functions | 5 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 5 | 100.00% |
Constants | 830 | |
▷ Global constants | 10 | 1.20% |
▷ Class constants | 820 | 98.80% |
▷ Public constants | 820 | 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.92MB 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-capture-woocommerce.png | 194.65KB | 55.14KB | ▼ 71.67% |
docs/en/resource/settings.png | 87.48KB | 36.58KB | ▼ 58.18% |
docs/en/resource/order-void-woocommerce.png | 194.68KB | 55.25KB | ▼ 71.62% |
docs/en/resource/order-refund-woocommerce.png | 187.64KB | 53.08KB | ▼ 71.71% |
docs/en/resource/method.png | 67.31KB | 30.69KB | ▼ 54.40% |