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.02MB] [CPU: ▼9.07ms] Passed 4 tests
A check of server-side resources used by Discussions Tab for WooCommerce Products
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.53 ▼1.21 |
Dashboard /wp-admin | 3.33 ▼0.01 | 44.66 ▼17.35 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 44.82 ▼1.07 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 84.90 ▼16.66 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 32.64 ▼0.59 |
Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 101 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Discussions Tab for WooCommerce Products
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.23 ▼0.32 | 1.70 ▲0.12 | 40.63 ▼2.50 |
Dashboard /wp-admin | 2,198 ▲18 | 5.62 ▲0.01 | 83.22 ▼14.11 | 37.32 ▼3.53 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.01 ▼0.01 | 39.99 ▲6.24 | 36.04 ▲0.69 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.20 ▼0.02 | 674.79 ▲31.39 | 55.27 ▼8.22 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.21 ▼0.01 | 94.70 ▼3.72 | 44.92 ▲1.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/discussions-tab-for-woocommerce-products/templates/dtwp-comments.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
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 require attention:
- Tags: Please reduce the number of tags, currently 18 tag instead of maximum 10
- Screenshots: Add an image for screenshot #1 (Display a Discussions tab in your product page.)
discussions-tab-for-woocommerce-products/discussions-tab-for-woocommerce-products.php 92% from 13 tests
The main file in "Discussions Tab for WooCommerce Products" v. 1.5.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Requires at least: Required version must match the one declared in readme.txt ("4.4" instead of "3.0.0")
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 plugin8,708 lines of code in 81 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 33 | 104 | 283 | 4,855 |
PHP | 31 | 479 | 1,842 | 3,050 |
CSS | 6 | 16 | 42 | 494 |
Sass | 7 | 11 | 1 | 206 |
JSON | 4 | 0 | 0 | 103 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 14.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 2.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 1 | 4.55% |
Methods | 176 | |
▷ Static methods | 20 | 11.36% |
▷ Public methods | 170 | 96.59% |
▷ Protected methods | 3 | 1.70% |
▷ Private methods | 3 | 1.70% |
Functions | 14 | |
▷ Named functions | 7 | 50.00% |
▷ Anonymous functions | 7 | 50.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/autofill-frontend.png | 5.47KB | 5.50KB | 0.00% |