Benchmarks
Plugin footprint 83% 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.11MB] [CPU: ▼8.10ms] Passed 4 tests
Server-side resources used by Product Shortcode - Widget - Block for Woocommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 40.17 ▼2.90 |
Dashboard /wp-admin | 3.40 ▲0.10 | 49.82 ▼6.37 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 48.65 ▲2.04 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 83.34 ▼22.16 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 35.68 ▼0.97 |
Product Widget /wp-admin/edit.php?post_type=product_widget | 3.37 | 35.96 |
Add New /wp-admin/post-new.php?post_type=product_widget | 3.36 | 42.65 |
Server storage [IO: ▲0.02MB] [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: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_gmwplw_products_list_widget_filter |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Product Shortcode - Widget - Block for Woocommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲93 | 13.23 ▼1.02 | 1.81 ▲0.11 | 44.56 ▼1.10 |
Dashboard /wp-admin | 2,237 ▲49 | 5.85 ▲0.79 | 96.94 ▼10.22 | 40.11 ▼3.14 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 2.05 ▲0.04 | 35.92 ▼3.26 | 34.41 ▼1.64 |
Add New Post /wp-admin/post-new.php | 1,567 ▲48 | 18.10 ▼5.04 | 643.10 ▼30.33 | 53.45 ▲0.89 |
Media Library /wp-admin/upload.php | 1,425 ▲40 | 4.25 ▼0.16 | 99.06 ▼2.84 | 41.83 ▼1.29 |
Product Widget /wp-admin/edit.php?post_type=product_widget | 1,084 | 1.94 | 30.55 | 29.09 |
Add New /wp-admin/post-new.php?post_type=product_widget | 1,651 | 2.57 | 51.37 | 51.05 |
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
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_gmwplw_products_list_widget_filter
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Contributors: The plugin contributors field is missing
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5 in gm-woo-product-list-widget/assets to your readme.txt
gm-woo-product-list-widget/gm-woo-product-list-widget.php 92% from 13 tests
The main file in "Product Shortcode - Widget - Block for Woocommerce" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and 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
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin552 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 81 | 29 | 487 |
CSS | 2 | 0 | 11 | 46 |
JavaScript | 1 | 3 | 21 | 19 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 9.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 1 | 6.67% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin