Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼4.84ms] Passed 4 tests
An overview of server-side resources used by Product QA For Woocommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 39.68 ▼0.43 |
Dashboard /wp-admin | 3.40 ▲0.10 | 48.25 ▼1.72 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 49.20 ▲1.41 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 87.95 ▼15.05 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 36.36 ▼2.14 |
Product QA /wp-admin/edit.php?post_type=wc_product_faq | 3.36 | 44.82 |
Add New /wp-admin/post-new.php?post_type=wc_product_faq | 3.46 | 50.06 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Product QA For Woocommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,938 ▲203 | 14.09 ▼0.29 | 6.26 ▲4.42 | 43.38 ▼0.95 |
Dashboard /wp-admin | 2,230 ▲45 | 4.86 ▼0.94 | 106.96 ▲5.09 | 40.62 ▼2.95 |
Posts /wp-admin/edit.php | 2,116 ▲24 | 1.99 ▼0.04 | 40.22 ▼4.83 | 34.70 ▼0.14 |
Add New Post /wp-admin/post-new.php | 1,537 ▲3 | 17.72 ▼5.27 | 659.72 ▼10.01 | 58.31 ▲2.46 |
Media Library /wp-admin/upload.php | 1,409 ▲27 | 4.22 ▲0.05 | 100.62 ▲4.33 | 46.35 ▲3.66 |
Product QA /wp-admin/edit.php?post_type=wc_product_faq | 1,130 | 1.93 | 31.00 | 31.80 |
Add New /wp-admin/post-new.php?post_type=wc_product_faq | 2,438 | 7.62 | 173.69 | 62.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/product-qa-for-woocommerce/public/templates/email/question.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/product-qa-for-woocommerce/public/templates/list-questions-answers.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: product questions, product qa, woocommerce addon, product questionnaires, product answers...
product-qa-for-woocommerce/product-qa-for-woocommerce.php 92% from 13 tests
The main PHP file in "Product QA For Woocommerce" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected553 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 146 | 559 | 470 |
CSS | 1 | 1 | 7 | 53 |
Markdown | 1 | 21 | 0 | 23 |
JavaScript | 1 | 2 | 6 | 7 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 4.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 1.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 2 | 7.41% |
▷ Public methods | 22 | 81.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 18.52% |
Functions | 3 | |
▷ Named functions | 3 | 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 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.50MB with 0.33MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshots/screenshot-1.png | 118.29KB | 43.73KB | ▼ 63.03% |
screenshots/screenshot-2.png | 92.39KB | 34.04KB | ▼ 63.16% |
screenshots/screenshot-3.png | 123.67KB | 42.96KB | ▼ 65.27% |
screenshots/screenshot-4.png | 181.37KB | 57.26KB | ▼ 68.43% |