73% userpilot

Code Review | Userpilot

WordPress plugin Userpilot scored73%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: 6.3.1
  • 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 /672 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.45ms] Passed 4 tests

Server-side resources used by Userpilot
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0246.69 ▲4.90
Dashboard /wp-admin3.33 ▲0.0254.03 ▼2.23
Posts /wp-admin/edit.php3.38 ▲0.0254.01 ▼2.41
Add New Post /wp-admin/post-new.php5.91 ▲0.0288.92 ▼6.05
Media Library /wp-admin/upload.php3.25 ▲0.0242.54 ▲5.43

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Userpilot
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.23 ▼0.131.77 ▼0.4743.85 ▼1.08
Dashboard /wp-admin2,199 ▲255.65 ▼0.0789.09 ▼9.4466.79 ▲21.43
Posts /wp-admin/edit.php2,119 ▲161.97 ▼0.0534.79 ▼11.4434.44 ▼5.70
Add New Post /wp-admin/post-new.php1,555 ▲2022.99 ▲4.61757.14 ▲125.3260.93 ▼6.36
Media Library /wp-admin/upload.php1,410 ▲104.20 ▲0.0599.27 ▼6.1574.35 ▲27.15
Userpilot /wp-admin/nav.php260.420.1214.16

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/userpilot/userpilot.php
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/userpilot/includes/core.php:8
    • > 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

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
    • > 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)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: onboarding, modal, tooltips, userpilot, hotspots...

userpilot/userpilot.php Passed 13 tests

The entry point to "Userpilot" version 1.1.3 is a PHP file that has certain tags in its header comment area
28 characters long description:
Product Experience Software.

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

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
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
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants3
▷ 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%