79% universal-wp-lead-tracking

Code Review | Universal WP Lead Tracking

WordPress plugin Universal WP Lead Tracking scored79%from 54 tests.

About plugin

  • Plugin page: universal-wp-lead...
  • Plugin version: 1.0.3.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.1.1
  • WordPress version: 6.3.1
  • First release: Nov 9, 2022
  • Latest release: Feb 2, 2023
  • Number of updates: 8
  • Update frequency: every 12.0 days
  • Top authors: inboundhorizons (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /337 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.43ms] Passed 4 tests

This is a short check of server-side resources used by Universal WP Lead Tracking
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.20 ▼2.69
Dashboard /wp-admin3.32 ▼0.0249.58 ▼13.22
Posts /wp-admin/edit.php3.37 ▲0.0249.40 ▲2.86
Add New Post /wp-admin/post-new.php5.90 ▲0.0290.32 ▼3.71
Media Library /wp-admin/upload.php3.24 ▲0.0136.03 ▼2.10
Universal WP Lead Tracking /wp-admin/options-general.php?page=uwplt3.22250.13

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

Input-output and database impact of this plugin
Please fix the following
  • The filesystem usage should be lower than 25MB (currently using 54.01MB)
Filesystem: 11 new files
Database: 1 new table, 6 new options
New tables
wp_track_sessions
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Universal WP Lead Tracking
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.48 ▲0.101.98 ▲0.2544.20 ▲3.47
Dashboard /wp-admin2,210 ▲225.78 ▼0.12101.32 ▼7.7741.77 ▼2.65
Posts /wp-admin/edit.php2,096 ▲71.99 ▲0.0239.08 ▲0.2536.25 ▲1.13
Add New Post /wp-admin/post-new.php1,517 ▲317.51 ▲0.09693.85 ▲51.6558.66 ▲2.24
Media Library /wp-admin/upload.php1,395 ▲44.21 ▼0.0498.25 ▼5.8041.00 ▼6.23
Universal WP Lead Tracking /wp-admin/options-general.php?page=uwplt1,1082.1625.8550.05

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie tables detected upon uninstall: 1 table
    • wp_track_sessions
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 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
5 plugin tags: form, email, lead, tracking, contact

universal-wp-lead-tracking/universal-wp-lead-tracking.php 92% from 13 tests

The primary PHP file in "Universal WP Lead Tracking" version 1.0.3.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 278 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected690 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP125465690

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity31.00
▷ Minimum class complexity31.00
▷ Maximum class complexity31.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods964.29%
▷ Public methods1071.43%
▷ Protected methods00.00%
▷ Private methods428.57%
Functions16
▷ Named functions1275.00%
▷ Anonymous functions425.00%
Constants0
▷ Global constants00.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.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png30.73KB10.07KB▼ 67.22%