Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼2.79ms] Passed 4 tests
A check of server-side resources used by Likert Survey Master
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 43.93 ▲5.41 |
Dashboard /wp-admin | 3.50 ▲0.19 | 54.30 ▲4.02 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 53.63 ▼1.44 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 97.03 ▼14.99 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 39.53 ▲1.27 |
Question Categories /wp-admin/admin.php?page=likertm_survey | 3.36 | 37.81 |
Create Survey /wp-admin/admin.php?page=likert_master | 3.44 | 37.04 |
Manage Surveys /wp-admin/admin.php?page=likertm_surveys | 3.39 | 33.11 |
Manage Questions /wp-admin/admin.php?page=likertm_questions | 3.36 | 34.03 |
Question Categories /wp-admin/admin.php?page=likertm_qcats | 3.39 | 33.57 |
Stats Per Question /wp-admin/admin.php?page=likertm_per_question | 3.36 | 35.88 |
View Answers /wp-admin/admin.php?page=likertm_results | 3.36 | 33.37 |
Server storage [IO: ▲0.09MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: 6 new tables, 7 new options
New tables |
---|
wp_likertm_surveys |
wp_likertm_qcats |
wp_likertm_questions |
wp_likertm_user_answers |
wp_likertm_takings |
wp_likertm_choices |
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
likertm_version |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Likert Survey Master
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,957 ▲171 | 13.84 ▼0.52 | 8.60 ▲6.61 | 42.92 ▼0.13 |
Dashboard /wp-admin | 2,255 ▲52 | 5.89 ▲0.99 | 96.64 ▼8.45 | 38.32 ▼7.05 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 2.01 ▲0.00 | 41.74 ▲2.77 | 35.09 ▲1.93 |
Add New Post /wp-admin/post-new.php | 1,570 ▲44 | 23.06 ▲5.30 | 649.28 ▲13.42 | 59.34 ▼1.84 |
Media Library /wp-admin/upload.php | 1,434 ▲34 | 4.25 ▲0.05 | 96.95 ▼9.25 | 44.11 ▼2.93 |
Question Categories /wp-admin/admin.php?page=likertm_survey | 695 | 1.14 | 6.76 | 18.02 |
Create Survey /wp-admin/admin.php?page=likert_master | 1,147 | 2.15 | 24.34 | 31.27 |
Manage Surveys /wp-admin/admin.php?page=likertm_surveys | 812 | 2.14 | 23.64 | 29.28 |
Manage Questions /wp-admin/admin.php?page=likertm_questions | 804 | 2.05 | 24.52 | 27.23 |
Question Categories /wp-admin/admin.php?page=likertm_qcats | 809 | 2.02 | 23.98 | 26.81 |
Stats Per Question /wp-admin/admin.php?page=likertm_per_question | 793 | 2.02 | 26.86 | 27.21 |
View Answers /wp-admin/admin.php?page=likertm_results | 799 | 2.05 | 24.58 | 26.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The plugin did not uninstall successfully, leaving 6 tables in the database
- wp_likertm_qcats
- wp_likertm_surveys
- wp_likertm_takings
- wp_likertm_user_answers
- wp_likertm_choices
- wp_likertm_questions
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- likertm_version
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=likertm_survey
- > Notice in wp-content/plugins/likert-survey-master/controllers/main.php+80
Undefined index: id
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=likertm_results
- > Notice in wp-content/plugins/likert-survey-master/controllers/results.php+8
Undefined index: survey_id
- 10 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=likertm_results
- > Notice in wp-content/plugins/likert-survey-master/views/view-results.html.php+6
Trying to get property 'id' of non-object
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=likertm_results
- > Notice in wp-content/plugins/likert-survey-master/views/view-results.html.php+2
Trying to get property 'title' of non-object
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
Almost there! Just fix the following items
- 22× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: survey in wp-content/plugins/likert-survey-master/views/display-survey.html.php on line 14
- > PHP Notice
Trying to get property 'id' of non-object in wp-content/plugins/likert-survey-master/views/display-survey.html.php on line 26
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/likert-survey-master/views/questions.html.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/likert-survey-master/views/choice.html.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/likert-survey-master/views/main.html.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/likert-survey-master/views/stats-per-question.html.php:2
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/likert-survey-master/views/display-survey.html.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/likert-survey-master/views/display-survey.html.php:26
- > PHP Notice
Trying to get property 'id' of non-object in wp-content/plugins/likert-survey-master/views/display-survey.html.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/likert-survey-master/views/surveys.html.php:2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% 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: Please a description for screenshot #4 in likert-survey-master/assets to your readme.txt
likert-survey-master/likert-survey.php 85% from 13 tests
The entry point to "Likert Survey Master" version 0.8.0.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("likert-survey-master.php" instead of "likert-survey.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
There were no executable files found in this plugin1,129 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 249 | 121 | 1,069 |
JavaScript | 1 | 12 | 4 | 49 |
CSS | 1 | 2 | 1 | 11 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 15.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 6.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 18 | |
▷ Static methods | 13 | 72.22% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/arrow-up.png | 0.23KB | 0.25KB | 0.00% |
img/arrow-down.png | 0.24KB | 0.25KB | 0.00% |