84% usability-feedback

Code Review | Real-Time Feedback - Collect feedback exactly when issues happen

WordPress plugin Real-Time Feedback - Collect feedback exactly when issues happen scored84%from 54 tests.

About plugin

  • Plugin page: usability-feedback
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.9.7
  • WordPress version: 6.3.1
  • First release: Jul 20, 2018
  • Latest release: Jul 27, 2018
  • Number of updates: 6
  • Update frequency: every 1.3 days
  • Top authors: gzmihai (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /577 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

A check of server-side resources used by Real-Time Feedback - Collect feedback exactly when issues happen
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.81 ▼9.71
Dashboard /wp-admin3.32 ▲0.0143.66 ▼5.69
Posts /wp-admin/edit.php3.37 ▲0.0144.14 ▼2.14
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.85 ▼7.36
Media Library /wp-admin/upload.php3.24 ▲0.0133.93 ▼1.27

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 19 new files
Database: 2 new tables, 7 new options
New tables
wp_realTimeFeedback_insights
wp_realTimeFeedback_insights_data
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
realTimeFeedback_version

Browser metrics Passed 4 tests

A check of browser resources used by Real-Time Feedback - Collect feedback exactly when issues happen
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,873 ▲13813.35 ▼1.2110.52 ▲8.4044.03 ▲1.80
Dashboard /wp-admin2,221 ▲335.85 ▲0.9498.45 ▼11.3568.83 ▲25.53
Posts /wp-admin/edit.php2,104 ▲152.02 ▲0.0336.00 ▲2.5833.87 ▼1.42
Add New Post /wp-admin/post-new.php1,536 ▲323.22 ▼0.11702.47 ▲48.5854.86 ▲4.14
Media Library /wp-admin/upload.php1,403 ▲124.24 ▲0.1095.70 ▲1.3574.92 ▲32.92

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

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 everything seems fine, this is not 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× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/usability-feedback/admin/RealTimeFeedbackWPAdmin.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
7 plugin tags: convert, real-time, retention, engage, confusion...

usability-feedback/realTimeFeedback.php 85% from 13 tests

"Real-Time Feedback - Collect feedback exactly when issues happen" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("usability-feedback.php" instead of "realTimeFeedback.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin4,544 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript46732933,333
CSS212229695
PHP77022513
SVG1003

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity13.00
▷ Minimum class complexity6.00
▷ Maximum class complexity20.00
Average method complexity4.33
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods112.50%
▷ Public methods787.50%
▷ Protected methods00.00%
▷ Private methods112.50%
Functions5
▷ Named functions00.00%
▷ Anonymous functions5100.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/icon.png1.57KB0.75KB▼ 52.08%
admin/img/preview-bg.png0.08KB0.09KB0.00%