Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/dation-woocommerce/includes/Adapter/RestApiClientFactory.php+33
Trying to access array offset on value of type null
Server metrics [RAM: ▼1.63MB] [CPU: ▼51.86ms] Passed 4 tests
This is a short check of server-side resources used by Dation Woocommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.37 ▼1.10 | 9.65 ▼32.23 |
Dashboard /wp-admin | 2.39 ▼0.96 | 11.12 ▼51.88 |
Posts /wp-admin/edit.php | 2.39 ▼0.97 | 9.38 ▼37.95 |
Add New Post /wp-admin/post-new.php | 2.39 ▼3.50 | 10.55 ▼85.38 |
Media Library /wp-admin/upload.php | 2.39 ▼0.85 | 10.38 ▼19.38 |
Instellingen /wp-admin/admin.php?page=dation | 2.39 | 10.22 |
Cursussen /wp-admin/admin.php?page=dation-cursussen | 2.39 | 12.58 |
Server storage [IO: ▲6.22MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 595 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
recovery_mode_email_last_sent |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Dation Woocommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲75 | 14.28 ▼0.08 | 2.02 ▲0.34 | 47.01 ▲7.71 |
Dashboard /wp-admin | 2,220 ▲46 | 5.58 ▼0.00 | 82.13 ▼2.18 | 67.14 ▲25.94 |
Posts /wp-admin/edit.php | 2,128 ▲28 | 1.97 ▲0.00 | 38.08 ▲0.67 | 32.43 ▼3.53 |
Add New Post /wp-admin/post-new.php | 1,544 ▲18 | 22.50 ▼0.74 | 730.02 ▲110.16 | 57.53 ▲3.20 |
Media Library /wp-admin/upload.php | 1,422 ▲19 | 4.30 ▲0.08 | 95.45 ▲1.47 | 72.61 ▲33.18 |
Instellingen /wp-admin/admin.php?page=dation | 1,023 | 2.18 | 22.99 | 32.65 |
Cursussen /wp-admin/admin.php?page=dation-cursussen | 703 | 1.51 | 6.93 | 19.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/dation-woocommerce/includes/Adapter/RestApiClientFactory.php+33
Trying to access array offset on value of type bool
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- recovery_mode_email_last_sent
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=dation-cursussen
- > Notice in wp-content/plugins/dation-woocommerce/includes/Adapter/RestApiClientFactory.php+33
Trying to access array offset on value of type bool
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=dation-cursussen
- > User deprecated in wp-content/plugins/dation-woocommerce/vendor/symfony/serializer/Normalizer/DateTimeNormalizer.php+47
Passing configuration options directly to the constructor is deprecated since Symfony 4.2, use the default context instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=dation-cursussen
- > User deprecated in wp-content/plugins/dation-woocommerce/vendor/symfony/serializer/Encoder/JsonEncode.php+35
Passing an integer as first parameter of the "Symfony\Component\Serializer\Encoder\JsonEncode::__construct()" method is deprecated since Symfony 4.2, use the "json_encode_options" key of the context instead.
- > GET request to /wp-admin/admin.php?page=dation-cursussen
- > Error in wp-content/plugins/dation-woocommerce/includes/Admin/ProductList.php+58
Uncaught Error: Class 'WC_Product_Query' not found in wp-content/plugins/dation-woocommerce/includes/Admin/ProductList.php:58
Stack trace:
#0 wp-content/plugins/dation-woocommerce/includes/Admin/ProductList.php(18): Dation\Woocommerce\Admin\ProductList->table_data()
#1 wp-content/plugins/dation-woocommerce/admin/dw-courses.php(14): Dation\Woocommerce\Admin\ProductList->prepare_items()
#2 wp-includes/class-wp-hook.php(310): dw_render_course_page()
#3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#4 wp-includes/plugin.php(517): WP_Hook->do_action()
#5 wp-admin/admin.php(259): do_action()
#6 {main}
thrown
SRP 50% 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
Please take a closer look at the following
- 233× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'phpDocumentor\\Reflection\\Types\\AggregatedType' not found in wp-content/plugins/dation-woocommerce/vendor/phpdocumentor/type-resolver/src/PseudoTypes/Numeric_.php:28
- > PHP Fatal error
Uncaught Error: Class 'phpDocumentor\\Reflection\\Types\\String_' not found in wp-content/plugins/dation-woocommerce/vendor/phpdocumentor/type-resolver/src/PseudoTypes/LiteralString.php:25
- > PHP Fatal error
Uncaught Error: Class 'phpDocumentor\\Reflection\\Types\\Integer' not found in wp-content/plugins/dation-woocommerce/vendor/phpdocumentor/type-resolver/src/PseudoTypes/PositiveInteger.php:25
- > PHP Fatal error
Uncaught Error: Interface 'Stringable' not found in wp-content/plugins/dation-woocommerce/vendor/symfony/string/LazyString.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Serializer\\Encoder\\EncoderInterface' not found in wp-content/plugins/dation-woocommerce/vendor/symfony/serializer/Encoder/JsonEncode.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\PropertyAccess\\Exception\\ExceptionInterface' not found in wp-content/plugins/dation-woocommerce/vendor/symfony/property-access/Exception/InvalidArgumentException.php:19
- > PHP Fatal error
Uncaught Error: Class 'SetBased\\Exception\\Test\\FormattedExceptionTestBase' not found in wp-content/plugins/dation-woocommerce/vendor/setbased/exception/test/LogicFormattedExceptionTest.php:11
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Serializer\\Exception\\RuntimeException' not found in wp-content/plugins/dation-woocommerce/vendor/symfony/serializer/Exception/ExtraAttributesException.php:19
- > PHP Fatal error
Uncaught Error: Class 'phpDocumentor\\Reflection\\Types\\AggregatedType' not found in wp-content/plugins/dation-woocommerce/vendor/phpdocumentor/type-resolver/src/Types/ArrayKey.php:26
- > PHP Fatal error
Uncaught Error: Interface 'phpDocumentor\\Reflection\\Type' not found in wp-content/plugins/dation-woocommerce/vendor/phpdocumentor/type-resolver/src/Types/Boolean.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
No tags were detected
dation-woocommerce/dation-woocommerce.php Passed 13 tests
This is the main PHP file of "Dation Woocommerce" version 1.2.46, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
109 characters long description:
Je website altijd up-to-date met je Dation planning. Importeer je Dation cursussen als Woocommerce producten.
Code Analysis 97% from 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
Success! There were no dangerous files found in this plugin84,486 lines of code in 558 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 442 | 7,553 | 18,884 | 52,870 |
JSON | 28 | 0 | 0 | 21,281 |
JavaScript | 26 | 1,964 | 2,513 | 4,980 |
Markdown | 37 | 1,504 | 0 | 4,509 |
YAML | 11 | 63 | 3 | 373 |
Sass | 6 | 19 | 4 | 288 |
XSD | 1 | 11 | 0 | 72 |
XML | 2 | 0 | 0 | 32 |
CSS | 1 | 4 | 0 | 30 |
HTML | 1 | 2 | 0 | 18 |
Ant | 1 | 3 | 3 | 14 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Method cyclomatic complexity should be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 13.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 367.00 |
Average method complexity | 3.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 62 | |
Interfaces | 70 | |
Traits | 9 | |
Classes | 304 | |
▷ Abstract classes | 9 | 2.96% |
▷ Concrete classes | 295 | 97.04% |
▷ Final classes | 97 | 32.88% |
Methods | 2,325 | |
▷ Static methods | 673 | 28.95% |
▷ Public methods | 1,971 | 84.77% |
▷ Protected methods | 45 | 1.94% |
▷ Private methods | 309 | 13.29% |
Functions | 347 | |
▷ Named functions | 229 | 65.99% |
▷ Anonymous functions | 118 | 34.01% |
Constants | 416 | |
▷ Global constants | 94 | 22.60% |
▷ Class constants | 322 | 77.40% |
▷ Public constants | 268 | 83.23% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/dation-elephant-head-20x20.png | 0.57KB | 0.67KB | 0.00% |