Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼11.41ms] Passed 4 tests
This is a short check of server-side resources used by Unyson WooComerce Shortcodes
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.72 ▼4.72 |
Dashboard /wp-admin | 3.32 ▼0.03 | 51.74 ▼14.43 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 52.07 ▼2.91 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 84.23 ▼23.59 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 39.64 ▲5.58 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 79 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Unyson WooComerce Shortcodes
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲77 | 13.28 ▼0.96 | 1.76 ▲0.03 | 44.58 ▲0.54 |
Dashboard /wp-admin | 2,227 ▲39 | 5.82 ▲0.95 | 105.91 ▼8.54 | 80.83 ▲37.58 |
Posts /wp-admin/edit.php | 2,128 ▲39 | 2.18 ▲0.15 | 40.02 ▼1.12 | 36.27 ▼1.86 |
Add New Post /wp-admin/post-new.php | 1,560 ▲15 | 18.26 ▼0.15 | 707.51 ▲68.55 | 63.82 ▼2.99 |
Media Library /wp-admin/upload.php | 1,412 ▲27 | 4.23 ▲0.02 | 101.33 ▼6.90 | 71.34 ▲21.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Please take a closer look at the following
- 32× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/uws-unyson-woocommerce-shortcodes/extensions/uws/shortcodes/uws_checkout/options.php
- > /wp-content/plugins/uws-unyson-woocommerce-shortcodes/extensions/uws/shortcodes/uws_products/config.php
- > /wp-content/plugins/uws-unyson-woocommerce-shortcodes/extensions/uws/shortcodes/uws_cart/views/view.php
- > /wp-content/plugins/uws-unyson-woocommerce-shortcodes/extensions/uws/shortcodes/uws_cart/static.php
- > /wp-content/plugins/uws-unyson-woocommerce-shortcodes/extensions/uws/shortcodes/uws_add_to_cart/views/view.php
- > /wp-content/plugins/uws-unyson-woocommerce-shortcodes/extensions/uws/shortcodes/uws_related_products/views/view.php
- > /wp-content/plugins/uws-unyson-woocommerce-shortcodes/extensions/uws/shortcodes/uws_product_page/views/view.php
- > /wp-content/plugins/uws-unyson-woocommerce-shortcodes/extensions/uws/shortcodes/uws_related_products/config.php
- > /wp-content/plugins/uws-unyson-woocommerce-shortcodes/extensions/uws/shortcodes/uws_product_page/options.php
- > /wp-content/plugins/uws-unyson-woocommerce-shortcodes/extensions/uws/shortcodes/uws_product_page/static.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/uws-unyson-woocommerce-shortcodes/uws.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/uws-unyson-woocommerce-shortcodes/includes/helpers.php:76
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 93% 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
5 plugin tags: add to cart shortcode, woocommerce, products shortcode, shortcodes, unyson
uws-unyson-woocommerce-shortcodes/uws.php 85% from 13 tests
Analyzing the main PHP file in "Unyson WooComerce Shortcodes" version 1.0.3
Please take the time to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("uws-unyson-woocommerce-shortcodes.php" instead of "uws.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected471 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 49 | 23 | 460 |
CSS | 1 | 3 | 2 | 11 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
extensions/uws/shortcodes/uws_order_tracking/static/img/page_builder.png | 1.14KB | 0.29KB | ▼ 74.79% |
extensions/uws/shortcodes/uws_my_account/static/img/page_builder.png | 1.14KB | 0.29KB | ▼ 74.79% |
extensions/uws/shortcodes/uws_add_to_cart/static/img/page_builder.png | 1.14KB | 0.29KB | ▼ 74.79% |
extensions/uws/shortcodes/uws_checkout/static/img/page_builder.png | 1.14KB | 0.29KB | ▼ 74.79% |
extensions/uws/shortcodes/uws_related_products/static/img/page_builder.png | 1.14KB | 0.29KB | ▼ 74.79% |