74% feedback-suite

Code Review | Get feedback from visitors - WP Feedback Suite Plugin

WordPress plugin Get feedback from visitors - WP Feedback Suite Plugin scored 74% from 54 tests.

About plugin

  • Plugin page: feedback-suite
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.8
  • WordPress version: 5.9.2
  • First release: Jun 5, 2017
  • Latest release: Jul 8, 2017
  • Number of updates: 10
  • Update frequency: every 5.1 days
  • Top authors: ggriesser (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 702 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲1.94MB] [CPU: ▼288.00ms] Passed 4 tests

This is a short check of server-side resources used by Get feedback from visitors - WP Feedback Suite Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /5.51 ▲2.0088.06 ▲41.24
Dashboard /wp-admin5.32 ▲1.9162.04 ▲28.28
Posts /wp-admin/edit.php5.57 ▲1.9364.86 ▲25.53
Add New Post /wp-admin/post-new.php8.90 ▲1.93126.75 ▼1,228.03
Media Library /wp-admin/upload.php5.27 ▲1.9745.85 ▲22.24

Server storage [IO: ▲6.33MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 181 new files
Database: 1 new table, 4 new options
New tables
wp_feedback_suite_votes
New WordPress options
fs_active_plugins
fs_accounts
fs_api_cache
fs_debug_mode

Browser metrics Passed 4 tests

An overview of browser requirements for Get feedback from visitors - WP Feedback Suite Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,808 ▲6415.66 ▼0.005.63 ▼0.442.25 ▲0.05
Dashboard /wp-admin2,936 ▲786.20 ▲0.02116.71 ▼17.74189.70 ▲27.80
Posts /wp-admin/edit.php2,784 ▲963.11 ▼0.1265.45 ▲2.62187.89 ▲43.44
Add New Post /wp-admin/post-new.php1,726 ▲1521.16 ▲0.12496.98 ▲68.45166.89 ▲7.86
Media Library /wp-admin/upload.php1,740 ▲425.53 ▲0.02123.85 ▼12.26227.83 ▲36.48

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie tables were found after uninstall: 1 table
    • wp_feedback_suite_votes
  • Zombie WordPress options were found after uninstall: 4 options
    • fs_active_plugins
    • fs_accounts
    • fs_api_cache
    • fs_debug_mode

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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 take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/feedback-suite/freemius/templates/ajax-loader.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: dashboard, analytics, feedback, rating

feedback-suite/feedback-suite.php Passed 13 tests

"Get feedback from visitors - WP Feedback Suite Plugin" version 1.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
90 characters long description:
Set up a rating system for your articles and gather feedback - directly from your readers.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin103,600 lines of code in 147 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript105,27042,15979,556
PHP903,9969,25216,865
PO File52,0952,1184,740
Sass20329762,017
Markdown2800239
CSS1916523143
JSON10040

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
The following items need your attention
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 1,111)
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity40.09
▷ Minimum class complexity1.00
▷ Maximum class complexity1,111.00
Average method complexity3.43
▷ Minimum method complexity1.00
▷ Maximum method complexity76.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes45
▷ Abstract classes24.44%
▷ Concrete classes4395.56%
▷ Final classes00.00%
Methods761
▷ Static methods15820.76%
▷ Public methods56674.38%
▷ Protected methods131.71%
▷ Private methods18223.92%
Functions86
▷ Named functions7789.53%
▷ Anonymous functions910.47%
Constants101
▷ Global constants8382.18%
▷ Class constants1817.82%
▷ Public constants18100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.21MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/icon-white.png12.25KB5.93KB▼ 51.61%
img/icon-color-16.png1.12KB0.70KB▼ 37.87%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
img/icon-color.png11.07KB9.16KB▼ 17.25%
img/icon-white-16.png0.58KB0.57KB▼ 1.52%