Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.27ms] Passed 4 tests
An overview of server-side resources used by TrueLayer for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 45.01 ▲11.06 |
Dashboard /wp-admin | 3.34 ▲0.03 | 47.92 ▲1.83 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 48.56 ▼1.50 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 81.94 ▼13.48 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.28 ▲0.07 |
Server storage [IO: ▲1.43MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 451 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for TrueLayer for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲53 | 14.32 ▲0.10 | 1.94 ▲0.30 | 37.60 ▼3.76 |
Dashboard /wp-admin | 2,195 ▲17 | 5.60 ▼0.12 | 92.42 ▼21.67 | 42.09 ▼4.67 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.94 ▼0.08 | 39.20 ▼0.90 | 36.95 ▼1.63 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.60 ▲0.43 | 610.71 ▼6.86 | 53.24 ▲3.09 |
Media Library /wp-admin/upload.php | 1,394 ▼3 | 4.20 ▼0.02 | 94.24 ▼2.75 | 43.52 ▼0.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 205× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Stringable' not found in wp-content/plugins/truelayer-for-woocommerce/vendor/symfony/polyfill-php80/PhpToken.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/truelayer-for-woocommerce/vendor/psr/http-message/src/RequestInterface.php:26
- > PHP Fatal error
Uncaught Error: Class 'Ramsey\\Collection\\Queue' not found in wp-content/plugins/truelayer-for-woocommerce/vendor/ramsey/collection/src/DoubleEndedQueue.php:28
- > PHP Fatal error
Uncaught Error: Class 'Ramsey\\Uuid\\Uuid' not found in wp-content/plugins/truelayer-for-woocommerce/vendor/ramsey/uuid/src/Guid/Guid.php:51
- > PHP Fatal error
Uncaught Error: Interface 'Jose\\Component\\KeyManagement\\Analyzer\\KeyAnalyzer' not found in wp-content/plugins/truelayer-for-woocommerce/vendor/web-token/jwt-key-mgmt/Analyzer/ES512KeyAnalyzer.php:22
- > PHP Fatal error
Uncaught Error: Class 'FG\\ASN1\\Universal\\Set' not found in wp-content/plugins/truelayer-for-woocommerce/vendor/fgrosse/phpasn1/lib/ASN1/Composite/RelativeDistinguishedName.php:17
- > PHP Fatal error
Uncaught Error: Class 'FG\\ASN1\\AbstractString' not found in wp-content/plugins/truelayer-for-woocommerce/vendor/fgrosse/phpasn1/lib/ASN1/Universal/CharacterString.php:16
- > PHP Fatal error
Uncaught Error: Interface 'Ramsey\\Uuid\\Type\\TypeInterface' not found in wp-content/plugins/truelayer-for-woocommerce/vendor/ramsey/uuid/src/Type/NumberInterface.php:22
- > PHP Fatal error
Uncaught Error: Class 'Ramsey\\Collection\\AbstractCollection' not found in wp-content/plugins/truelayer-for-woocommerce/vendor/ramsey/collection/src/AbstractSet.php:25
- > PHP Fatal error
Uncaught Error: Class 'TrueLayer\\Signing\\AbstractJws' not found in wp-content/plugins/truelayer-for-woocommerce/vendor/truelayer/signing/src/Signer.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
8 plugin tags: ecommerce, open banking, e-commerce, payments, refunds...
truelayer-for-woocommerce/truelayer-for-woocommerce.php 92% from 13 tests
The principal PHP file in "TrueLayer for WooCommerce" v. 1.4.1 is loaded by WordPress automatically on each request
You should first fix the following items:
- Requires at least: The required version number must match the one declared in readme.txt ("5.0" instead of "6.0.0")
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
Good job! No executable or dangerous file extensions detected24,049 lines of code in 412 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 376 | 5,398 | 15,167 | 20,357 |
Markdown | 21 | 846 | 0 | 2,070 |
JSON | 3 | 0 | 0 | 1,374 |
JavaScript | 4 | 43 | 24 | 143 |
CSS | 2 | 8 | 0 | 48 |
make | 1 | 9 | 4 | 26 |
XML | 1 | 0 | 0 | 19 |
SVG | 1 | 0 | 0 | 6 |
Bourne Shell | 1 | 2 | 0 | 3 |
YAML | 2 | 0 | 0 | 3 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 6.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 89.00 |
Average method complexity | 2.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 58 | |
Interfaces | 57 | |
Traits | 8 | |
Classes | 290 | |
▷ Abstract classes | 19 | 6.55% |
▷ Concrete classes | 271 | 93.45% |
▷ Final classes | 66 | 24.35% |
Methods | 1,803 | |
▷ Static methods | 329 | 18.25% |
▷ Public methods | 1,518 | 84.19% |
▷ Protected methods | 123 | 6.82% |
▷ Private methods | 162 | 8.99% |
Functions | 72 | |
▷ Named functions | 46 | 63.89% |
▷ Anonymous functions | 26 | 36.11% |
Constants | 230 | |
▷ Global constants | 6 | 2.61% |
▷ Class constants | 224 | 97.39% |
▷ Public constants | 202 | 90.18% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/krokedil-logo.png | 2.33KB | 2.33KB | 0.21% |