Benchmarks
Plugin footprint 22% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- Install procedure had errors
- > Warning in wp-admin/includes/class-wp-filesystem-direct.php+386
rmdir(/tmp/psp_65291ba4aa0d4): Directory not empty
Server metrics [RAM: ▼1.66MB] [CPU: ▼56.79ms] Passed 4 tests
Server-side resources used by PayEx WooCommerce Checkout
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.33 ▼1.13 | 6.81 ▼35.93 |
Dashboard /wp-admin | 2.35 ▼0.99 | 10.00 ▼56.16 |
Posts /wp-admin/edit.php | 2.36 ▼1.00 | 8.53 ▼42.42 |
Add New Post /wp-admin/post-new.php | 2.35 ▼3.53 | 7.23 ▼92.65 |
Media Library /wp-admin/upload.php | 2.36 ▼0.87 | 8.29 ▼31.23 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
These are issues you should consider
- There were 162 files (725.95KB) illegally modified outside of "wp-content/plugins/payex-woocommerce-checkout/" and "wp-content/uploads/"
- (new file) wp-content/plugins/payex-woocommerce-payments/assets/images/payex.gif
- (new file) wp-content/plugins/payex-woocommerce-payments/includes/class-wc-background-payex-queue.php
- (new file) wp-content/plugins/payex-woocommerce-payments/assets/images/creditcards.png
- (new file) wp-content/plugins/payex-woocommerce-payments/changelog.txt
- (new file) wp-content/plugins/payex-woocommerce-payments/includes/abstracts/abstract-wc-payment-gateway-payex.php
- (new file) wp-content/plugins/payex-woocommerce-payments/assets/js/admin.js
- (new file) wp-content/plugins/payex-woocommerce-payments/assets/images/swish.png
- (new file) wp-content/plugins/payex-woocommerce-payments/.travis.yml
- (new file) wp-content/plugins/payex-woocommerce-payments/assets/images/invoice.png
- (new file) wp-content/plugins/payex-woocommerce-payments/assets/images/vipps.png
- ...
Filesystem: 34 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_payex_transactions |
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
recovery_mode_email_last_sent |
widget_theysaidso_widget |
woocommerce_payex_psp_version |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
PayEx WooCommerce Checkout: 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,824 ▲63 | 14.74 ▲0.09 | 1.80 ▼0.03 | 44.18 ▲3.41 |
Dashboard /wp-admin | 2,233 ▲30 | 4.87 ▼1.01 | 116.09 ▲7.29 | 44.01 ▼0.77 |
Posts /wp-admin/edit.php | 2,114 ▲11 | 2.02 ▲0.04 | 36.71 ▼7.27 | 32.20 ▼3.70 |
Add New Post /wp-admin/post-new.php | 45 ▼1,481 | 0.44 ▼17.08 | 0.06 ▼658.42 | 10.38 ▼42.94 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.20 ▼0.01 | 98.82 ▲3.02 | 61.06 ▲18.01 |
Uninstaller [IO: ▲0.71MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/payex-woocommerce-payments/vendors/php-name-parser/vendor/aait/php-name-parser/parser.php+437
Array and string offset access syntax with curly braces is deprecated
- The uninstall procedure failed, leaving 1 table in the database
- wp_payex_transactions
- Zombie WordPress options were found after uninstall: 8 options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- recovery_mode_email_last_sent
- widget_recent-comments
- woocommerce_payex_psp_version
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% 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
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/payex-woocommerce-checkout/tests/bootstrap.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WC_Unit_Test_Case' not found in wp-content/plugins/payex-woocommerce-checkout/tests/unit-tests/wc-gateway-payex-checkout.php:3
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3 in payex-woocommerce-checkout/assets to your readme.txt
payex-woocommerce-checkout/payex-woocommerce-checkout.php 85% from 13 tests
"PayEx WooCommerce Checkout" version 2.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Requires at least: Required version must match the one declared in readme.txt ("4.7" instead of "3.0.0")
Code Analysis Passed 3 tests
File types Passed 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
Everything looks great! No dangerous files found in this plugin2,231 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 281 | 360 | 1,033 |
JavaScript | 3 | 128 | 158 | 863 |
CSS | 4 | 33 | 41 | 134 |
PO File | 1 | 55 | 90 | 70 |
Markdown | 2 | 29 | 0 | 51 |
YAML | 1 | 8 | 4 | 49 |
XML | 1 | 1 | 0 | 19 |
JSON | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 43.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 104.00 |
Average method complexity | 3.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 5 | 10.42% |
▷ Public methods | 46 | 95.83% |
▷ Protected methods | 2 | 4.17% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.12MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
docs/image4.png | 8.35KB | 5.43KB | ▼ 34.90% |
docs/image3.png | 47.82KB | 15.66KB | ▼ 67.26% |
docs/image2.png | 9.45KB | 4.37KB | ▼ 53.71% |
docs/image5.png | 17.30KB | 6.96KB | ▼ 59.77% |
docs/image1.png | 7.68KB | 3.67KB | ▼ 52.17% |