83% userpilot

Code Review | Userpilot

WordPress plugin Userpilot scored 83% from 54 tests.

About plugin

  • Plugin page: userpilot
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-5.1.1
  • WordPress version: 5.9.2
  • First release: Sep 25, 2018
  • Latest release: Mar 22, 2019
  • Number of updates: 14
  • Update frequency: every 13.0 days
  • Top authors: userpilot (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 460 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.00MB] [CPU: ▼279.84ms] Passed 4 tests

This is a short check of server-side resources used by Userpilot
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0572.13 ▲8.34
Dashboard /wp-admin3.43 ▲0.0235.62 ▲2.88
Posts /wp-admin/edit.php3.67 ▲0.0236.21 ▼2.66
Add New Post /wp-admin/post-new.php6.90 ▼0.07146.18 ▼1,125.81
Media Library /wp-admin/upload.php3.32 ▲0.0230.92 ▲6.24

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Userpilot
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,815 ▲7315.76 ▲0.456.41 ▲0.072.33 ▲0.31
Dashboard /wp-admin2,910 ▲576.15 ▲0.02121.01 ▼50.18195.83 ▲10.89
Posts /wp-admin/edit.php2,707 ▲163.12 ▼0.10102.16 ▲39.63162.77 ▲5.36
Add New Post /wp-admin/post-new.php1,782 ▲12121.11 ▲4.44452.91 ▲15.98193.47 ▲43.44
Media Library /wp-admin/upload.php1,711 ▲165.54 ▲0.01130.77 ▼61.21204.53 ▲16.42
Userpilot /wp-admin/nav.php260.940.0326.71

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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 fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/userpilot/userpilot.php
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/userpilot/includes/widget.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/userpilot/includes/nav.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/userpilot/includes/core.php:8

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
    • > GET request to /wp-admin/nav.php
    • > Network (severe)
    wp-admin/nav.php - Failed to load resource: the server responded with a status of 404 (Not Found)


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: userpilot, experience, onboarding experience, onboarding, tooltips...

userpilot/userpilot.php Passed 13 tests

The main PHP file in "Userpilot" ver. 1.1.3 adds more information about the plugin and also serves as the entry point for this plugin
28 characters long description:
Product Experience Software.

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 detected145 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.48
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions6100.00%
▷ Anonymous functions00.00%
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/userpilot-icon-white.png0.35KB0.19KB▼ 43.79%