62% quiz-master-next

Code Review | Quiz And Survey Master - Best Quiz, Exam and Survey Plugin for WordPress

WordPress plugin Quiz And Survey Master - Best Quiz, Exam and Survey Plugin for WordPress scored 62% from 54 tests.

About plugin

  • Plugin page: quiz-master-next
  • Plugin version: 7.3.14
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.9
  • WordPress version: 5.9.2
  • First release: Sep 10, 2013
  • Latest release: Apr 5, 2022
  • Number of updates: 1,000
  • Update frequency: every 3.1 days
  • Top authors: fpcorso (81.7%)expresstech (13.8%)quizsurvey (4.8%)

Code review

54 tests

User reviews

1139 reviews

Install metrics

40,000+ active / 1,498,330 total downloads

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)
PageMemory (MB)CPU Time (ms)
Home /5.79 ▲2.2791.51 ▲15.97
Dashboard /wp-admin7.02 ▲3.6186.92 ▲43.05
Posts /wp-admin/edit.php7.25 ▲3.6177.61 ▲21.92
Add New Post /wp-admin/post-new.php10.56 ▲3.60158.35 ▼1,127.40
Media Library /wp-admin/upload.php6.96 ▲3.6767.92 ▲33.56
Question Categories /wp-admin/edit-tags.php?taxonomy=qsm_category6.9662.73
Theme Settings /wp-admin/admin.php?page=qmn_theme_settings6.9361.78
Add New /wp-admin/post-new.php?post_type=qmn_log7.2375.70
QSM Logs /wp-admin/edit.php?post_type=qmn_log7.0166.56
Stats /wp-admin/admin.php?page=qmn_stats6.9360.35
Quizzes/Surveys /wp-admin/admin.php?page=mlw_quiz_list7.0381.17
Result Details /wp-admin/admin.php?page=qsm_quiz_result_details6.9087.71
Tags /wp-admin/edit-tags.php?taxonomy=qmn_log_type&post_type=qmn_log6.9665.39
Dashboard /wp-admin/admin.php?page=qsm_dashboard9.811,881.74
Get a Free Addon! /wp-admin/admin.php?page=qsm-free-addon6.9460.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,294 ▲53616.52 ▲1.0714.39 ▼2.532.97 ▼0.65
Dashboard /wp-admin3,288 ▲4096.85 ▲0.49191.45 ▼7.17255.90 ▲21.11
Posts /wp-admin/edit.php2,854 ▲1693.57 ▲0.13107.24 ▼3.68183.80 ▼15.00
Add New Post /wp-admin/post-new.php1,763 ▲14718.24 ▼0.68683.17 ▲20.26223.27 ▲8.89
Media Library /wp-admin/upload.php1,844 ▲1525.82 ▲0.11188.68 ▲4.16277.84 ▲33.82
Question Categories /wp-admin/edit-tags.php?taxonomy=qsm_category1,7773.6077.47170.70
Theme Settings /wp-admin/admin.php?page=qmn_theme_settings1,1753.3475.96103.86
Add New /wp-admin/post-new.php?post_type=qmn_log3,04010.37274.11254.84
QSM Logs /wp-admin/edit.php?post_type=qmn_log1,5343.7186.52158.61
Stats /wp-admin/admin.php?page=qmn_stats1,2214.08143.81165.47
Quizzes/Surveys /wp-admin/admin.php?page=mlw_quiz_list4,38114.70494.43256.99
Result Details /wp-admin/admin.php?page=qsm_quiz_result_details1,3696.89148.13145.56
Tags /wp-admin/edit-tags.php?taxonomy=qmn_log_type&post_type=qmn_log1,9583.6189.01185.53
Dashboard /wp-admin/admin.php?page=qsm_dashboard3,4376.89155.18310.75
Get a Free Addon! /wp-admin/admin.php?page=qsm-free-addon1,3714.75149.10252.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP902,2868,76419,683
CSS282,55340415,535
JavaScript173473,0995,547
Markdown524401,043
XML21517174
YAML5637114
Bourne Shell1192544
JSON30015

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 code0.36
Average class complexity31.80
▷ Minimum class complexity1.00
▷ Maximum class complexity393.00
Average method complexity3.03
▷ Minimum method complexity1.00
▷ Maximum method complexity59.00
Code structure
Namespaces2
Interfaces0
Traits4
Classes37
▷ Abstract classes38.11%
▷ Concrete classes3491.89%
▷ Final classes00.00%
Methods630
▷ Static methods538.41%
▷ Public methods59093.65%
▷ Protected methods233.65%
▷ Private methods172.70%
Functions233
▷ Named functions22797.42%
▷ Anonymous functions62.58%
Constants11
▷ Global constants11100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/twitter.png0.57KB0.51KB▼ 9.93%
assets/screenshot-6.png94.43KB36.51KB▼ 61.34%
css/images/ui-bg_flat_0_aaaaaa_40x100.png0.21KB0.08KB▼ 58.96%
assets/screenshot-3.png17.31KB9.62KB▼ 44.45%
css/images/ui-icons_d8e7f3_256x240.png4.57KB4.18KB▼ 8.43%