10% feedbackscout

Code Review | FeedbackScout: The easiest way to collect, prioritise, manage and track customer feedback.

WordPress plugin FeedbackScout: The easiest way to collect, prioritise, manage and track customer feedback. scored 10% from 54 tests.

About plugin

  • Plugin page: feedbackscout
  • Plugin version: 1.9.3
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.5.1
  • WordPress version: 5.9.2
  • First release: Aug 21, 2020
  • Latest release: Sep 25, 2020
  • Number of updates: 17
  • Update frequency: every 2.1 days
  • Top authors: fsruslan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 300 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/feedbackscout/includes/oauth/FBSOAuthClient.php+20
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.97MB] [CPU: ▼346.81ms] Passed 4 tests

Server-side resources used by FeedbackScout: The easiest way to collect, prioritise, manage and track customer feedback.
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.39 ▼1.127.84 ▼44.93
Dashboard /wp-admin2.42 ▼0.996.33 ▼25.89
Posts /wp-admin/edit.php2.42 ▼1.225.81 ▼46.65
Add New Post /wp-admin/post-new.php2.42 ▼4.555.68 ▼1,269.78
Media Library /wp-admin/upload.php2.42 ▼0.875.60 ▼20.52
Freemius Debug [v.2.4.0.1] /wp-admin/admin.php?page=freemius2.425.24
Settings /wp-admin/admin.php?page=feedbackscout-settings2.425.63
Boards /wp-admin/admin.php?page=sb-boards2.426.46
Feedback /wp-admin/admin.php?page=fbs-posts2.425.61
Board /wp-admin/admin.php?page=sb-board2.426.75
Products /wp-admin/admin.php?page=sb-products2.425.71
Post /wp-admin/admin.php?page=sb-post2.426.70
Add New Post /wp-admin/admin.php?page=fbs_add_post2.426.65

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 451 new files
Database: 8 new tables, 14 new options
New tables
wp_fbs_products
wp_fbs_images
wp_fbs_likes
wp_fbs_posts
wp_fbs_post_2_images
wp_fbs_status
wp_fbs_boards
wp_fbs_comments
New WordPress options
fs_accounts
wp_fbs_post_2_images_db_version
myplugin_option_name
fs_debug_mode
wp_fbs_boards_db_version
wp_fbs_comments_db_version
wp_fbs_likes_db_version
wp_fbs_status_db_version
wp_fbs_products_db_version
fs_gdpr
...

Browser metrics Passed 4 tests

FeedbackScout: The easiest way to collect, prioritise, manage and track customer feedback.: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,920 ▲16616.01 ▲0.075.91 ▲0.142.64 ▲0.10
Dashboard /wp-admin3,026 ▲1686.11 ▼0.06118.07 ▼13.03169.31 ▲13.80
Posts /wp-admin/edit.php2,826 ▲1693.27 ▲0.0465.24 ▲0.91158.87 ▲13.15
Add New Post /wp-admin/post-new.php1,823 ▲5022.76 ▲0.90431.51 ▼17.91160.10 ▲4.63
Media Library /wp-admin/upload.php1,836 ▲1385.54 ▲0.06148.95 ▲4.43202.15 ▲14.15
Freemius Debug [v.2.4.0.1] /wp-admin/admin.php?page=freemius1,5372.7654.91113.11
Settings /wp-admin/admin.php?page=feedbackscout-settings1,4242.4457.32160.32
Boards /wp-admin/admin.php?page=sb-boards1,5243.1861.60131.19
Feedback /wp-admin/admin.php?page=fbs-posts1,4502.3857.74123.89
Board /wp-admin/admin.php?page=sb-board9552.5442.2393.59
Products /wp-admin/admin.php?page=sb-products1,4823.1859.80142.74
Post /wp-admin/admin.php?page=sb-post9682.5541.6594.46
Add New Post /wp-admin/admin.php?page=fbs_add_post1,2773.1365.04137.25

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/feedbackscout/includes/oauth/FBSOAuthClient.php+20
    Trying to access array offset on value of type bool
  • Zombie tables detected upon uninstall: 8 tables
    • wp_fbs_products
    • wp_fbs_likes
    • wp_fbs_status
    • wp_fbs_images
    • wp_fbs_comments
    • wp_fbs_boards
    • wp_fbs_posts
    • wp_fbs_post_2_images
  • Zombie WordPress options detected upon uninstall: 14 options
    • fs_active_plugins
    • fs_gdpr
    • wp_fbs_post_2_images_db_version
    • wp_fbs_posts_db_version
    • wp_fbs_comments_db_version
    • wp_fbs_status_db_version
    • wp_fbs_likes_db_version
    • fs_debug_mode
    • myplugin_option_name
    • sb_db_version
    • ...

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
  • 16 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=fbs_add_post
    • > Notice in wp-content/plugins/feedbackscout/includes/oauth/FBSOAuthClient.php+21
    Trying to access array offset on value of type bool
    • > GET request to /wp-admin/admin.php?page=fbs-posts
    • > Notice in wp-content/plugins/feedbackscout/admin/class-fbs-posts-list-table.php+203
    Undefined index: _wpnonce
    • > GET request to /wp-admin/admin.php?page=fbs-posts
    • > Notice in wp-content/plugins/feedbackscout/admin/class-fbs-posts-list-table.php+313
    Undefined index: s
    • > GET request to /wp-admin/admin.php?page=fbs-posts
    • > User notice in wp-includes/functions.php+5768
    wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
    • > GET request to /wp-admin/admin.php?page=fbs-posts
    • > User notice in wp-includes/functions.php+5768
    wpdb::prepare was called incorrectly. The query does not contain the correct number of placeholders (0) for the number of arguments passed (1). Please see Debugging in WordPress for more information. (This message was added in version 4.8.3.)
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=fbs_add_post
    • > Notice in wp-content/plugins/feedbackscout/admin/partials/fbs-partial-create-post.php+45
    Undefined index: board
    • > GET request to /wp-admin/admin.php?page=sb-post
    • > Notice in wp-content/plugins/feedbackscout/admin/partials/fbs-partial-post-page.php+4
    Undefined index: id
    • > GET request to /wp-admin/admin.php?page=sb-post
    • > Notice in wp-content/plugins/feedbackscout/includes/class-fbs-post.php+49
    Trying to get property 'board_id' of non-object

SRP 0% 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
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/feedbackscout/templates/fbs-register.php
    • > /wp-content/plugins/feedbackscout/templates/virtual-page-footer.php
    • > /wp-content/plugins/feedbackscout/freemius/templates/ajax-loader.php
  • 94× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'FBS_Vendor\\GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/feedbackscout/vendor_prefixed/guzzlehttp/guzzle/src/Exception/ConnectException.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'FBS_Vendor\\GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/feedbackscout/vendor_prefixed/guzzlehttp/promises/src/CancellationException.php:8
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/feedbackscout/freemius/templates/account/partials/addon.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/feedbackscout/templates/fbs-filter-template.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/feedbackscout/templates/fbs-upload-form.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Isolated\\Symfony\\Component\\Finder\\Finder' not found in wp-content/plugins/feedbackscout/config/php-scoper/oauth2-google.inc.php:17
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/feedbackscout/freemius/templates/account/partials/addon.php on line 8
    • > PHP Fatal error
      Uncaught Error: Interface 'FBS_Vendor\\GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/feedbackscout/vendor_prefixed/guzzlehttp/promises/src/Promise.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'FBS_Vendor\\Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/feedbackscout/vendor_prefixed/guzzlehttp/psr7/src/LimitStream.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/feedbackscout/templates/fbs-header.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

feedbackscout/feedback-scout.php 85% from 13 tests

The main PHP script in "FeedbackScout: The easiest way to collect, prioritise, manage and track customer feedback." version 1.9.3 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("feedbackscout.php" instead of "feedback-scout.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin67,333 lines of code in 375 files:
LanguageFilesBlank linesComment linesLines of code
PHP3048,19624,77543,079
CSS211,6748814,699
Markdown181,45604,427
JavaScript156667644,069
JSON700867
Handlebars850161
SVG10122
make1409

PHP code 50% from 2 tests

Analyzing cyclomatic complexity and code structure
Please tend to the following items
  • Class cyclomatic complexity should be reduced to less than 1000 (currently 2,885)
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity28.05
▷ Minimum class complexity1.00
▷ Maximum class complexity2,885.00
Average method complexity3.60
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces19
Interfaces23
Traits10
Classes167
▷ Abstract classes52.99%
▷ Concrete classes16297.01%
▷ Final classes106.17%
Methods2,210
▷ Static methods26411.95%
▷ Public methods1,67575.79%
▷ Protected methods803.62%
▷ Private methods45520.59%
Functions274
▷ Named functions18366.79%
▷ Anonymous functions9133.21%
Constants187
▷ Global constants9751.87%
▷ Class constants9048.13%
▷ Public constants90100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
17 PNG files occupy 1.38MB with 0.46MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/fbs_admin.png0.75KB0.79KB0.00%
assets/screenshot-6.png89.24KB92.13KB0.00%
assets/banner-1544x500.png45.53KB14.04KB▼ 69.16%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
assets/icon-128x128.png5.02KB2.24KB▼ 55.37%