Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.65MB] [CPU: ▼1.58ms] Passed 4 tests
A check of server-side resources used by Product Fields, Addons and Price Calculator for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.14 ▲0.67 | 26.70 ▼13.18 |
Dashboard /wp-admin | 3.95 ▲0.65 | 51.42 ▲2.61 |
Posts /wp-admin/edit.php | 4.00 ▲0.65 | 52.09 ▲1.56 |
Add New Post /wp-admin/post-new.php | 6.55 ▲0.66 | 97.56 ▲2.71 |
Media Library /wp-admin/upload.php | 3.87 ▲0.64 | 42.53 ▲9.75 |
Settings /wp-admin/admin.php?page=wck_settings | 3.78 | 39.75 |
Server storage [IO: ▲1.24MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 341 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
wck_version |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Product Fields, Addons and Price Calculator for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,497 ▼249 | 14.45 ▲0.15 | 0.70 ▼1.15 | 18.96 ▼27.17 |
Dashboard /wp-admin | 2,235 ▲47 | 4.88 ▼1.02 | 114.50 ▲1.73 | 46.09 ▼0.62 |
Posts /wp-admin/edit.php | 2,121 ▲35 | 2.03 ▲0.04 | 41.91 ▲3.71 | 38.29 ▲2.99 |
Add New Post /wp-admin/post-new.php | 1,541 ▲27 | 17.62 ▲0.06 | 676.31 ▼3.05 | 63.91 ▲5.54 |
Media Library /wp-admin/upload.php | 1,420 ▲32 | 4.26 ▲0.12 | 101.53 ▼7.71 | 49.20 ▲1.53 |
Settings /wp-admin/admin.php?page=wck_settings | 790 | 2.08 | 28.27 | 28.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% 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)
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wc-kalkulator/vendor/symfony/expression-language/Resources/bin/generate_operator_regex.php
- 100× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\ExpressionLanguage\\ParsedExpression' not found in wp-content/plugins/wc-kalkulator/vendor/symfony/expression-language/SerializedParsedExpression.php:19
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\ExpressionLanguage\ode\\ArrayNode' not found in wp-content/plugins/wc-kalkulator/vendor/symfony/expression-language/Node/ArgumentsNode.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Container\\ContainerInterface' not found in wp-content/plugins/wc-kalkulator/vendor/symfony/service-contracts/ServiceProviderInterface.php:22
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Cache\\Adapter\\TraceableAdapter' not found in wp-content/plugins/wc-kalkulator/vendor/symfony/cache/Adapter/TraceableTagAwareAdapter.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\VarExporter\\Exception\\ExceptionInterface' not found in wp-content/plugins/wc-kalkulator/vendor/symfony/var-exporter/Exception/ClassNotFoundException.php:14
- > PHP Fatal error
Uncaught Error: Class 'WCKalkulator\\Fields\\SelectField' not found in wp-content/plugins/wc-kalkulator/src/Fields/ImageselectField.php:11
- > PHP Fatal error
Uncaught Error: Class 'WCKalkulator\\Fields\\TextField' not found in wp-content/plugins/wc-kalkulator/src/Fields/DatepickerField.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Contracts\\Service\\ResetInterface' not found in wp-content/plugins/wc-kalkulator/vendor/symfony/cache/ResettableInterface.php:19
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\ExpressionLanguage\ode\ode' not found in wp-content/plugins/wc-kalkulator/vendor/symfony/expression-language/Node/NameNode.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function WCKalkulator\\wp_die() in wp-content/plugins/wc-kalkulator/wc-kalkulator.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5, #6, #7 in wc-kalkulator/assets to your readme.txt
- Contributors: Plugin contributors field is missing
wc-kalkulator/wc-kalkulator.php 92% from 13 tests
The main PHP file in "Product Fields, Addons and Price Calculator for WooCommerce" ver. 1.6.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 197 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected21,095 lines of code in 308 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 248 | 3,174 | 6,595 | 16,142 |
JavaScript | 16 | 177 | 63 | 1,887 |
JSON | 13 | 0 | 0 | 1,157 |
CSS | 11 | 21 | 11 | 776 |
Sass | 3 | 145 | 0 | 623 |
Markdown | 17 | 178 | 0 | 510 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 14.84 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 169.00 |
Average method complexity | 3.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 53.00 |
Code structure | ||
---|---|---|
Namespaces | 27 | |
Interfaces | 24 | |
Traits | 11 | |
Classes | 148 | |
▷ Abstract classes | 6 | 4.05% |
▷ Concrete classes | 142 | 95.95% |
▷ Final classes | 13 | 9.15% |
Methods | 976 | |
▷ Static methods | 185 | 18.95% |
▷ Public methods | 792 | 81.15% |
▷ Protected methods | 96 | 9.84% |
▷ Private methods | 88 | 9.02% |
Functions | 92 | |
▷ Named functions | 15 | 16.30% |
▷ Anonymous functions | 77 | 83.70% |
Constants | 71 | |
▷ Global constants | 1 | 1.41% |
▷ Class constants | 70 | 98.59% |
▷ Public constants | 48 | 68.57% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/images/ui-icons_555555_256x240.png | 6.91KB | 4.18KB | ▼ 39.47% |
assets/css/images/ui-icons_cc0000_256x240.png | 4.52KB | 4.18KB | ▼ 7.56% |
assets/css/images/ui-icons_777777_256x240.png | 6.85KB | 4.18KB | ▼ 38.94% |
assets/css/images/ui-icons_444444_256x240.png | 6.84KB | 4.18KB | ▼ 38.90% |
assets/css/images/ui-icons_777620_256x240.png | 4.57KB | 4.18KB | ▼ 8.43% |