Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼15.41ms] Passed 4 tests
An overview of server-side resources used by Woo Question
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 34.60 ▼15.93 |
Dashboard /wp-admin | 3.31 ▲0.00 | 43.40 ▼7.68 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.78 ▲4.32 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 78.90 ▼39.37 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.92 ▲1.35 |
Server storage [IO: ▲0.97MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Woo Question
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.42 ▲0.25 | 1.63 ▼0.42 | 36.87 ▼6.11 |
Dashboard /wp-admin | 2,206 ▲18 | 4.84 ▼1.01 | 111.13 ▲0.81 | 42.80 ▼4.52 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▼0.02 | 38.04 ▲3.19 | 36.44 ▼1.20 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.38 ▲5.90 | 648.82 ▼35.86 | 49.50 ▼5.50 |
Media Library /wp-admin/upload.php | 1,385 ▼6 | 4.26 ▲0.08 | 97.66 ▼2.80 | 43.74 ▼0.29 |
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
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/woo-question/woo-question.php
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/woo-question/Template/single-woo-questions.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woo-question/credit_pakage_setting.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/woo-question/functions/woo-questions-setting.php:44
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woo-question/credit_pakage_setting.php:4
- > PHP Fatal error
Uncaught Error: Call to a member function insert() on null in wp-content/plugins/woo-question/credit_product.php:19
- > 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 88% 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
Please fix the following attributes:
- Donate link: Please fix this invalid url: ""
- Screenshots: Please add images for these screenshots: #1 (Plugin Required Plugin), #2 (Setting page layout in admin), #3 (Question page layout in admin), #4 (Question edit/replay page layout in admin), #5 (Question page in front end), #6 (Question page in front end), #7 (Front end layout), #8 (Question list page layout in front end), #9 (Question list page layout in front end), #10 (Answer page layout in front end)
woo-question/woo-question.php Passed 13 tests
"Woo Question" version 2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
33 characters long description:
A Woocommerce Addon For Questions
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected14,828 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 2,451 | 1,607 | 12,658 |
CSS | 3 | 57 | 57 | 1,286 |
PHP | 6 | 734 | 121 | 884 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 1 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 1 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 26 | |
▷ Named functions | 26 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
17 PNG files occupy 0.42MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-5.png | 22.33KB | 12.82KB | ▼ 42.59% |
images/ans.png | 3.54KB | 0.92KB | ▼ 73.99% |
screenshot-4.png | 46.96KB | 26.92KB | ▼ 42.69% |
screenshot-2.png | 33.43KB | 19.59KB | ▼ 41.39% |
screenshot-7.png | 42.91KB | 20.95KB | ▼ 51.18% |