62% usernoise

Code Review | Usernoise modal feedback / contact form

WordPress plugin Usernoise modal feedback / contact form scored 62% from 54 tests.

About plugin

  • Plugin page: usernoise
  • Plugin version: 3.7.20
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.1
  • WordPress version: 5.8.1
  • First release: Jul 3, 2011
  • Latest release: Jan 3, 2015
  • Number of updates: 369
  • Update frequency: every 3.5 days
  • Top authors: karevn (95.39%)cherrydev (4.88%)

Code review

54 tests

User reviews

27 reviews

Install metrics

3,000+ active / 192,539 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.66MB] [CPU: ▼141.03ms] Passed 4 tests

This is a short check of server-side resources used by Usernoise modal feedback / contact form
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.42 ▲0.5939.46 ▲4.89
Dashboard /wp-admin3.76 ▲0.7054.18 ▼0.84
Posts /wp-admin/edit.php3.80 ▲0.6850.39 ▼13.22
Add New Post /wp-admin/post-new.php6.10 ▲0.6795.98 ▼552.85
Media Library /wp-admin/upload.php3.69 ▲0.6935.53 ▲2.81
Settings /wp-admin/options-general.php?page=usernoise3.6534.30
Usernoise /wp-admin/edit.php?order=desc&post_type=un_feedback3.7443.43

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 139 new files
Database: 1 new table, 2 new options
New tables
wp_un_termmeta
New WordPress options
un_version
un_db_revision

Browser metrics Passed 4 tests

Usernoise modal feedback / contact form: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,801 ▲18816.18 ▲0.268.97 ▼3.0450.04 ▼0.49
Dashboard /wp-admin3,073 ▲1425.93 ▼0.02152.66 ▼49.30100.14 ▼29.05
Posts /wp-admin/edit.php2,801 ▲622.73 ▲0.0164.83 ▼14.2392.20 ▼11.88
Add New Post /wp-admin/post-new.php1,535 ▼14818.59 ▼0.12371.56 ▼5.45107.01 ▼2.47
Media Library /wp-admin/upload.php1,863 ▲535.03 ▲0.02166.34 ▲11.66117.07 ▼2.05
Settings /wp-admin/options-general.php?page=usernoise2,4252.4072.7661.54
Usernoise /wp-admin/edit.php?order=desc&post_type=un_feedback1,5062.6762.5163.90

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_un_termmeta
  • This plugin does not fully uninstall, leaving 1 option in the database
    • un_db_revision

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=usernoise
    • > User deprecated in wp-includes/functions.php+5221
    screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=usernoise
    • > User deprecated in wp-includes/functions.php+5221
    get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 29× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/usernoise/inc/termmeta-api.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to a member function textarea() on null in wp-content/plugins/usernoise/html/reply-meta-box.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/usernoise/inc/model.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/usernoise/inc/shortcodes.php:4
    • > PHP Warning
      Creating default object from empty value in wp-content/plugins/usernoise/inc/termmeta-api.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/usernoise/admin/settings.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/usernoise/inc/globals.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/usernoise/admin/dashboard.php:52
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/usernoise/inc/form.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/usernoise/usernoise.php:12

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/options-general.php?page=usernoise
    • > Network (severe)
    http://cdn.karevn.com/usernoise/all-in-one-email.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Usernoise form.), #2 (Admin bar with "New usernoise records" notification.), #3 (Admin interface)
  • Tags: There are too many tags (17 tag instead of maximum 10)
Please take inspiration from this readme.txt

usernoise/usernoise.php Passed 13 tests

The main PHP file in "Usernoise modal feedback / contact form" ver. 3.7.20 adds more information about the plugin and also serves as the entry point for this plugin
67 characters long description:
Usernoise is a modal contact / feedback form with smooth interface.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected13,031 lines of code in 83 files:
LanguageFilesBlank linesComment linesLines of code
PO File263,1476,9627,050
PHP28234312,011
CSS1176911,788
JavaScript101501901,511
CoffeeScript6500320
SVG100284
Markdown123067

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity15.33
▷ Minimum class complexity1.00
▷ Maximum class complexity59.00
Average method complexity2.84
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes18
▷ Abstract classes00.00%
▷ Concrete classes18100.00%
▷ Final classes00.00%
Methods140
▷ Static methods00.00%
▷ Public methods140100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions45
▷ Named functions45100.00%
▷ Anonymous functions00.00%
Constants34
▷ Global constants34100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
14 PNG files occupy 0.42MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/all-in-one-email.png3.41KB2.58KB▼ 24.42%
images/banner-item-discussion.png110.49KB51.87KB▼ 53.05%
images/banner-debug-info-sql-queries.png40.61KB16.90KB▼ 58.38%
images/banner-debug-info-overview.png64.20KB25.88KB▼ 59.69%
images/banner-debug-info-query_vars.png40.02KB15.01KB▼ 62.48%