66% totalsurvey

Code Review | Quiz | Survey | Exam | Questionnaire | Feedback - Best Survey Plugin for WordPress

WordPress plugin Quiz | Survey | Exam | Questionnaire | Feedback - Best Survey Plugin for WordPress scored66%from 54 tests.

About plugin

  • Plugin page: totalsurvey
  • Plugin version: 1.8.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.3.1
  • WordPress version: 6.3.1
  • First release: Jul 8, 2020
  • Latest release: Oct 4, 2023
  • Number of updates: 107
  • Update frequency: every 11.1 days
  • Top authors: totalsuite (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

500+ active /7,813 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
Installer ran successfully

Server metrics [RAM: ▲2.80MB] [CPU: ▲16.47ms] Passed 4 tests

An overview of server-side resources used by Quiz | Survey | Exam | Questionnaire | Feedback - Best Survey Plugin for WordPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /6.27 ▲2.8064.83 ▲27.44
Dashboard /wp-admin6.10 ▲2.7671.92 ▲16.37
Posts /wp-admin/edit.php6.22 ▲2.8666.07 ▲15.49
Add New Post /wp-admin/post-new.php8.76 ▲2.87106.03 ▲6.56
Media Library /wp-admin/upload.php6.02 ▲2.7963.30 ▲30.00
TotalSurvey /wp-admin/admin.php?page=totalsurvey7.5170.31

Server storage [IO: ▲5.20MB] [DB: ▲0.09MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 894 new files
Database: 3 new tables, 12 new options
New tables
wp_totalsurvey_entries
wp_totalsurvey_surveys
wp_totalsurvey_presets
New WordPress options
totalsurvey_version
can_compress_scripts
db_upgraded
totalsurvey_options
widget_theysaidso_widget
widget_recent-posts
publish_token:
widget_recent-comments
totalsuite_license
widget_totalsurvey-survey
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Quiz | Survey | Exam | Questionnaire | Feedback - Best Survey Plugin for WordPress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲9414.37 ▲0.011.68 ▲0.0240.80 ▼0.77
Dashboard /wp-admin2,246 ▲695.62 ▼0.0493.33 ▲4.4441.98 ▼0.70
Posts /wp-admin/edit.php2,151 ▲512.03 ▲0.0232.63 ▼4.5233.21 ▲3.04
Add New Post /wp-admin/post-new.php6,234 ▲4,70818.85 ▼4.33876.50 ▲237.4951.32 ▲0.44
Media Library /wp-admin/upload.php1,454 ▲514.20 ▲0.0797.74 ▼0.7842.59 ▼1.51
License /wp-admin/admin.php?page=totalsurvey#/license1,4376.89205.78131.49
Support /wp-admin/admin.php?page=totalsurvey#/support1,3426.58188.6896.44
Popup /wp-admin/admin.php?page=totalsurvey#/popup1,56110.16139.2952.57
TotalSurvey /wp-admin/admin.php?page=totalsurvey1,77211.15165.3874.61
Extensions /wp-admin/admin.php?page=totalsurvey#/modules/extension1,57110.22142.9146.39
Surveys /wp-admin/admin.php?page=totalsurvey#/surveys1,3656.99187.6679.35
Options /wp-admin/admin.php?page=totalsurvey#/options1,56310.74162.9945.63
Dashboard /wp-admin/admin.php?page=totalsurvey#/dashboard1,77411.14157.9575.00
Templates /wp-admin/admin.php?page=totalsurvey#/modules/template1,58310.27163.9754.22

Uninstaller [IO: ▲0.00MB] [DB: ▲0.09MB] 50% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie tables detected upon uninstall: 3 tables
    • wp_totalsurvey_surveys
    • wp_totalsurvey_entries
    • wp_totalsurvey_presets
  • The uninstall procedure has failed, leaving 12 options in the database
    • widget_recent-posts
    • totalsurvey_tracking
    • publish_token:
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_totalsurvey-survey
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • totalsuite_license
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/totalsurvey/views/dashboard.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/totalsurvey/views/insights.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 76% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots need descriptions #0, #1, #2, #3, #4, #5, #6, #7, #8, #9, #10, #11, #12, #13, #14, #15, #16, #17, #18, #19, #20, #21, #22, #23, #24, #25, #26, #27, #28, #29, #30, #31, #32, #33 in totalsurvey/assets to your readme.txt
  • Tags: There are too many tags (45 tag instead of maximum 10)
The official readme.txt might help

totalsurvey/plugin.php 62% from 13 tests

The principal PHP file in "Quiz | Survey | Exam | Questionnaire | Feedback - Best Survey Plugin for WordPress" v. 1.8.6 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 196 characters long)
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.8.0" instead of "4.8")
  • Domain Path: The domain path must begin with a forward slash character ("/languages")
  • Main file name: The principal plugin file should be the same as the plugin slug ("totalsurvey.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin47,549 lines of code in 687 files:
LanguageFilesBlank linesComment linesLines of code
PHP6367,98717,86131,987
JavaScript111,1544,61411,535
JSON9002,425
CSS4416863
PO File2237346586
SVG160090
SQL90063

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity4.07
▷ Minimum class complexity1.00
▷ Maximum class complexity63.00
Average method complexity1.77
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces129
Interfaces59
Traits35
Classes509
▷ Abstract classes387.47%
▷ Concrete classes47192.53%
▷ Final classes51.06%
Methods2,592
▷ Static methods26710.30%
▷ Public methods2,23386.15%
▷ Protected methods33913.08%
▷ Private methods200.77%
Functions122
▷ Named functions129.84%
▷ Anonymous functions11090.16%
Constants182
▷ Global constants42.20%
▷ Class constants17897.80%
▷ Public constants17799.44%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.76MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/presets/event-feedback.png167.63KB68.31KB▼ 59.25%
assets/images/presets/product-feedback.png119.41KB45.66KB▼ 61.76%
assets/images/presets/blank.png64.42KB25.94KB▼ 59.74%
assets/images/totalsuite-products.png54.63KB39.21KB▼ 28.23%
modules/templates/DefaultTemplate/assets/module/cover.png10.97KB11.98KB0.00%