Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.87MB] [CPU: ▼128.95ms] 75% from 4 tests
An overview of server-side resources used by DW Question & Answer
Please fix the following
- CPU: Total CPU usage must kept under 500.00ms (currently 5,517.47ms on /wp-admin/edit.php?post_type=dwqa-question&page=dwqa-settings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.65 ▲1.93 | 55.51 ▲32.59 |
Dashboard /wp-admin | 4.98 ▲1.92 | 103.49 ▲57.39 |
Posts /wp-admin/edit.php | 4.97 ▲1.86 | 59.81 ▲13.42 |
Add New Post /wp-admin/post-new.php | 7.27 ▲1.83 | 99.95 ▼571.47 |
Media Library /wp-admin/upload.php | 4.85 ▲1.84 | 46.65 ▲9.65 |
Question Tags /wp-admin/edit-tags.php?taxonomy=dwqa-question_tag&post_type=dwqa-question | 4.84 | 42.51 |
Answers /wp-admin/edit.php?post_type=dwqa-answer | 4.92 | 47.41 |
Add New Question /wp-admin/post-new.php?post_type=dwqa-question | 5.08 | 62.47 |
Extensions /wp-admin/edit.php?post_type=dwqa-question&page=dwqa-extensions | 4.82 | 41.72 |
Question Category /wp-admin/edit-tags.php?taxonomy=dwqa-question_category&post_type=dwqa-question | 4.85 | 48.05 |
Settings /wp-admin/edit.php?post_type=dwqa-question&page=dwqa-settings | 4.92 | 5,517.47 |
Questions /wp-admin/edit.php?post_type=dwqa-question | 4.92 | 51.97 |
Server storage [IO: ▲2.53MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 158 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_dwqa-related-question |
dwqa_enable_email_delay |
dwqa_permission |
widget_dwqa-latest-question |
widget_dwqa-closed-question |
dwqa_has_roles |
dwqa_options |
dwqa-question_category_children |
widget_dwqa-popular-question |
Browser metrics Passed 4 tests
DW Question & Answer: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,889 ▲283 | 16.32 ▲0.77 | 13.51 ▲5.86 | 49.10 ▼0.54 |
Dashboard /wp-admin | 3,043 ▲112 | 5.98 ▼0.16 | 135.05 ▼5.06 | 106.13 ▼6.64 |
Posts /wp-admin/edit.php | 2,809 ▲70 | 2.75 ▲0.03 | 68.54 ▲3.22 | 88.96 ▼0.89 |
Add New Post /wp-admin/post-new.php | 1,545 ▼512 | 18.84 ▼0.51 | 357.13 ▼14.41 | 113.22 ▲0.79 |
Media Library /wp-admin/upload.php | 1,876 ▲69 | 5.10 ▲0.07 | 146.06 ▼0.17 | 122.03 ▲8.38 |
Question Tags /wp-admin/edit-tags.php?taxonomy=dwqa-question_tag&post_type=dwqa-question | 1,781 | 2.42 | 60.90 | 81.19 |
Answers /wp-admin/edit.php?post_type=dwqa-answer | 1,823 | 2.66 | 60.37 | 70.40 |
Add New Question /wp-admin/post-new.php?post_type=dwqa-question | 4,109 | 9.13 | 232.70 | 147.57 |
Extensions /wp-admin/edit.php?post_type=dwqa-question&page=dwqa-extensions | 1,760 | 2.34 | 55.84 | 90.53 |
Question Category /wp-admin/edit-tags.php?taxonomy=dwqa-question_category&post_type=dwqa-question | 1,854 | 2.42 | 59.82 | 92.10 |
Settings /wp-admin/edit.php?post_type=dwqa-question&page=dwqa-settings | 1,564 | 2.55 | 57.27 | 99.10 |
Questions /wp-admin/edit.php?post_type=dwqa-question | 1,972 | 3.34 | 89.23 | 76.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 9 options
- widget_dwqa-related-question
- dwqa_enable_email_delay
- dwqa-question_category_children
- widget_dwqa-closed-question
- dwqa_permission
- widget_dwqa-popular-question
- dwqa_has_roles
- widget_dwqa-latest-question
- dwqa_options
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/dw-question-answer/templates/content-edit.php
- 37× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_user_by() in wp-content/plugins/dw-question-answer/templates/content-comment.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function dwqa_current_user_can() in wp-content/plugins/dw-question-answer/templates/content-none.php:9
- > PHP Fatal error
Uncaught Error: Class 'Walker_Category' not found in wp-content/plugins/dw-question-answer/inc/Walker/Tag.php:3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/dw-question-answer/inc/Answer_List_Table.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/dw-question-answer/inc/helper/plugin-compatibility.php:4
- > PHP Fatal error
Uncaught Error: Class 'DWQA_Posts_Base' not found in wp-content/plugins/dw-question-answer/inc/Posts/Question.php:90
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/dw-question-answer/inc/User.php:143
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/dw-question-answer/inc/helper/functions.php:59
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/dw-question-answer/templates/archive-question.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/dw-question-answer/templates/answer-submit-form.php:11
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #1 (Front-end appearance) image required
dw-question-answer/dw-question-answer.php Passed 13 tests
This is the main PHP file of "DW Question & Answer" version 1.5.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
135 characters long description:
A WordPress plugin was make by DesignWall.com to build an Question Answer system for support, asking and comunitcate with your customer
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected36,909 lines of code in 114 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 27 | 14,054 | 22,352 | 21,869 |
PHP | 59 | 1,676 | 961 | 9,382 |
XML | 1 | 7 | 16 | 2,912 |
LESS | 2 | 281 | 271 | 987 |
JavaScript | 8 | 51 | 12 | 865 |
CSS | 9 | 142 | 41 | 715 |
HTML | 7 | 0 | 0 | 162 |
Markdown | 1 | 10 | 0 | 17 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 26.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 141.00 |
Average method complexity | 4.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 38 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 38 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 307 | |
▷ Static methods | 9 | 2.93% |
▷ Public methods | 296 | 96.42% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 3.58% |
Functions | 200 | |
▷ Named functions | 200 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
templates/assets/img/icon-search.png | 1.20KB | 0.48KB | ▼ 60.18% |
assets/img/dw-widgets.png | 4.14KB | 1.47KB | ▼ 64.57% |
assets/img/dw-leaderboard.png | 1.07KB | 1.28KB | 0.00% |
assets/img/dw-embedquestion.png | 2.71KB | 2.46KB | ▼ 9.47% |
assets/img/dw-captcha.png | 2.71KB | 2.71KB | 0.00% |