Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.47MB] [CPU: ▼2.35ms] Passed 4 tests
Server-side resources used by Watu Quiz
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.47 | 47.59 ▼1.36 |
Dashboard /wp-admin | 3.77 ▲0.47 | 53.44 ▲4.98 |
Posts /wp-admin/edit.php | 3.89 ▲0.53 | 54.74 ▼0.42 |
Add New Post /wp-admin/post-new.php | 6.37 ▲0.49 | 88.06 ▼12.59 |
Media Library /wp-admin/upload.php | 3.70 ▲0.47 | 45.41 ▲8.92 |
Add/Edit Quiz /wp-admin/admin.php?page=watu_exam | 3.80 | 39.14 |
Help & Support /wp-admin/admin.php?page=watu_help | 3.70 | 39.11 |
Watu Quizzes /wp-admin/admin.php?page=watu_exams | 3.71 | 40.14 |
Manage Questions /wp-admin/admin.php?page=watu_questions | 3.64 | 37.58 |
Settings /wp-admin/admin.php?page=watu_options | 3.74 | 43.62 |
Import Questions /wp-admin/admin.php?page=watu_import_questions | 3.64 | 35.73 |
Manage Grades /wp-admin/admin.php?page=watu_grades | 3.64 | 32.35 |
Social Sharing /wp-admin/admin.php?page=watu_social_sharing | 3.68 | 39.03 |
Add/Edit Question /wp-admin/admin.php?page=watu_question | 3.64 | 33.82 |
Quiz submissions /wp-admin/admin.php?page=watu_takings | 3.64 | 36.29 |
Server storage [IO: ▲1.03MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 56 new files
Database: 6 new tables, 6 new options
New tables |
---|
wp_watu_question |
wp_watu_master |
wp_watu_qcats |
wp_watu_takings |
wp_watu_grading |
wp_watu_answer |
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Watu Quiz
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,919 ▲158 | 13.84 ▼0.72 | 9.66 ▲7.78 | 41.93 ▼4.53 |
Dashboard /wp-admin | 2,234 ▲63 | 5.59 ▲0.06 | 84.84 ▼3.43 | 44.15 ▲0.33 |
Posts /wp-admin/edit.php | 2,142 ▲42 | 2.00 ▼0.01 | 38.81 ▲1.30 | 37.29 ▲4.05 |
Add New Post /wp-admin/post-new.php | 1,561 ▲35 | 23.08 ▼0.40 | 678.94 ▲61.00 | 59.24 ▼0.77 |
Media Library /wp-admin/upload.php | 1,442 ▲42 | 4.24 ▲0.04 | 112.26 ▲12.67 | 47.21 ▲3.72 |
Add/Edit Quiz /wp-admin/admin.php?page=watu_exam | 3,322 | 8.32 | 180.67 | 88.11 |
Help & Support /wp-admin/admin.php?page=watu_help | 1,094 | 2.04 | 23.64 | 30.88 |
Watu Quizzes /wp-admin/admin.php?page=watu_exams | 1,128 | 2.05 | 28.14 | 43.54 |
Manage Questions /wp-admin/admin.php?page=watu_questions | 1,238 | 2.07 | 26.51 | 32.08 |
Settings /wp-admin/admin.php?page=watu_options | 1,264 | 1.68 | 23.91 | 33.46 |
Import Questions /wp-admin/admin.php?page=watu_import_questions | 897 | 2.05 | 26.28 | 31.18 |
Manage Grades /wp-admin/admin.php?page=watu_grades | 707 | 1.18 | 8.17 | 12.03 |
Social Sharing /wp-admin/admin.php?page=watu_social_sharing | 955 | 2.02 | 23.61 | 30.30 |
Add/Edit Question /wp-admin/admin.php?page=watu_question | 2,147 | 7.90 | 158.43 | 49.41 |
Quiz submissions /wp-admin/admin.php?page=watu_takings | 1,204 | 2.07 | 23.50 | 31.80 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 tables in the database
- wp_watu_takings
- wp_watu_question
- wp_watu_answer
- wp_watu_qcats
- wp_watu_grading
- wp_watu_master
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 25% 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)
Please fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=watu_takings
- > Notice in wp-content/plugins/watu/views/takings.php+7
Trying to get property 'name' of non-object
- > GET request to /wp-admin/admin.php?page=watu_exam
- > Notice in wp-content/plugins/watu/views/exam_form.php+33
Trying to get property 'pull_random' of non-object
- > GET request to /wp-admin/admin.php?page=watu_exam
- > Notice in wp-content/plugins/watu/views/exam_form.php+47
Trying to get property 'times_to_take' of non-object
- > GET request to /wp-admin/admin.php?page=watu_exam
- > Notice in wp-content/plugins/watu/views/exam_form.php+154
Trying to get property 'description' of non-object
- > GET request to /wp-admin/admin.php?page=watu_exam
- > Notice in wp-content/plugins/watu/views/exam_form.php+170
Trying to get property 'email_output' of non-object
- > GET request to /wp-admin/admin.php?page=watu_exams
- > Notice in wp-content/plugins/watu/views/exams.html.php+50
Undefined variable: class
- 14 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=watu_question
- > Notice in wp-content/plugins/watu/views/question-form.html.php+208
Undefined index: quiz
- > GET request to /wp-admin/admin.php?page=watu_questions
- > Notice in wp-content/plugins/watu/views/questions.html.php+118
Undefined variable: bgcolor
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=watu_grades
- > Notice in wp-content/plugins/watu/controllers/grades.php+8
Undefined index: quiz_id
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=watu_takings
- > Notice in wp-content/plugins/watu/views/takings.php+75
Trying to get property 'ID' of non-object
- > GET request to /wp-admin/admin.php?page=watu_question
- > Notice in wp-content/plugins/watu/controllers/questions.php+190
Undefined index: action
- > GET request to /wp-admin/admin.php?page=watu_question
- > Notice in wp-content/plugins/watu/views/question-form.html.php+172
Undefined offset: 0
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=watu_question
- > Notice in wp-content/plugins/watu/views/question-form.html.php+172
Trying to get property 'correct' of non-object
- > GET request to /wp-admin/admin.php?page=watu_question
- > Notice in wp-content/plugins/watu/views/question-form.html.php+172
Undefined offset: 1
- > GET request to /wp-admin/admin.php?page=watu_question
- > Notice in wp-content/plugins/watu/views/question-form.html.php+172
Undefined offset: 2
- > GET request to /wp-admin/admin.php?page=watu_question
- > Notice in wp-content/plugins/watu/views/question-form.html.php+172
Undefined offset: 3
- > GET request to /wp-admin/admin.php?page=watu_question
- > Notice in wp-content/plugins/watu/views/question-form.html.php+187
Undefined variable: question
- > GET request to /wp-admin/admin.php?page=watu_question
- > Notice in wp-content/plugins/watu/views/question-form.html.php+187
Trying to get property 'feedback' of non-object
- > GET request to /wp-admin/admin.php?page=watu_question
- > Notice in wp-content/plugins/watu/views/question-form.html.php+198
Undefined variable: user_ID
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=watu_takings
- > Notice in wp-content/plugins/watu/controllers/takings.php+160
Undefined index: exam_id
- > GET request to /wp-admin/admin.php?page=watu_takings
- > Notice in wp-content/plugins/watu/controllers/takings.php+209
Undefined index: dn
- > GET request to /wp-admin/admin.php?page=watu_takings
- > Notice in wp-content/plugins/watu/controllers/takings.php+209
Undefined index: dnf
- > GET request to /wp-admin/admin.php?page=watu_takings
- > Notice in wp-content/plugins/watu/controllers/takings.php+209
Undefined index: email
- > GET request to /wp-admin/admin.php?page=watu_takings
- > Notice in wp-content/plugins/watu/controllers/takings.php+210
Undefined index: emailf
- > GET request to /wp-admin/admin.php?page=watu_takings
- > Notice in wp-content/plugins/watu/controllers/takings.php+210
Undefined index: ip
- > GET request to /wp-admin/admin.php?page=watu_takings
- > Notice in wp-content/plugins/watu/controllers/takings.php+210
Undefined index: ipf
- > GET request to /wp-admin/admin.php?page=watu_takings
- > Notice in wp-content/plugins/watu/controllers/takings.php+210
Undefined index: date
- > GET request to /wp-admin/admin.php?page=watu_takings
- > Notice in wp-content/plugins/watu/controllers/takings.php+211
Undefined index: datef
- > GET request to /wp-admin/admin.php?page=watu_takings
- > Notice in wp-content/plugins/watu/controllers/takings.php+211
Undefined index: points
- > GET request to /wp-admin/admin.php?page=watu_takings
- > Notice in wp-content/plugins/watu/controllers/takings.php+211
Undefined index: pointsf
- > GET request to /wp-admin/admin.php?page=watu_takings
- > Notice in wp-content/plugins/watu/controllers/takings.php+212
Undefined index: grade_id
- > GET request to /wp-admin/admin.php?page=watu_takings
- > Notice in wp-content/plugins/watu/controllers/takings.php+212
Undefined index: source_url
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 fix the following items
- 21× 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 _e() in wp-content/plugins/watu/views/taking_details.html.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/watu/views/exam_form.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/watu/views/import.html.php:2
- > PHP Notice
Undefined variable: single_page in wp-content/plugins/watu/views/show_exam.html.php on line 1
- > PHP Warning
Use of undefined constant WATU_URL - assumed 'WATU_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/watu/views/taking_details.html.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/watu/views/show_exam.html.php:58
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/watu/views/show_exam.html.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/watu/views/sidebar.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/watu/views/grades.html.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/watu/views/sharing-options.html.php:2
- > 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)
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=watu_exam
- > Network (severe)
wp-content/plugins/watu/lib/images/ui-bg_flat_75_ffffff_40x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=watu_questions
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).sortable is not a function" "TypeError: jQuery(...).sortable is not a function\n at HTMLDocument.\u003Canonymous> (/wp-admin/admin.php?page=watu_questions:356:31)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/admin.php?page=watu_questions
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).sortable is not a function
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% 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
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (List of your exams with shortcodes for embedding in posts or pages), #2 (The form for creating and editing an exam/test), #3 (You can add unlimited number of questions in each quiz or exam, and each question can be of single-answer, multiple-answer, or open-end type.)
- Screenshots: Add descriptions for screenshots #4, #5 in watu/assets to your readme.txt
watu/watu.php 85% from 13 tests
"Watu Quiz" version 3.4.0.2'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: The domain path folder was not found ("/languages")
- Description: Keep the plugin description shorter than 140 characters (currently 491 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin11,484 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 6 | 2,422 | 2,466 | 7,330 |
PHP | 28 | 713 | 277 | 3,307 |
CSS | 2 | 80 | 85 | 610 |
JavaScript | 1 | 56 | 22 | 237 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 17.80 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 8.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 10 | 90.91% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 49 | |
▷ Named functions | 49 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 12 | 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
8 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
wrong.png | 0.64KB | 0.72KB | 0.00% |
img/share/facebook.png | 1.89KB | 0.74KB | ▼ 60.82% |
img/arrow-down.png | 0.24KB | 0.25KB | 0.00% |
correct.png | 0.52KB | 0.52KB | 0.00% |
screenshot-3.png | 16.18KB | 6.54KB | ▼ 59.61% |