Benchmarks
Plugin footprint 23% 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
- The plugin cannot be installed
- > 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
Server metrics [RAM: ▼1.65MB] [CPU: ▼54.52ms] Passed 4 tests
Analyzing server-side resources used by PayEx WooCommerce Payments
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.34 ▼1.12 | 7.02 ▼33.59 |
Dashboard /wp-admin | 2.36 ▼0.95 | 6.86 ▼45.93 |
Posts /wp-admin/edit.php | 2.36 ▼1.00 | 7.27 ▼44.02 |
Add New Post /wp-admin/post-new.php | 2.36 ▼3.53 | 8.32 ▼94.53 |
Media Library /wp-admin/upload.php | 2.36 ▼0.87 | 6.75 ▼25.50 |
Server storage [IO: ▲0.83MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 170 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_payex_transactions |
New WordPress options |
---|
woocommerce_payex_psp_version |
widget_theysaidso_widget |
widget_recent-posts |
recovery_mode_email_last_sent |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by PayEx WooCommerce Payments
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲99 | 13.56 ▼0.82 | 2.00 ▲0.20 | 37.39 ▼8.83 |
Dashboard /wp-admin | 2,215 ▲27 | 4.87 ▼1.03 | 110.28 ▲5.06 | 43.63 ▲0.52 |
Posts /wp-admin/edit.php | 2,101 ▲9 | 2.01 ▲0.00 | 40.40 ▼2.87 | 38.21 ▲4.39 |
Add New Post /wp-admin/post-new.php | 45 ▼1,488 | 0.44 ▼22.56 | 0.08 ▼572.58 | 9.84 ▼40.29 |
Media Library /wp-admin/upload.php | 1,394 ▲6 | 4.20 ▼0.04 | 103.98 ▲3.05 | 67.90 ▲25.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > 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
- Zombie tables detected upon uninstall: 1 table
- wp_payex_transactions
- Zombie WordPress options detected upon uninstall: 8 options
- widget_recent-posts
- widget_recent-comments
- recovery_mode_email_last_sent
- woocommerce_payex_psp_version
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% 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
Please take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/payex-woocommerce-payments/vendors/php-name-parser/vendor/aait/php-name-parser/examples.php
- > /wp-content/plugins/payex-woocommerce-payments/tests/bootstrap.php
- 41× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/payex-woocommerce-payments/vendors/php-name-parser/vendor/aait/php-name-parser/tests/FullNameParserTest.php:3
- > PHP Fatal error
Uncaught Error: Interface 'Ramsey\\Uuid\\Converter\umberConverterInterface' not found in wp-content/plugins/payex-woocommerce-payments/vendors/ramsey-uuid/vendor/ramsey/uuid/src/Converter/Number/DegradedNumberConverter.php:25
- > PHP Fatal error
Uncaught Error: Interface 'Ramsey\\Uuid\\Generator\\TimeGeneratorInterface' not found in wp-content/plugins/payex-woocommerce-payments/vendors/ramsey-uuid/vendor/ramsey/uuid/src/Generator/DefaultTimeGenerator.php:27
- > PHP Fatal error
Uncaught Error: Interface 'Ramsey\\Uuid\\Provider\odeProviderInterface' not found in wp-content/plugins/payex-woocommerce-payments/vendors/ramsey-uuid/vendor/ramsey/uuid/src/Provider/Node/RandomNodeProvider.php:25
- > PHP Fatal error
Uncaught Error: Interface 'Ramsey\\Uuid\\Generator\\RandomGeneratorInterface' not found in wp-content/plugins/payex-woocommerce-payments/vendors/ramsey-uuid/vendor/ramsey/uuid/src/Generator/PeclUuidRandomGenerator.php:23
- > PHP Warning
require_once(other/ide_stubs/libsodium.php): failed to open stream: No such file or directory in wp-content/plugins/payex-woocommerce-payments/vendors/ramsey-uuid/vendor/paragonie/random_compat/psalm-autoload.php on line 6
- > PHP Fatal error
Uncaught Error: Interface 'Ramsey\\Uuid\\Builder\\UuidBuilderInterface' not found in wp-content/plugins/payex-woocommerce-payments/vendors/ramsey-uuid/vendor/ramsey/uuid/src/Builder/DegradedUuidBuilder.php:24
- > PHP Fatal error
Uncaught Error: Interface 'Ramsey\\Uuid\\Generator\\RandomGeneratorInterface' not found in wp-content/plugins/payex-woocommerce-payments/vendors/ramsey-uuid/vendor/ramsey/uuid/src/Generator/SodiumRandomGenerator.php:24
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/payex-woocommerce-payments/vendors/payex-ecom-php/vendor/payex/payex-ecom-php/tests/TestCase.php:3
- > PHP Fatal error
Uncaught Error: Class 'TestCase' not found in wp-content/plugins/payex-woocommerce-payments/vendors/payex-ecom-php/vendor/payex/payex-ecom-php/tests/PurchaseTest.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% 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:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6 in payex-woocommerce-payments/assets to your readme.txt
payex-woocommerce-payments/payex-woocommerce-payments.php 92% from 13 tests
The entry point to "PayEx WooCommerce Payments" version 1.3.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- 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
No dangerous file extensions were detected8,921 lines of code in 135 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 104 | 1,604 | 4,737 | 7,418 |
Markdown | 8 | 287 | 0 | 524 |
JSON | 11 | 0 | 0 | 389 |
PO File | 2 | 183 | 375 | 376 |
YAML | 2 | 9 | 0 | 67 |
XML | 4 | 4 | 0 | 61 |
JavaScript | 1 | 5 | 0 | 60 |
CSS | 1 | 0 | 0 | 21 |
Bourne Shell | 1 | 2 | 0 | 3 |
INI | 1 | 0 | 1 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 9.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 143.00 |
Average method complexity | 2.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 11 | |
Traits | 0 | |
Classes | 68 | |
▷ Abstract classes | 1 | 1.47% |
▷ Concrete classes | 67 | 98.53% |
▷ Final classes | 0 | 0.00% |
Methods | 481 | |
▷ Static methods | 37 | 7.69% |
▷ Public methods | 431 | 89.60% |
▷ Protected methods | 38 | 7.90% |
▷ Private methods | 12 | 2.49% |
Functions | 33 | |
▷ Named functions | 28 | 84.85% |
▷ Anonymous functions | 5 | 15.15% |
Constants | 28 | |
▷ Global constants | 7 | 25.00% |
▷ Class constants | 21 | 75.00% |
▷ Public constants | 21 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 PNG files occupy 0.18MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/swish.png | 5.10KB | 2.48KB | ▼ 51.33% |
assets/images/creditcards.png | 41.36KB | 7.23KB | ▼ 82.53% |
assets/images/vipps.png | 4.07KB | 2.18KB | ▼ 46.40% |
docs/image3.png | 10.81KB | 5.04KB | ▼ 53.42% |
assets/images/invoice.png | 5.82KB | 2.67KB | ▼ 54.20% |