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: ▲3.27MB] [CPU: ▼263.99ms] 75% from 4 tests
Analyzing server-side resources used by Quiz And Survey Master - Best Quiz, Exam and Survey Plugin for WordPress
Please take the time to fix the following items
- CPU: The total CPU usage must kept under 500.00ms (currently 1,881.74ms on /wp-admin/admin.php?page=qsm_dashboard)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.79 ▲2.27 | 91.51 ▲15.97 |
Dashboard /wp-admin | 7.02 ▲3.61 | 86.92 ▲43.05 |
Posts /wp-admin/edit.php | 7.25 ▲3.61 | 77.61 ▲21.92 |
Add New Post /wp-admin/post-new.php | 10.56 ▲3.60 | 158.35 ▼1,127.40 |
Media Library /wp-admin/upload.php | 6.96 ▲3.67 | 67.92 ▲33.56 |
Question Categories /wp-admin/edit-tags.php?taxonomy=qsm_category | 6.96 | 62.73 |
Theme Settings /wp-admin/admin.php?page=qmn_theme_settings | 6.93 | 61.78 |
Add New /wp-admin/post-new.php?post_type=qmn_log | 7.23 | 75.70 |
QSM Logs /wp-admin/edit.php?post_type=qmn_log | 7.01 | 66.56 |
Stats /wp-admin/admin.php?page=qmn_stats | 6.93 | 60.35 |
Quizzes/Surveys /wp-admin/admin.php?page=mlw_quiz_list | 7.03 | 81.17 |
Result Details /wp-admin/admin.php?page=qsm_quiz_result_details | 6.90 | 87.71 |
Tags /wp-admin/edit-tags.php?taxonomy=qmn_log_type&post_type=qmn_log | 6.96 | 65.39 |
Dashboard /wp-admin/admin.php?page=qsm_dashboard | 9.81 | 1,881.74 |
Get a Free Addon! /wp-admin/admin.php?page=qsm-free-addon | 6.94 | 60.31 |
Server storage [IO: ▲5.44MB] [DB: ▲0.37MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 224 new files
Database: 7 new tables, 15 new options
New tables |
---|
wp_mlw_themes |
wp_mlw_quizzes |
wp_mlw_quiz_theme_settings |
wp_mlw_questions |
wp_mlw_question_terms |
wp_mlw_qm_audit_trail |
wp_mlw_results |
New WordPress options |
---|
qmn_review_message_trigger |
qsm_add_new_column_question_table_table |
qsm_update_db_column |
qmn_original_version |
qsm_update_quiz_db_column |
qsm_update_result_db_column_page_name |
qsm_update_result_db_column_page_url |
qsm_dashboard_widget_arr |
qsm_update_result_db_column_datatype |
mlw_quiz_master_version |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Quiz And Survey Master - Best Quiz, Exam and Survey Plugin for WordPress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,294 ▲536 | 16.52 ▲1.07 | 14.39 ▼2.53 | 2.97 ▼0.65 |
Dashboard /wp-admin | 3,288 ▲409 | 6.85 ▲0.49 | 191.45 ▼7.17 | 255.90 ▲21.11 |
Posts /wp-admin/edit.php | 2,854 ▲169 | 3.57 ▲0.13 | 107.24 ▼3.68 | 183.80 ▼15.00 |
Add New Post /wp-admin/post-new.php | 1,763 ▲147 | 18.24 ▼0.68 | 683.17 ▲20.26 | 223.27 ▲8.89 |
Media Library /wp-admin/upload.php | 1,844 ▲152 | 5.82 ▲0.11 | 188.68 ▲4.16 | 277.84 ▲33.82 |
Question Categories /wp-admin/edit-tags.php?taxonomy=qsm_category | 1,777 | 3.60 | 77.47 | 170.70 |
Theme Settings /wp-admin/admin.php?page=qmn_theme_settings | 1,175 | 3.34 | 75.96 | 103.86 |
Add New /wp-admin/post-new.php?post_type=qmn_log | 3,040 | 10.37 | 274.11 | 254.84 |
QSM Logs /wp-admin/edit.php?post_type=qmn_log | 1,534 | 3.71 | 86.52 | 158.61 |
Stats /wp-admin/admin.php?page=qmn_stats | 1,221 | 4.08 | 143.81 | 165.47 |
Quizzes/Surveys /wp-admin/admin.php?page=mlw_quiz_list | 4,381 | 14.70 | 494.43 | 256.99 |
Result Details /wp-admin/admin.php?page=qsm_quiz_result_details | 1,369 | 6.89 | 148.13 | 145.56 |
Tags /wp-admin/edit-tags.php?taxonomy=qmn_log_type&post_type=qmn_log | 1,958 | 3.61 | 89.01 | 185.53 |
Dashboard /wp-admin/admin.php?page=qsm_dashboard | 3,437 | 6.89 | 155.18 | 310.75 |
Get a Free Addon! /wp-admin/admin.php?page=qsm-free-addon | 1,371 | 4.75 | 149.10 | 252.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.37MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The uninstall procedure failed, leaving 7 tables in the database
- wp_mlw_question_terms
- wp_mlw_quiz_theme_settings
- wp_mlw_qm_audit_trail
- wp_mlw_themes
- wp_mlw_results
- wp_mlw_questions
- wp_mlw_quizzes
- Zombie WordPress options were found after uninstall: 15 options
- mlw_quiz_master_version
- qsm_update_result_db_column_datatype
- qsm_update_result_db_column_page_name
- qsm_update_result_db_column
- qsm_update_quiz_db_column
- mlw_advert_shows
- qsm_multiple_category_enabled
- qmn-settings
- qsm_update_db_column
- qsm_dashboard_widget_arr
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=qsm_quiz_result_details
- > Notice in wp-content/plugins/quiz-master-next/php/admin/admin-results-details-page.php+114
Trying to get property 'quiz_id' of non-object
- > GET request to /wp-admin/admin.php?page=qsm_quiz_result_details
- > Notice in wp-content/plugins/quiz-master-next/php/admin/admin-results-details-page.php+74
Trying to access array offset on value of type bool
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=qsm_quiz_result_details
- > Notice in wp-content/plugins/quiz-master-next/php/admin/admin-results-details-page.php+115
Trying to get property 'quiz_name' of non-object
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=qsm_quiz_result_details
- > Notice in wp-content/plugins/quiz-master-next/php/admin/admin-results-details-page.php+272
Trying to get property 'quiz_results' of non-object
- > GET request to /wp-admin/admin.php?page=qsm_quiz_result_details
- > Notice in wp-content/plugins/quiz-master-next/php/admin/admin-results-details-page.php+116
Trying to get property 'quiz_system' of non-object
- > GET request to /wp-admin/admin.php?page=qsm_quiz_result_details
- > Notice in wp-content/plugins/quiz-master-next/php/admin/admin-results-details-page.php+117
Trying to get property 'form_type' of non-object
- > GET request to /wp-admin/admin.php?page=qsm_quiz_result_details
- > Notice in wp-content/plugins/quiz-master-next/php/admin/admin-results-details-page.php+118
Trying to get property 'name' of non-object
- > GET request to /wp-admin/admin.php?page=qsm_quiz_result_details
- > Notice in wp-content/plugins/quiz-master-next/php/admin/admin-results-details-page.php+119
Trying to get property 'business' of non-object
- > GET request to /wp-admin/admin.php?page=qsm_quiz_result_details
- > Notice in wp-content/plugins/quiz-master-next/php/admin/admin-results-details-page.php+120
Trying to get property 'email' of non-object
- > GET request to /wp-admin/admin.php?page=qsm_quiz_result_details
- > Notice in wp-content/plugins/quiz-master-next/php/admin/admin-results-details-page.php+121
Trying to get property 'phone' of non-object
- > GET request to /wp-admin/admin.php?page=qsm_quiz_result_details
- > Notice in wp-content/plugins/quiz-master-next/php/admin/admin-results-details-page.php+122
Trying to get property 'user' of non-object
- > GET request to /wp-admin/admin.php?page=qsm_quiz_result_details
- > Notice in wp-content/plugins/quiz-master-next/php/admin/admin-results-details-page.php+124
Trying to get property 'time_taken' of non-object
- > GET request to /wp-admin/admin.php?page=qsm_quiz_result_details
- > Notice in wp-content/plugins/quiz-master-next/php/admin/admin-results-details-page.php+125
Trying to get property 'point_score' of non-object
- > GET request to /wp-admin/admin.php?page=qsm_quiz_result_details
- > Notice in wp-content/plugins/quiz-master-next/php/admin/admin-results-details-page.php+126
Trying to get property 'correct_score' of non-object
- > GET request to /wp-admin/admin.php?page=qsm_quiz_result_details
- > Notice in wp-content/plugins/quiz-master-next/php/admin/admin-results-details-page.php+127
Trying to get property 'correct' of non-object
- > GET request to /wp-admin/admin.php?page=qsm_quiz_result_details
- > Notice in wp-content/plugins/quiz-master-next/php/admin/admin-results-details-page.php+128
Trying to get property 'total' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=qsm_quiz_result_details
- > Notice in wp-content/plugins/quiz-master-next/php/template-variables.php+552
Undefined property: stdClass::$quiz_settings
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=qsm_quiz_result_details
- > Notice in wp-content/plugins/quiz-master-next/php/template-variables.php+553
Trying to access array offset on value of type null
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 7× PHP files output text when accessed directly:
- > /wp-content/plugins/quiz-master-next/php/admin/index.php
- > /wp-content/plugins/quiz-master-next/index.php
- > /wp-content/plugins/quiz-master-next/php/index.php
- > /wp-content/plugins/quiz-master-next/php/images/index.php
- > /wp-content/plugins/quiz-master-next/css/index.php
- > /wp-content/plugins/quiz-master-next/js/index.php
- > /wp-content/plugins/quiz-master-next/assets/index.php
- 16× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Codeception\\Actor' not found in wp-content/plugins/quiz-master-next/tests/_support/WpunitTester.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quiz-master-next/php/classes/class-qmn-review-message.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/quiz-master-next/php/shortcodes.php:54
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quiz-master-next/php/admin/admin-dashboard.php:328
- > PHP Fatal error
Uncaught Error: Class 'Codeception\\Actor' not found in wp-content/plugins/quiz-master-next/tests/_support/FunctionalTester.php:19
- > PHP Fatal error
Uncaught Error: Class 'Codeception\\Module' not found in wp-content/plugins/quiz-master-next/tests/_support/Helper/Unit.php:7
- > PHP Fatal error
Uncaught Error: Class 'Codeception\\Module' not found in wp-content/plugins/quiz-master-next/tests/_support/Helper/Functional.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quiz-master-next/blocks/block.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quiz-master-next/php/gdpr.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quiz-master-next/php/admin/functions.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: score, exam, questionnaire, quiz, lead...
quiz-master-next/mlw_quizmaster2.php 92% from 13 tests
This is the main PHP file of "Quiz And Survey Master - Best Quiz, Exam and Survey Plugin for WordPress" version 7.3.14, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("quiz-master-next.php" instead of "mlw_quizmaster2.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin42,155 lines of code in 151 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 90 | 2,286 | 8,764 | 19,683 |
CSS | 28 | 2,553 | 404 | 15,535 |
JavaScript | 17 | 347 | 3,099 | 5,547 |
Markdown | 5 | 244 | 0 | 1,043 |
XML | 2 | 15 | 17 | 174 |
YAML | 5 | 6 | 37 | 114 |
Bourne Shell | 1 | 19 | 25 | 44 |
JSON | 3 | 0 | 0 | 15 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 31.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 393.00 |
Average method complexity | 3.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 59.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 4 | |
Classes | 37 | |
▷ Abstract classes | 3 | 8.11% |
▷ Concrete classes | 34 | 91.89% |
▷ Final classes | 0 | 0.00% |
Methods | 630 | |
▷ Static methods | 53 | 8.41% |
▷ Public methods | 590 | 93.65% |
▷ Protected methods | 23 | 3.65% |
▷ Private methods | 17 | 2.70% |
Functions | 233 | |
▷ Named functions | 227 | 97.42% |
▷ Anonymous functions | 6 | 2.58% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
41 PNG files occupy 0.50MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/twitter.png | 0.57KB | 0.51KB | ▼ 9.93% |
assets/screenshot-6.png | 94.43KB | 36.51KB | ▼ 61.34% |
css/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.21KB | 0.08KB | ▼ 58.96% |
assets/screenshot-3.png | 17.31KB | 9.62KB | ▼ 44.45% |
css/images/ui-icons_d8e7f3_256x240.png | 4.57KB | 4.18KB | ▼ 8.43% |