62% userfeedback-lite

Code Review | User Feedback - Create Interactive Feedback Form, User Surveys, and Polls in Seconds

WordPress plugin User Feedback - Create Interactive Feedback Form, User Surveys, and Polls in Seconds scored62%from 54 tests.

About plugin

  • Plugin page: userfeedback-lite
  • Plugin version: 1.0.12
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Jan 31, 2023
  • Latest release: Nov 30, 2023
  • Number of updates: 17
  • Update frequency: every 18.2 days
  • Top authors: micheleam (52.94%)manejaam (52.94%)

Code review

54 tests

User reviews

86 reviews

Install metrics

100,000+ active /714,220 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.25MB] [CPU: ▲6.07ms] Passed 4 tests

An overview of server-side resources used by User Feedback - Create Interactive Feedback Form, User Surveys, and Polls in Seconds
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2144.74 ▲4.44
Dashboard /wp-admin3.59 ▲0.2464.81 ▲1.94
Posts /wp-admin/edit.php3.62 ▲0.2764.89 ▲18.60
Add New Post /wp-admin/post-new.php6.24 ▲0.3699.96 ▼0.72
Media Library /wp-admin/upload.php3.50 ▲0.2765.01 ▲32.06
SMTP /wp-admin/admin.php?page=userfeedback_smtp3.4147.14
Surveys /wp-admin/admin.php?page=userfeedback_surveys3.2939.67
Results /wp-admin/admin.php?page=userfeedback_results3.4145.72
Settings /wp-admin/admin.php?page=userfeedback_settings3.5050.90

Server storage [IO: ▲3.93MB] [DB: ▲0.01MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 189 new files
Database: 2 new tables, 11 new options
New tables
wp_userfeedback_survey_responses
wp_userfeedback_surveys
New WordPress options
can_compress_scripts
userfeedback_current_version
db_upgraded
userfeedback_db_version
theysaidso_admin_options
userfeedback_settings
userfeedback_usage_tracking_config
userfeedback_parsed_addons
widget_recent-comments
widget_recent-posts
...

Browser metrics Passed 4 tests

A check of browser resources used by User Feedback - Create Interactive Feedback Form, User Surveys, and Polls in Seconds
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,983 ▲23618.01 ▲3.671.54 ▼0.3629.41 ▼17.15
Dashboard /wp-admin2,373 ▲1987.65 ▲1.94129.84 ▲12.3591.16 ▲48.39
Posts /wp-admin/edit.php2,201 ▲1012.19 ▲0.1838.87 ▼0.2038.73 ▼1.41
Add New Post /wp-admin/post-new.php1,625 ▲9923.17 ▲0.04774.72 ▲164.4387.70 ▲24.26
Media Library /wp-admin/upload.php1,494 ▲944.14 ▼0.07102.73 ▲6.7874.49 ▲33.13
SMTP /wp-admin/admin.php?page=userfeedback_smtp1,0133.3561.3946.12
Surveys /wp-admin/admin.php?page=userfeedback_surveys2862.3742.7229.86
Results /wp-admin/admin.php?page=userfeedback_results1,1355.92101.6056.32
Settings /wp-admin/admin.php?page=userfeedback_settings1,3996.20110.96102.10

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 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
  • This plugin does not fully uninstall, leaving 2 tables in the database
    • wp_userfeedback_survey_responses
    • wp_userfeedback_surveys
  • Zombie WordPress options were found after uninstall: 10 options
    • can_compress_scripts
    • db_upgraded
    • userfeedback_settings
    • widget_theysaidso_widget
    • userfeedback_db_version
    • theysaidso_admin_options
    • userfeedback_current_version
    • userfeedback_parsed_addons
    • widget_recent-posts
    • widget_recent-comments

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)
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=userfeedback_settings
    • > request to
    • > Notice in wp-config.php+20
    Undefined index: REQUEST_METHOD

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 56× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'UserFeedback_Notification_Event' not found in wp-content/plugins/userfeedback-lite/includes/admin/notifications/class-userfeedback-notification-upgrade-after-14-days.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'UserFeedback_Plugin_Integration' not found in wp-content/plugins/userfeedback-lite/includes/integrations/class-userfeedback-monsterinsights-integration.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'UserFeedback_DB' not found in wp-content/plugins/userfeedback-lite/includes/db/class-userfeedback-survey.php:13
    • > PHP Warning
      Use of undefined constant USERFEEDBACK_PLUGIN_DIR - assumed 'USERFEEDBACK_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/userfeedback-lite/includes/db/class-userfeedback-db.php on line 3
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-upgrader.php' (include_path='.:/usr/share/php') in wp-content/plugins/userfeedback-lite/includes/admin/licensing/plugin-upgrader-legacy.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/userfeedback-lite/languages/vue-translations.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/userfeedback-lite/includes/admin/licensing/autoupdate.php:67
    • > PHP Fatal error
      Uncaught Error: Class 'UserFeedback_Survey_Template' not found in wp-content/plugins/userfeedback-lite/includes/survey-templates/class-userfeedback-survey-template-content-engagement.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'UserFeedback_Notification_Event' not found in wp-content/plugins/userfeedback-lite/includes/admin/notifications/class-userfeedback-notification-monsterinsights.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'UserFeedback_Survey_Template' not found in wp-content/plugins/userfeedback-lite/includes/survey-templates/class-userfeedback-survey-template-phone-lead.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=userfeedback_settings
    • > Network (severe)
    wp-admin/admin-ajax.php - Failed to load resource: the server responded with a status of 400 (Bad Request)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed: You can take inspiration from this readme.txt

userfeedback-lite/userfeedback.php 85% from 13 tests

The main file in "User Feedback - Create Interactive Feedback Form, User Surveys, and Polls in Seconds" v. 1.0.12 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("userfeedback-lite.php" instead of "userfeedback.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
Everything looks great! No dangerous files found in this plugin12,426 lines of code in 135 files:
LanguageFilesBlank linesComment linesLines of code
PHP813,2786,53412,069
SVG3211186
JavaScript1283990
CSS1011081

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity20.34
▷ Minimum class complexity1.00
▷ Maximum class complexity139.00
Average method complexity3.28
▷ Minimum method complexity1.00
▷ Maximum method complexity78.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes65
▷ Abstract classes57.69%
▷ Concrete classes6092.31%
▷ Final classes35.00%
Methods546
▷ Static methods8315.20%
▷ Public methods50091.58%
▷ Protected methods152.75%
▷ Private methods315.68%
Functions127
▷ Named functions10683.46%
▷ Anonymous functions2116.54%
Constants41
▷ Global constants1024.39%
▷ Class constants3175.61%
▷ Public constants31100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
39 PNG files occupy 0.81MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/vue/img/onboarding/underline.png0.56KB0.41KB▼ 27.10%
assets/img/plugins/plugin-edd.png3.36KB2.30KB▼ 31.56%
assets/img/plugins/plugin-duplicator.png9.12KB4.89KB▼ 46.42%
assets/vue/img/uf-upgrade-modal-features-bg.png12.52KB7.86KB▼ 37.18%
assets/vue/img/userfeedback-smtp-thumb.png10.71KB11.19KB0.00%