Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲2.44MB] [CPU: ▲8.53ms] Passed 4 tests
This is a short check of server-side resources used by Question Answer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.82 ▲2.36 | 47.79 ▲5.20 |
Dashboard /wp-admin | 5.82 ▲2.52 | 57.82 ▲11.73 |
Posts /wp-admin/edit.php | 5.84 ▲2.48 | 63.60 ▲17.85 |
Add New Post /wp-admin/post-new.php | 8.39 ▲2.50 | 91.52 ▲1.71 |
Media Library /wp-admin/upload.php | 5.63 ▲2.40 | 50.80 ▲15.46 |
Add Question /wp-admin/post-new.php?post_type=question | 5.90 | 63.91 |
/wp-admin/index.php?page=qa-setup | 5.41 | 40.52 |
Settings /wp-admin/edit.php?post_type=question&page=settings | 6.24 | 59.20 |
All Answers /wp-admin/edit.php?post_type=answer | 5.70 | 49.16 |
Question Tags /wp-admin/edit-tags.php?taxonomy=question_tags&post_type=question | 5.65 | 48.75 |
All Keywords /wp-admin/edit.php?post_type=qa_keyword | 5.70 | 52.37 |
Welcome /wp-admin/edit.php?post_type=question&page=qa_welcome | 5.65 | 49.45 |
All Questions /wp-admin/edit.php?post_type=question | 5.70 | 48.67 |
Questions Categories /wp-admin/edit-tags.php?taxonomy=question_cat&post_type=question | 5.66 | 51.94 |
Server storage [IO: ▲4.17MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 170 new files
Database: 2 new tables, 13 new options
New tables |
---|
wp_qa_follow |
wp_qa_notification |
New WordPress options |
---|
widget_qa_widget_top_questions |
question_cat_children |
widget_theysaidso_widget |
widget_qa_widget_categories |
widget_qa_widget_latest_questions |
db_upgraded |
widget_qa_widget_leaderboard |
widget_qa_widget_tags |
widget_recent-comments |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Question Answer
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,124 ▲367 | 15.58 ▲1.24 | 5.46 ▲3.60 | 40.95 ▼4.85 |
Dashboard /wp-admin | 2,429 ▲241 | 6.71 ▲0.81 | 125.31 ▲17.21 | 40.32 ▼4.55 |
Posts /wp-admin/edit.php | 2,341 ▲252 | 3.59 ▲1.62 | 52.51 ▲14.29 | 32.93 ▼3.45 |
Add New Post /wp-admin/post-new.php | 1,590 ▲70 | 23.05 ▼0.03 | 657.80 ▼29.84 | 36.03 ▼15.25 |
Media Library /wp-admin/upload.php | 1,480 ▲92 | 4.39 ▲0.17 | 79.53 ▼34.40 | 40.26 ▼7.70 |
Add Question /wp-admin/post-new.php?post_type=question | 3,014 | 8.22 | 198.34 | 89.19 |
/wp-admin/index.php?page=qa-setup | 28 | 0.44 | 0.08 | 4.17 |
Settings /wp-admin/edit.php?post_type=question&page=settings | 9,372 | 16.97 | 492.16 | 50.08 |
All Answers /wp-admin/edit.php?post_type=answer | 1,362 | 3.63 | 54.09 | 34.83 |
Question Tags /wp-admin/edit-tags.php?taxonomy=question_tags&post_type=question | 1,492 | 3.50 | 43.77 | 27.83 |
All Keywords /wp-admin/edit.php?post_type=qa_keyword | 1,355 | 3.64 | 44.34 | 26.90 |
Welcome /wp-admin/edit.php?post_type=question&page=qa_welcome | 1,449 | 3.30 | 44.25 | 46.83 |
All Questions /wp-admin/edit.php?post_type=question | 1,409 | 3.64 | 48.18 | 31.66 |
Questions Categories /wp-admin/edit-tags.php?taxonomy=question_cat&post_type=question | 1,618 | 3.39 | 48.21 | 30.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie tables were found after uninstall: 2 tables
- wp_qa_notification
- wp_qa_follow
- Zombie WordPress options were found after uninstall: 13 options
- db_upgraded
- widget_qa_widget_tags
- widget_qa_widget_top_questions
- widget_theysaidso_widget
- can_compress_scripts
- widget_qa_widget_website_stats
- question_cat_children
- widget_qa_widget_latest_questions
- widget_qa_widget_leaderboard
- widget_recent-comments
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/question-answer/includes/functions-notification.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/question-answer/includes/functions-counter.php:257
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- > GET request to /wp-admin/index.php?page=qa-setup
- > Network (severe)
wp-admin/index.php?page=qa-setup - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- 14 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=question&page=settings
- > Network (severe)
wp-admin/%7Bsite_logo_url%7D - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #4 (Screenshot 4), #7 (Screenshot 7), #8 (Screenshot 8), #9 (Screenshot 9), #10 (Screenshot 10)
question-answer/question-answer.php Passed 13 tests
The main PHP file in "Question Answer" ver. 1.2.70 adds more information about the plugin and also serves as the entry point for this plugin
54 characters long description:
Create Awesome Question and Answer Website in a Minute
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
Success! There were no dangerous files found in this plugin29,662 lines of code in 121 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 86 | 7,242 | 761 | 12,661 |
SVG | 3 | 0 | 12 | 8,882 |
CSS | 22 | 2,859 | 277 | 6,819 |
JavaScript | 10 | 901 | 139 | 1,300 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 28.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 641.00 |
Average method complexity | 7.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 73.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 34 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 34 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 150 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 149 | 99.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 0.67% |
Functions | 196 | |
▷ Named functions | 195 | 99.49% |
▷ Anonymous functions | 1 | 0.51% |
Constants | 6 | |
▷ Global constants | 6 | 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
29 PNG files occupy 0.33MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/front/css/images/ui-icons_777777_256x240.png | 6.85KB | 4.18KB | ▼ 38.94% |
assets/front/css/images/ui-icons_444444_256x240.png | 6.84KB | 4.18KB | ▼ 38.90% |
assets/global/css/images/ui-icons_444444_256x240.png | 6.84KB | 4.18KB | ▼ 38.90% |
assets/front/images/thumb-large.png | 24.61KB | 3.33KB | ▼ 86.49% |
assets/global/css/images/ui-icons_ffffff_256x240.png | 6.17KB | 4.18KB | ▼ 32.17% |