Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼8.13ms] Passed 4 tests
Analyzing server-side resources used by Bring Fraktguiden for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 40.39 ▼3.98 |
Dashboard /wp-admin | 3.36 ▲0.01 | 50.69 ▼26.61 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 50.15 ▲0.75 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 83.70 ▼2.63 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.36 ▲0.70 |
Server storage [IO: ▲27.41MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please try to fix the following items
- Try to limit filesystem usage to 25MB (currently using 27.41MB)
Filesystem: 353 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Bring Fraktguiden for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲54 | 14.06 ▼0.29 | 1.61 ▼0.31 | 39.29 ▼11.70 |
Dashboard /wp-admin | 2,192 ▲15 | 5.59 ▼0.07 | 95.40 ▲4.75 | 41.35 ▲2.59 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.01 ▲0.01 | 41.44 ▲5.02 | 37.59 ▲1.57 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.53 ▲0.02 | 663.16 ▼37.89 | 64.30 ▼1.73 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.20 ▲0.01 | 99.22 ▼5.47 | 42.91 ▼2.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/bring-fraktguiden-for-woocommerce/templates/woocommerce/alternative-dates.php
- > /wp-content/plugins/bring-fraktguiden-for-woocommerce/includes/pdfmerger/tcpdf/tools/tcpdf_addfont.php
- 32× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/bring-fraktguiden-for-woocommerce/pro/booking/templates/waybills-table-labels.php:105
- > PHP Parse error
syntax error, unexpected 'public' (T_PUBLIC), expecting variable (T_VARIABLE) in wp-content/plugins/bring-fraktguiden-for-woocommerce/pro/pickuppoint/SelectedPickUpPointComponent.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/bring-fraktguiden-for-woocommerce/includes/admin/pro-notices.php:25
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/bring-fraktguiden-for-woocommerce/pro/booking/templates/waybills-waybill.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'Bring_Fraktguiden\\Vas\\VAS' not found in wp-content/plugins/bring-fraktguiden-for-woocommerce/classes/vas/class-vas-checkbox.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/bring-fraktguiden-for-woocommerce/templates/system-info/shipping-zones.php:4
- > PHP Fatal error
Uncaught Error: Class 'BringFraktguidenPro\\Booking\\Labels\\Bring_Label_Collection' not found in wp-content/plugins/bring-fraktguiden-for-woocommerce/pro/booking/labels/class-bring-zpl-collection.php:13
- > PHP Notice
Undefined variable: new in wp-content/plugins/bring-fraktguiden-for-woocommerce/pro/booking/templates/waybills-messages.php on line 43
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/bring-fraktguiden-for-woocommerce/pro/booking/templates/modal-templates.php:9
- > PHP Notice
Undefined variable: consignment in wp-content/plugins/bring-fraktguiden-for-woocommerce/pro/booking/templates/consignment-table-booking.php on line 14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
bring-fraktguiden-for-woocommerce/bring-fraktguiden-for-woocommerce.php 92% from 13 tests
"Bring Fraktguiden for WooCommerce" version 1.10.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.6" instead of "5.6.0")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin79,216 lines of code in 219 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 181 | 3,550 | 15,622 | 58,219 |
JSON | 4 | 0 | 0 | 16,589 |
JavaScript | 16 | 253 | 498 | 1,543 |
PO File | 1 | 492 | 704 | 1,082 |
Vuejs Component | 8 | 46 | 0 | 963 |
Sass | 3 | 121 | 0 | 714 |
Markdown | 2 | 8 | 0 | 59 |
XML | 1 | 0 | 4 | 44 |
CSS | 3 | 0 | 0 | 3 |
PHP code 0% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 4,420)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 503)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 89.76 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4,420.00 |
Average method complexity | 7.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 503.00 |
Code structure | ||
---|---|---|
Namespaces | 23 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 87 | |
▷ Abstract classes | 3 | 3.45% |
▷ Concrete classes | 84 | 96.55% |
▷ Final classes | 0 | 0.00% |
Methods | 1,180 | |
▷ Static methods | 343 | 29.07% |
▷ Public methods | 852 | 72.20% |
▷ Protected methods | 299 | 25.34% |
▷ Private methods | 29 | 2.46% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 142 | |
▷ Global constants | 121 | 85.21% |
▷ Class constants | 21 | 14.79% |
▷ Public constants | 21 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin