89% ux-tracker

Code Review | UX Tracker

WordPress plugin UX Tracker scored89%from 54 tests.

About plugin

  • Plugin page: ux-tracker
  • Plugin version: 1.01
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.2
  • WordPress version: 6.3.1
  • First release: Jul 16, 2015
  • Latest release: Jul 18, 2015
  • Number of updates: 8
  • Update frequency: every 0.4 days
  • Top authors: uiux (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /912 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼8.86ms] Passed 4 tests

Analyzing server-side resources used by UX Tracker
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0638.91 ▼11.95
Dashboard /wp-admin3.34 ▼0.0045.71 ▼10.58
Posts /wp-admin/edit.php3.40 ▲0.0460.55 ▲7.30
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.15 ▼15.54
Media Library /wp-admin/upload.php3.27 ▲0.0336.60 ▲2.62

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for UX Tracker
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,899 ▲15313.59 ▼0.794.62 ▲2.7142.06 ▼0.03
Dashboard /wp-admin2,219 ▲315.78 ▲0.8498.18 ▼1.6038.90 ▼4.65
Posts /wp-admin/edit.php2,109 ▲202.03 ▲0.0435.25 ▼6.1733.46 ▼1.77
Add New Post /wp-admin/post-new.php1,527 ▲1317.49 ▲0.02678.04 ▲13.2651.49 ▲1.41
Media Library /wp-admin/upload.php1,401 ▲194.13 ▼0.0491.51 ▼8.9442.08 ▼1.77

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Plugin Name: You should set the name of your plugin on the first line ( === ux-tracker === )
You can look at the official readme.txt

ux-tracker/ux-tracker.php 92% from 13 tests

The main PHP script in "UX Tracker" version 1.01 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 167 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin415 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP59815273
JavaScript2227142

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods777.78%
▷ Public methods555.56%
▷ Protected methods222.22%
▷ Private methods222.22%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
(invalid) assets/icon-256x256.png11.07KB0.00KB▼ 100.00%
admin/img/custom-dimensions.png11.56KB5.62KB▼ 51.37%
(invalid) assets/icon-128x128.png4.53KB0.00KB▼ 100.00%