Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/give-me-answer-lite/includes/Libraries/Upload/class-upload.php+2727
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▲1.86MB] [CPU: ▼34.23ms] Passed 4 tests
Analyzing server-side resources used by Give Me Answer Lite
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.86 ▲2.39 | 21.08 ▼18.20 |
Dashboard /wp-admin | 5.88 ▲2.53 | 30.92 ▼25.06 |
Posts /wp-admin/edit.php | 5.88 ▲2.52 | 22.87 ▼23.14 |
Add New Post /wp-admin/post-new.php | 5.88 ▼0.01 | 22.21 ▼70.50 |
Media Library /wp-admin/upload.php | 5.88 ▲2.65 | 27.07 ▼8.03 |
Settings /wp-admin/admin.php?page=gma-settings | 5.88 | 26.94 |
Tags /wp-admin/edit-tags.php?taxonomy=gma-question_tag&post_type=gma-question | 5.88 | 24.08 |
Categories /wp-admin/edit-tags.php?taxonomy=gma-question_category&post_type=gma-question | 5.88 | 25.17 |
Answers /wp-admin/edit.php?post_type=gma-answer | 5.88 | 28.17 |
Give Me Answer Lite /wp-admin/admin.php?page=give-me-answer-lite | 5.88 | 22.67 |
Comments /wp-admin/admin.php?page=gma-comments | 5.88 | 26.80 |
Add-Ons /wp-admin/admin.php?page=gma-addons | 5.88 | 23.69 |
Questions /wp-admin/edit.php?post_type=gma-question | 5.88 | 25.08 |
Server storage [IO: ▲7.51MB] [DB: ▲0.09MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 546 new files
Database: 1 new table, 22 new options
New tables |
---|
wp_gma_profile_visit |
New WordPress options |
---|
gma-question_category_children |
gma_permission |
widget_gma_widget_category |
can_compress_scripts |
widget_gma-closed-question |
widget_gma-top-responders |
widget_recent-comments |
gma_has_roles |
widget_gma-latest-question |
widget_gma-popular-question |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Give Me Answer Lite
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,077 ▲331 | 13.99 ▼0.38 | 18.92 ▲17.23 | 36.24 ▼6.54 |
Dashboard /wp-admin | 2,289 ▲109 | 5.57 ▼0.10 | 85.40 ▼9.08 | 93.59 ▲56.60 |
Posts /wp-admin/edit.php | 2,191 ▲94 | 1.99 ▲0.02 | 37.48 ▲0.64 | 33.62 ▼7.35 |
Add New Post /wp-admin/post-new.php | 1,760 ▲225 | 22.02 ▼3.12 | 715.81 ▲64.19 | 60.70 ▲0.18 |
Media Library /wp-admin/upload.php | 1,491 ▲94 | 4.17 ▼0.04 | 98.95 ▼1.18 | 94.33 ▲52.38 |
Settings /wp-admin/admin.php?page=gma-settings | 1,116 | 2.62 | 37.13 | 30.83 |
Tags /wp-admin/edit-tags.php?taxonomy=gma-question_tag&post_type=gma-question | 1,451 | 2.64 | 43.68 | 38.99 |
Categories /wp-admin/edit-tags.php?taxonomy=gma-question_category&post_type=gma-question | 1,582 | 2.47 | 38.28 | 39.14 |
Answers /wp-admin/edit.php?post_type=gma-answer | 1,209 | 2.74 | 46.28 | 35.23 |
Give Me Answer Lite /wp-admin/admin.php?page=give-me-answer-lite | 1,146 | 2.84 | 93.87 | 35.61 |
Comments /wp-admin/admin.php?page=gma-comments | 1,383 | 2.20 | 33.44 | 27.89 |
Add-Ons /wp-admin/admin.php?page=gma-addons | 954 | 2.57 | 34.24 | 33.10 |
Questions /wp-admin/edit.php?post_type=gma-question | 1,309 | 2.63 | 39.33 | 37.84 |
Uninstaller [IO: ▲7.51MB] [DB: ▲0.08MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attentionZombie WordPress options detected upon uninstall: 13 options
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/give-me-answer-lite/includes/Libraries/Upload/class-upload.php+2727
Array and string offset access syntax with curly braces is deprecated
- This plugin has failed uninstalling correctly, leaving 546 files (7.51MB) in the plugin directory
- (new file) assets-admin/css/gma-admin-style-rtl.css
- (new file) assets-admin/css/fontawesome.min.css
- (new file) assets-admin/css/izimodal.min.css
- (new file) assets-admin/css/izitoast.min.css
- (new file) assets-admin/css/chosen.min.css
- (new file) assets-admin/css/chart.min.css
- (new file) assets-admin/css/index.php
- (new file) README.md
- (new file) assets-admin/css/gma-admin-style.css
- (new file) assets-admin/css/nprogress.css
- ...
- can_compress_scripts
- db_upgraded
- gma_plugin_activated
- widget_gma_widget_category
- widget_gma_widget_rss
- theysaidso_admin_options
- widget_recent-comments
- widget_gma-widget-ask-question
- widget_recent-posts
- widget_theysaidso_widget
- ...
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 10 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=gma-question
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-content/plugins/give-me-answer-lite/includes/Libraries/Upload/class-upload.php+2727
Array and string offset access syntax with curly braces is deprecated
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
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/give-me-answer-lite/templates/modal-share.php
- 86× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post() in wp-content/plugins/give-me-answer-lite/templates/content-close.php:9
- > PHP Notice
Trying to get property 'roles' of non-object in wp-content/plugins/give-me-answer-lite/templates/user-summary.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/give-me-answer-lite/includes/Libraries/cmb2/includes/types/CMB2_Type_Taxonomy_Select.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function absint() in wp-content/plugins/give-me-answer-lite/templates/profile/auth.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/give-me-answer-lite/includes/Widgets/class-widget-categories.php:4
- > PHP Fatal error
Uncaught Error: Class 'CMB2_REST_Controller' not found in wp-content/plugins/give-me-answer-lite/includes/Libraries/cmb2/includes/rest-api/CMB2_REST_Controller_Boxes.php:17
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/give-me-answer-lite/includes/Libraries/cmb2/includes/types/CMB2_Type_Radio.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post() in wp-content/plugins/give-me-answer-lite/templates/content-add-comment.php:3
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/give-me-answer-lite/includes/Libraries/cmb2/includes/types/CMB2_Type_Select.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_field() in wp-content/plugins/give-me-answer-lite/templates/content-single-answer.php:16
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=give-me-answer-lite
- > Console-api (warning) in unknown
/wp-content/plugins/give-me-answer-lite/assets-admin/js/gma-dashboard.js?ver=6.3.1 64:12 Object
Optimizations
Plugin configuration 90% 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
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (Front-end appearance), #2 (Ask question page), #3 (Single question page), #4 (Dashboard), #5 (Show user info when hover on username), #6 (Share in socials), #7 (User profile page)
give-me-answer-lite/give-me-answer-lite.php 85% from 13 tests
"Give Me Answer Lite" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Domain Path: You should use only dashes and lowercase characters for the domain path ("languages/")
- Domain Path: Prefix the domain path with a forward slash character ("/languages/")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected87,953 lines of code in 353 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 14,315 | 18,502 | 32,323 |
PHP | 149 | 5,835 | 11,574 | 26,739 |
CSS | 26 | 5,065 | 1,216 | 19,482 |
SVG | 3 | 0 | 0 | 3,895 |
JavaScript | 27 | 650 | 578 | 3,343 |
Sass | 16 | 300 | 25 | 1,378 |
Markdown | 5 | 230 | 0 | 640 |
HTML | 7 | 0 | 0 | 153 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
The following items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 574)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 32.23 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 826.00 |
Average method complexity | 4.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 574.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 128 | |
▷ Abstract classes | 10 | 7.81% |
▷ Concrete classes | 118 | 92.19% |
▷ Final classes | 0 | 0.00% |
Methods | 1,184 | |
▷ Static methods | 93 | 7.85% |
▷ Public methods | 981 | 82.85% |
▷ Protected methods | 174 | 14.70% |
▷ Private methods | 29 | 2.45% |
Functions | 324 | |
▷ Named functions | 272 | 83.95% |
▷ Anonymous functions | 52 | 16.05% |
Constants | 69 | |
▷ Global constants | 9 | 13.04% |
▷ Class constants | 60 | 86.96% |
▷ Public constants | 60 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
31 PNG files occupy 1.00MB with 0.49MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets-admin/img/telegram.png | 1.04KB | 1.03KB | ▼ 0.75% |
assets-admin/img/twitter.png | 12.91KB | 6.80KB | ▼ 47.33% |
screenshot-7.png | 42.02KB | 14.13KB | ▼ 66.37% |
screenshot-1.png | 127.82KB | 44.40KB | ▼ 65.26% |
screenshot-4.png | 193.63KB | 64.71KB | ▼ 66.58% |