89% wp-customer-feedback

Code Review | WP Customer Feedback

WordPress plugin WP Customer Feedback scored 89% from 54 tests.

About plugin

  • Plugin page: wp-customer-feedback
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.2
  • WordPress version: 5.8.1
  • First release: Jan 22, 2015
  • Latest release: Apr 22, 2015
  • Number of updates: 23
  • Update frequency: every 4.2 days
  • Top authors: endual (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active / 4,728 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.03MB] [CPU: ▼136.77ms] Passed 4 tests

Analyzing server-side resources used by WP Customer Feedback
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1533.34 ▲13.23
Dashboard /wp-admin3.09 ▲0.0444.46 ▼0.98
Posts /wp-admin/edit.php3.14 ▲0.0344.06 ▼2.92
Add New Post /wp-admin/post-new.php5.45 ▲0.0189.25 ▼556.42
Media Library /wp-admin/upload.php3.03 ▲0.0346.24 ▲15.39
WP Customer Feedback /wp-admin/options-general.php?page=wp-customer-feedback-options3.0128.99

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Customer Feedback
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,686 ▲9015.73 ▲0.208.91 ▲0.0349.30 ▲1.53
Dashboard /wp-admin2,972 ▲415.95 ▼0.13155.19 ▲6.14112.28 ▼1.59
Posts /wp-admin/edit.php2,744 ▲52.72 ▲0.0066.46 ▼5.3685.44 ▼8.47
Add New Post /wp-admin/post-new.php1,584 ▼9918.10 ▼0.26428.92 ▲20.60129.46 ▲16.98
Media Library /wp-admin/upload.php1,812 ▲55.02 ▲0.00153.27 ▲3.97115.79 ▲6.62
WP Customer Feedback /wp-admin/options-general.php?page=wp-customer-feedback-options1,5173.54108.8576.62

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
Uninstall script ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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
Please fix the following
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-customer-feedback/admin-page.php
    • > /wp-content/plugins/wp-customer-feedback/wp-customer-feedback.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=wp-customer-feedback-options
    • > Network (severe)
    http://embed-0.wistia.com/deliveries/938c57981edacf359a158b49b43f5bb1f664fda3.jpg?image_play_button=true&image_play_button_color=7b796ae0&image_crop_resized=150x99 - Failed to load resource: the server responded with a status of 500 (Domain Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: popup, review, user-feedback, marketing, feedback...

wp-customer-feedback/wp-customer-feedback.php Passed 13 tests

The entry point to "WP Customer Feedback" version 1.3.0 is a PHP file that has certain tags in its header comment area
45 characters long description:
Simple way to get user feedback for your site

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin147 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP23526144
JavaScript2002
CSS1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity4.50
▷ Minimum class complexity3.00
▷ Maximum class complexity6.00
Average method complexity1.88
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 compressed PNG files occupy 0.02MB
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-3.png3.05KB3.27KB0.00%
assets/screenshot-2.png3.51KB3.83KB0.00%
assets/banner-772x250.png13.28KB14.47KB0.00%
assets/screenshot-1.png2.80KB3.02KB0.00%