79% utm-dot-codes

Code Review | utm.codes

WordPress plugin utm.codes scored 79% from 54 tests.

About plugin

  • Plugin page: utm-dot-codes
  • Plugin version: 1.8.4
  • PHP compatiblity: 7.1.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1.0-6.2
  • WordPress version: 6.3.1
  • First release: Feb 17, 2018
  • Latest release: Jul 8, 2023
  • Number of updates: 31
  • Update frequency: every 63.5 days
  • Top authors: chrislarrycarl (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active / 6,155 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.23MB] [CPU: ▲0.04ms] Passed 4 tests

An overview of server-side resources used by utm.codes
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.65 ▼3.64
Dashboard /wp-admin3.61 ▲0.3055.42 ▼1.90
Posts /wp-admin/edit.php3.72 ▲0.3657.87 ▲2.84
Add New Post /wp-admin/post-new.php6.21 ▲0.3196.02 ▲2.87
Media Library /wp-admin/upload.php3.53 ▲0.3041.52 ▲3.25
utm.codes /wp-admin/options-general.php?page=utm-dot-codes3.5045.11
All Marketing Links /wp-admin/edit.php?post_type=utmdclink3.5950.54
Add New Link /wp-admin/post-new.php?post_type=utmdclink3.5754.87

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for utm.codes
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,897 ▲10813.32 ▼1.411.76 ▼0.2040.03 ▼11.24
Dashboard /wp-admin2,284 ▲785.03 ▲0.17107.16 ▼3.8841.43 ▼1.88
Posts /wp-admin/edit.php2,182 ▲932.17 ▲0.1342.20 ▲3.5738.94 ▲6.65
Add New Post /wp-admin/post-new.php1,549 ▲1023.13 ▼0.05687.03 ▼2.8955.27 ▼0.91
Media Library /wp-admin/upload.php1,450 ▲624.37 ▲0.1097.75 ▼10.7941.53 ▼5.73
utm.codes /wp-admin/options-general.php?page=utm-dot-codes1,2172.1931.1541.05
All Marketing Links /wp-admin/edit.php?post_type=utmdclink1,1802.1435.8928.11
Add New Link /wp-admin/post-new.php?post_type=utmdclink1,5572.7950.2855.40

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means 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
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/utm-dot-codes/utm-dot-codes.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Interface 'UtmDotCodes\\Shorten' not found in wp-content/plugins/utm-dot-codes/classes/shorten/class-rebrandly.php:13
    • > PHP Fatal error
      Uncaught Error: Interface 'UtmDotCodes\\Shorten' not found in wp-content/plugins/utm-dot-codes/classes/shorten/class-bitly.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: campaign marketing, link generator, google analytics, analytics, utm codes

utm-dot-codes/utm-dot-codes.php Passed 13 tests

The main PHP file in "utm.codes" ver. 1.8.4 adds more information about the plugin and also serves as the entry point for this plugin
69 characters long description:
A plugin that makes building analytics friendly links quick and easy.

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 plugin1,610 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP72725101,608
CSS1001
JavaScript1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity32.40
▷ Minimum class complexity1.00
▷ Maximum class complexity133.00
Average method complexity3.08
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces1
Interfaces1
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods52
▷ Static methods00.00%
▷ Public methods5198.08%
▷ Protected methods00.00%
▷ Private methods11.92%
Functions16
▷ Named functions00.00%
▷ Anonymous functions16100.00%
Constants13
▷ Global constants646.15%
▷ Class constants753.85%
▷ Public constants7100.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.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/utm-dot-codes-logo.png8.53KB5.92KB▼ 30.61%