83% userdeck

Code Review | UserDeck Customer Support

WordPress plugin UserDeck Customer Support scored83%from 54 tests.

About plugin

  • Plugin page: userdeck
  • Plugin version: 1.1.8
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.8.2
  • WordPress version: 6.3.1
  • First release: May 29, 2014
  • Latest release: Dec 17, 2021
  • Number of updates: 55
  • Update frequency: every 52.0 days
  • Top authors: userdeck (98.18%)99robots (3.64%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /3,469 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.10MB] [CPU: ▼4.50ms] Passed 4 tests

Server-side resources used by UserDeck Customer Support
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1143.12 ▲0.28
Dashboard /wp-admin3.42 ▲0.0850.90 ▼15.02
Posts /wp-admin/edit.php3.53 ▲0.1854.58 ▲8.07
Add New Post /wp-admin/post-new.php6.00 ▲0.1193.90 ▼6.20
Media Library /wp-admin/upload.php3.34 ▲0.1140.56 ▲2.96

Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
It is recommended to fix the following issues
  • You have illegally modified 1 file (4.00KB) outside of "wp-content/plugins/userdeck/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
userdeck

Browser metrics Passed 4 tests

A check of browser resources used by UserDeck Customer Support
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,852 ▲10613.27 ▼1.094.56 ▲2.4840.03 ▼3.96
Dashboard /wp-admin2,262 ▲584.88 ▼0.09100.67 ▼24.8841.35 ▼2.70
Posts /wp-admin/edit.php2,137 ▲372.03 ▼0.0140.60 ▲4.2737.77 ▲2.62
Add New Post /wp-admin/post-new.php1,566 ▲1223.03 ▲4.76671.89 ▲34.4260.04 ▼6.66
Media Library /wp-admin/upload.php1,438 ▲384.22 ▼0.14101.25 ▼5.0049.13 ▲3.27

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Please take a closer look at the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/userdeck/views/admin-options.php:423
    • > PHP Notice
      Undefined variable: show_options in wp-content/plugins/userdeck/views/admin-options.php on line 6

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 18 tag instead of maximum 10
Please take inspiration from this readme.txt

userdeck/userdeck.php 92% from 13 tests

This is the main PHP file of "UserDeck Customer Support" version 1.1.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 162 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin1,018 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP229269954
JavaScript118064

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity110.00
▷ Minimum class complexity110.00
▷ Maximum class complexity110.00
Average method complexity4.21
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods34
▷ Static methods411.76%
▷ Public methods3397.06%
▷ Protected methods12.94%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin