83% feedback-form-users

Code Review | Feedback Form Users

WordPress plugin Feedback Form Users scored83%from 54 tests.

About plugin

  • Plugin page: feedback-form-users
  • Plugin version: 1.02
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.4.1
  • WordPress version: 6.3.1
  • First release: Oct 28, 2022
  • Latest release: Nov 10, 2023
  • Number of updates: 6
  • Update frequency: every 63.0 days
  • Top authors: shahinurislam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /303 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
Install script ran successfully

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

Analyzing server-side resources used by Feedback Form Users
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0535.29 ▼4.62
Dashboard /wp-admin3.33 ▲0.0342.53 ▼6.02
Posts /wp-admin/edit.php3.38 ▲0.0347.55 ▼4.16
Add New Post /wp-admin/post-new.php5.91 ▲0.0391.52 ▼5.84
Media Library /wp-admin/upload.php3.25 ▲0.0234.36 ▲5.06
Add New /wp-admin/post-new.php?post_type=feedbackform3.4146.79
Settings /wp-admin/edit.php?post_type=feedbackform&page=ffu_settings3.2237.48
All Feedbacks /wp-admin/edit.php?post_type=feedbackform3.3031.60

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Feedback Form Users
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,979 ▲21714.14 ▼0.221.95 ▲0.3154.22 ▲10.05
Dashboard /wp-admin2,226 ▲465.63 ▲0.0283.59 ▼15.4038.27 ▼5.56
Posts /wp-admin/edit.php2,131 ▲311.95 ▼0.0439.63 ▲0.4838.20 ▲3.28
Add New Post /wp-admin/post-new.php1,552 ▲2623.35 ▼0.12682.76 ▲22.6654.76 ▲7.43
Media Library /wp-admin/upload.php1,428 ▲284.17 ▼0.0398.34 ▲1.7245.16 ▲5.40
Add New /wp-admin/post-new.php?post_type=feedbackform2,5147.56181.3766.21
Settings /wp-admin/edit.php?post_type=feedbackform&page=ffu_settings8951.9922.5228.80
All Feedbacks /wp-admin/edit.php?post_type=feedbackform1,1431.9030.5828.23

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

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
Almost there! Just fix the following items
  • 3× 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/feedback-form-users/include/posttype.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/feedback-form-users/include/enqueue.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/feedback-form-users/index.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 90% 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
5 plugin tags: survey, contact, feedback, accessibility, report form

feedback-form-users/index.php 77% from 13 tests

The entry point to "Feedback Form Users" version 1.02 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/lang")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("feedback-form-users.php" instead of "index.php")

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
Everything looks great! No dangerous files found in this plugin418 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP3124231
CSS31611186
JavaScript1061

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin