77% ux-sniff

Code Review | UXsniff Heatmap

WordPress plugin UXsniff Heatmap scored77%from 54 tests.

About plugin

  • Plugin page: ux-sniff
  • Plugin version: 1.1.8
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3.0
  • WordPress version: 6.3.1
  • First release: Feb 27, 2020
  • Latest release: Aug 22, 2023
  • Number of updates: 51
  • Update frequency: every 24.9 days
  • Top authors: uxsniff (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active /3,177 total downloads

Benchmarks

Plugin footprint 82% 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.06MB] [CPU: ▼3.33ms] 75% from 4 tests

An overview of server-side resources used by UXsniff Heatmap
Please fix the following
  • CPU: Try to keep total CPU usage under 500.00ms (currently 1,237.75ms on /wp-admin/admin.php?page=uxsniff-info)
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.69 ▲4.69
Dashboard /wp-admin3.36 ▲0.0647.51 ▲1.08
Posts /wp-admin/edit.php3.48 ▲0.1247.11 ▼2.45
Add New Post /wp-admin/post-new.php5.96 ▲0.0887.98 ▼16.64
Media Library /wp-admin/upload.php3.29 ▲0.0636.25 ▲4.81
Settings /wp-admin/admin.php?page=uxsniff-info3.261,237.75
Rage alerts /wp-admin/admin.php?page=uxsniff-rage-alerts3.2929.81
Recordings /wp-admin/admin.php?page=uxsniff-recordings3.2930.22
Heatmaps /wp-admin/admin.php?page=uxsniff-heatmaps3.2731.39

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 49 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by UXsniff Heatmap
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,874 ▲12815.81 ▲1.461.80 ▲0.1533.11 ▼8.37
Dashboard /wp-admin2,265 ▲746.92 ▲1.07172.27 ▲66.2490.13 ▲46.30
Posts /wp-admin/edit.php2,166 ▲774.00 ▲2.0049.31 ▲9.5334.90 ▼0.74
Add New Post /wp-admin/post-new.php1,571 ▲4325.08 ▲6.98699.04 ▲70.1651.23 ▼17.94
Media Library /wp-admin/upload.php1,459 ▲685.77 ▲1.47117.90 ▲18.8182.39 ▲40.09
Settings /wp-admin/admin.php?page=uxsniff-info8954.0037.4229.96
Rage alerts /wp-admin/admin.php?page=uxsniff-rage-alerts8114.0440.8123.08
Recordings /wp-admin/admin.php?page=uxsniff-recordings8514.0640.5825.23
Heatmaps /wp-admin/admin.php?page=uxsniff-heatmaps8114.1439.8521.54

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% 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)
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=uxsniff-info
    • > Warning in wp-content/plugins/ux-sniff/options.php+66
    file_get_contents(https://uxsniff.com/user/api?domain=http://wp.com): failed to open stream: HTTP request failed! HTTP/1.1 502 Bad Gateway

    • > GET request to /wp-admin/admin.php?page=uxsniff-info
    • > Notice in wp-content/plugins/ux-sniff/options.php+68
    Trying to get property 'id' of non-object
    • > GET request to /wp-admin/admin.php?page=uxsniff-info
    • > Notice in wp-content/plugins/ux-sniff/options.php+69
    Trying to get property 'plan' of non-object
    • > GET request to /wp-admin/admin.php?page=uxsniff-recordings
    • > Notice in wp-content/plugins/ux-sniff/recordings.php+7
    Undefined index: host

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
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/ux-sniff/fsheatmap.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: Add a description for screenshot #5 in ux-sniff/assets to your readme.txt
You can look at the official readme.txt

ux-sniff/uxsniff.php 85% from 13 tests

The main file in "UXsniff Heatmap" v. 1.1.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("ux-sniff.php" instead of "uxsniff.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 558 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
Everything looks great! No dangerous files found in this plugin20,794 lines of code in 47 files:
LanguageFilesBlank linesComment linesLines of code
CSS81,2471711,521
JavaScript121,2051,7525,646
PHP131,6122433,613
SVG140014

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected