Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.25ms] Passed 4 tests
A check of server-side resources used by WooCommerce Prices
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 38.66 ▼2.81 |
Dashboard /wp-admin | 3.37 ▲0.06 | 44.60 ▼2.86 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 47.80 ▼0.03 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 83.63 ▼8.86 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.94 ▼2.45 |
Prices /wp-admin/edit.php?post_type=product&page=woocommerce_prices | 3.06 | 25.06 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 75 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for WooCommerce Prices
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 14.40 ▼0.35 | 1.87 ▲0.10 | 41.06 ▼1.38 |
Dashboard /wp-admin | 2,200 ▲15 | 5.79 ▼0.10 | 97.24 ▼11.43 | 40.55 ▼3.17 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 1.98 ▼0.06 | 39.92 ▼5.91 | 34.74 ▼2.03 |
Add New Post /wp-admin/post-new.php | 1,514 ▼15 | 17.54 ▼0.79 | 605.37 ▼11.38 | 54.82 ▼6.05 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.19 ▼0.05 | 95.06 ▼7.69 | 43.03 ▼0.79 |
Prices /wp-admin/edit.php?post_type=product&page=woocommerce_prices | 28 | 0.44 | 0.07 | 3.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- > GET request to /wp-admin/edit.php?post_type=product&page=woocommerce_prices
- > Network (severe)
wp-admin/edit.php?post_type=product&page=woocommerce_prices - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
- Donate link: Please fix this invalid url: ""
woocommerce-prices/woocommerce-prices.php 92% from 13 tests
The main file in "WooCommerce Prices" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin6,182 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 9 | 777 | 595 | 4,414 |
CSS | 6 | 111 | 72 | 1,434 |
PHP | 2 | 33 | 89 | 334 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 34.00 |
▷ Minimum class complexity | 34.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 1 | 9.09% |
▷ Public methods | 11 | 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 | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
33 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
smoothness/images/ui-icons_2e83ff_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
slickgrid/images/arrow_undo.png | 0.56KB | 0.67KB | 0.00% |
slickgrid/images/bullet_toggle_plus.png | 0.15KB | 0.23KB | 0.00% |
slickgrid/images/drag-handle.png | 1.10KB | 0.11KB | ▼ 90.00% |
smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.33KB | 0.12KB | ▼ 62.09% |