Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼6.69ms] Passed 4 tests
A check of server-side resources used by Cardflow for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 37.18 ▼3.71 |
Dashboard /wp-admin | 3.37 ▲0.06 | 49.69 ▼1.15 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 49.38 ▲0.06 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 79.38 ▼21.95 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 35.32 ▲1.31 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 58 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Cardflow for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲35 | 13.15 ▼1.19 | 1.60 ▼0.25 | 42.45 ▼3.19 |
Dashboard /wp-admin | 2,202 ▲22 | 5.61 ▼0.05 | 91.22 ▼8.58 | 39.35 ▼9.05 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.95 ▼0.07 | 40.05 ▲2.12 | 36.54 ▼2.52 |
Add New Post /wp-admin/post-new.php | 1,532 ▲1 | 23.44 ▲0.27 | 613.39 ▼83.33 | 66.92 ▲9.86 |
Media Library /wp-admin/upload.php | 1,410 ▲10 | 4.19 ▼0.02 | 97.55 ▼10.93 | 41.27 ▼4.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/cardflow-for-woocommerce/vendor/psr/http-message/src/RequestInterface.php:26
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/cardflow-for-woocommerce/vendor/cardflow/cardflow-php/src/HttpClient/Stream.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\ResponseInterface' not found in wp-content/plugins/cardflow-for-woocommerce/vendor/cardflow/cardflow-php/src/HttpClient/HttpResponse.php:8
- > PHP Fatal error
Uncaught Error: Class 'Cardflow\\Client\\Services\\AbstractService' not found in wp-content/plugins/cardflow-for-woocommerce/vendor/cardflow/cardflow-php/src/Services/GiftCardService.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Cardflow\\Client\\HttpClient\\CardflowHttpClientInterface' not found in wp-content/plugins/cardflow-for-woocommerce/vendor/cardflow/cardflow-php/src/HttpClient/CardflowHttpClient.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/cardflow-for-woocommerce/vendor/psr/http-message/src/ResponseInterface.php:22
- > PHP Fatal error
Uncaught Error: Class 'Cardflow\\Client\\Services\\AbstractService' not found in wp-content/plugins/cardflow-for-woocommerce/vendor/cardflow/cardflow-php/src/Services/TransactionService.php:19
- > PHP Fatal error
Uncaught Error: Class 'Cardflow\\Client\\Resources\\AbstractResource' not found in wp-content/plugins/cardflow-for-woocommerce/vendor/cardflow/cardflow-php/src/Resources/Transaction.php:8
- > PHP Fatal error
Uncaught Error: Class 'Cardflow\\Client\\Exceptions\\ApiException' not found in wp-content/plugins/cardflow-for-woocommerce/vendor/cardflow/cardflow-php/src/Exceptions/MissingParameterException.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/cardflow-for-woocommerce/vendor/psr/http-message/src/ServerRequestInterface.php:45
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: cardflow, cadeaubon, coupon, cadeaukaart, gift card...
cardflow-for-woocommerce/cardflow-woocommerce.php 92% from 13 tests
"Cardflow for WooCommerce" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("cardflow-for-woocommerce.php" instead of "cardflow-woocommerce.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin3,060 lines of code in 48 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 36 | 575 | 1,629 | 1,811 |
JSON | 4 | 0 | 0 | 413 |
SVG | 1 | 0 | 0 | 406 |
Markdown | 5 | 99 | 0 | 301 |
PO File | 1 | 25 | 32 | 105 |
XML | 1 | 2 | 0 | 24 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 6.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 2.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 8 | |
Traits | 2 | |
Classes | 20 | |
▷ Abstract classes | 2 | 10.00% |
▷ Concrete classes | 18 | 90.00% |
▷ Final classes | 13 | 72.22% |
Methods | 213 | |
▷ Static methods | 16 | 7.51% |
▷ Public methods | 193 | 90.61% |
▷ Protected methods | 6 | 2.82% |
▷ Private methods | 14 | 6.57% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 7 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 7 | 100.00% |
▷ Public constants | 1 | 14.29% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
.wordpress-org/icon-128x128.png | 8.97KB | 3.80KB | ▼ 57.59% |
.wordpress-org/icon-256x256.png | 21.94KB | 7.40KB | ▼ 66.28% |