94% useresponse-feedback-widget

Code Review | UseResponse Feedback Widget

WordPress plugin UseResponse Feedback Widget scored 94% from 53 tests.

About plugin

  • Plugin page: useresponse-feedb...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.1
  • WordPress version: 5.8.1
  • First release: May 14, 2019
  • Latest release: May 15, 2019
  • Number of updates: 4
  • Update frequency: every 3.3 days
  • Top authors: useresponse (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 281 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼256.46ms] Passed 4 tests

A check of server-side resources used by UseResponse Feedback Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1235.33 ▲14.06
Dashboard /wp-admin3.07 ▲0.0146.73 ▲7.68
Posts /wp-admin/edit.php3.12 ▲0.0142.78 ▼2.67
Add New Post /wp-admin/post-new.php5.43 ▼0.0089.02 ▼1,025.33
Media Library /wp-admin/upload.php3.01 ▲0.0034.09 ▼5.53

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

UseResponse Feedback Widget: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,697 ▲9215.94 ▼0.028.65 ▲1.2650.53 ▲2.20
Dashboard /wp-admin2,971 ▲1185.89 ▲0.03137.80 ▲4.92134.30 ▲34.95
Posts /wp-admin/edit.php2,740 ▲372.68 ▼0.0059.71 ▼6.0896.10 ▲9.13
Add New Post /wp-admin/post-new.php1,666 ▼18718.69 ▼0.50355.48 ▼20.92113.43 ▲6.18
Media Library /wp-admin/upload.php1,735 ▼345.01 ▼0.01126.29 ▼24.91124.82 ▲7.68

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/useresponse-feedback-widget/useresponse-feedback-widget.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: customer feedback, feedback widget for website, user feedback, website feedback, useresponse...

useresponse-feedback-widget/useresponse-feedback-widget.php Passed 13 tests

The main PHP script in "UseResponse Feedback Widget" version 1.0 is automatically included on every request by WordPress
23 characters long description:
Add chat widget to site

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin70 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP110770

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
ur_ico.png2.62KB1.04KB▼ 60.33%
sources.png9.59KB9.97KB0.00%
ur_logo.png2.19KB2.25KB0.00%