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.17MB] [CPU: ▼7.35ms] Passed 4 tests
This is a short check of server-side resources used by Product Questions & Answers for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 42.77 ▼0.36 |
Dashboard /wp-admin | 3.49 ▲0.14 | 48.68 ▼18.98 |
Posts /wp-admin/edit.php | 3.60 ▲0.25 | 46.58 ▼1.89 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 86.21 ▼7.44 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 35.07 ▼1.07 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Product Questions & Answers for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,889 ▲118 | 13.43 ▼0.93 | 9.21 ▲7.26 | 40.46 ▼1.57 |
Dashboard /wp-admin | 2,200 ▲25 | 5.49 ▼0.23 | 87.08 ▼20.22 | 45.69 ▲2.34 |
Posts /wp-admin/edit.php | 2,118 ▲15 | 2.07 ▲0.12 | 36.97 ▼6.66 | 34.40 ▼2.54 |
Add New Post /wp-admin/post-new.php | 1,538 ▲10 | 22.99 ▲0.17 | 716.79 ▲47.30 | 52.18 ▼18.68 |
Media Library /wp-admin/upload.php | 1,417 ▲20 | 4.21 ▼0.00 | 103.46 ▼4.03 | 42.79 ▼2.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: discussions, woocommerce, answers, forum, e-commerce...
product-questions-answers-for-woocommerce/ets_question_answer.php 77% from 13 tests
The entry point to "Product Questions & Answers for WooCommerce" version 1.2.4 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("product-questions-answers-for-woocommerce.php" instead of "ets_question_answer.php")
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Description: Keep the plugin description shorter than 140 characters (currently 271 characters long)
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
Success! There were no dangerous files found in this plugin1,319 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 202 | 102 | 939 |
CSS | 1 | 7 | 1 | 264 |
JavaScript | 2 | 8 | 0 | 116 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 42.67 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 82.00 |
Average method complexity | 4.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 25 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
asset/images/delet.png | 3.15KB | 2.23KB | ▼ 29.38% |
asset/images/Cursor-Move.png | 1.33KB | 0.17KB | ▼ 86.89% |
asset/images/C1.png | 0.13KB | 0.11KB | ▼ 20.59% |