Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.92ms] Passed 4 tests
Server-side resources used by JWS Discount Display for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.64 ▼7.98 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.27 ▼5.79 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.02 ▲2.34 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 84.11 ▼17.68 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.07 ▼0.24 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
JWS Discount Display 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,800 ▲65 | 13.53 ▼0.90 | 1.62 ▼0.31 | 37.06 ▼5.53 |
Dashboard /wp-admin | 2,203 ▲15 | 5.84 ▲0.96 | 96.35 ▼20.74 | 40.31 ▼8.16 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.04 | 33.42 ▼5.02 | 35.36 ▼0.04 |
Add New Post /wp-admin/post-new.php | 1,533 ▼9 | 23.10 ▲4.67 | 656.50 ▲39.21 | 55.76 ▼12.77 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.24 ▲0.07 | 94.04 ▼3.81 | 42.36 ▼3.76 |
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 did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% 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 50% 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 fix the following
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function jws_dd_getConfigurationOptions() in wp-content/plugins/jws-discount-display-for-woocommerce/backend/helper.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jws-discount-display-for-woocommerce/backend/form.php:54
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/jws-discount-display-for-woocommerce/discount-display.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jws-discount-display-for-woocommerce/frontend/setup.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jws-discount-display-for-woocommerce/backend/validation.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jws-discount-display-for-woocommerce/backend/admin.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (Backend configuration options), #2 (Frontend examples of display options), #3 (Example of optional result in product detail section)
jws-discount-display-for-woocommerce/discount-display.php 92% from 13 tests
The entry point to "JWS Discount Display for WooCommerce" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("jws-discount-display-for-woocommerce.php" instead of "discount-display.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
No dangerous file extensions were detected841 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 74 | 51 | 378 |
CSS | 2 | 43 | 21 | 238 |
JavaScript | 2 | 35 | 41 | 225 |
PHP code Passed 2 tests
A brief analysis 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 | 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 | 12 | |
▷ Named functions | 12 | 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
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.28MB with 0.18MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 73.21KB | 20.14KB | ▼ 72.48% |
assets/screenshot-3.png | 97.89KB | 37.79KB | ▼ 61.40% |
assets/screenshot-1.png | 112.85KB | 40.35KB | ▼ 64.25% |