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
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.35ms] Passed 4 tests
Server-side resources used by Display product variations dropdown on shop page
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 37.40 ▼9.60 |
Dashboard /wp-admin | 3.37 ▲0.06 | 44.29 ▼4.39 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 47.88 ▼0.41 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 91.88 ▲2.66 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 32.78 ▼2.99 |
Setting /wp-admin/admin.php?page=niwoovd-setting | 3.28 | 31.72 |
Dashboard /wp-admin/admin.php?page=niwoovd-dashboard | 3.55 | 31.27 |
Server storage [IO: ▲1.16MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
recovery_mode_email_last_sent |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Display product variations dropdown on shop page
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲69 | 14.48 ▼0.14 | 1.10 ▼0.61 | 44.80 ▼2.45 |
Dashboard /wp-admin | 2,226 ▲35 | 4.90 ▲0.01 | 109.12 ▼24.01 | 42.15 ▼19.59 |
Posts /wp-admin/edit.php | 2,112 ▲23 | 2.01 ▼0.02 | 40.05 ▲6.12 | 34.97 ▼0.83 |
Add New Post /wp-admin/post-new.php | 1,552 ▲18 | 23.34 ▲0.28 | 605.24 ▼82.78 | 56.61 ▲2.91 |
Media Library /wp-admin/upload.php | 1,414 ▲26 | 4.22 ▲0.04 | 100.29 ▼1.66 | 43.71 ▼3.21 |
Setting /wp-admin/admin.php?page=niwoovd-setting | 891 | 1.95 | 28.86 | 60.56 |
Dashboard /wp-admin/admin.php?page=niwoovd-dashboard | 1,428 | 2.18 | 13.46 | 52.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- recovery_mode_email_last_sent
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=niwoovd-dashboard
- > Error in wp-content/plugins/display-product-variations-dropdown-on-shop-page/includes/ni-variation-dropdown-dashboard.php+274
Uncaught Error: Call to undefined function wc_price() in wp-content/plugins/display-product-variations-dropdown-on-shop-page/includes/ni-variation-dropdown-dashboard.php:274
Stack trace:
#0 wp-content/plugins/display-product-variations-dropdown-on-shop-page/includes/ni-variation-dropdown-shop-page-init.php(80): Ni_Variation_Dropdown_Dashboard->page_init()
#1 wp-includes/class-wp-hook.php(310): Ni_Variation_Dropdown_Shop_Page_Init->add_page()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 {main}
thrown
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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 your attention:
- Screenshots: Please add images for these screenshots: #1 (Dashboard sales summary), #2 (Variation dropdown on shop page), #3 (Variation dropdown on shop page with product attribute), #4 (Setting)
display-product-variations-dropdown-on-shop-page/display-variation-dropdown-on-shop-page.php 92% from 13 tests
The main file in "Display product variations dropdown on shop page" v. 1.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("display-product-variations-dropdown-on-shop-page.php" instead of "display-variation-dropdown-on-shop-page.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin5,523 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 113 | 94 | 3,926 |
PHP | 5 | 239 | 62 | 1,480 |
JavaScript | 9 | 6 | 13 | 101 |
HTML | 1 | 1 | 0 | 9 |
SVG | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 17.40 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 3.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 1 | 2.56% |
▷ Public methods | 39 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
5 PNG files occupy 0.44MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 15.89KB | 8.60KB | ▼ 45.89% |
screenshot-3.png | 101.13KB | 34.10KB | ▼ 66.28% |
screenshot-1.png | 229.42KB | 94.23KB | ▼ 58.93% |
admin/css/lib/images/ui-icons_444444_256x240.png | 3.19KB | 3.49KB | 0.00% |
screenshot-2.png | 101.60KB | 34.01KB | ▼ 66.53% |