89% easy-utm-builder

Code Review | Easy UTM Builder

WordPress plugin Easy UTM Builder scored89%from 54 tests.

About plugin

  • Plugin page: easy-utm-builder
  • Plugin version: 1.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.0-6.3
  • WordPress version: 6.3.1
  • First release: Nov 11, 2016
  • Latest release: Aug 22, 2023
  • Number of updates: 15
  • Update frequency: every 165.1 days
  • Top authors: Atlas_Gondal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /3,539 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼9.65ms] Passed 4 tests

Analyzing server-side resources used by Easy UTM Builder
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.44 ▼7.12
Dashboard /wp-admin3.31 ▼0.0343.99 ▼17.07
Posts /wp-admin/edit.php3.37 ▲0.0148.35 ▼5.28
Add New Post /wp-admin/post-new.php5.90 ▲0.0196.40 ▼9.12
Media Library /wp-admin/upload.php3.24 ▲0.0149.21 ▲11.27
Easy UTM Builder /wp-admin/options-general.php?page=easy-utm-builder-settings3.2836.31

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Easy UTM Builder
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲2214.23 ▼0.301.75 ▼0.5741.94 ▼4.65
Dashboard /wp-admin2,202 ▲285.64 ▲0.1189.72 ▼5.9341.18 ▲0.31
Posts /wp-admin/edit.php2,104 ▲11.95 ▼0.0740.14 ▼3.8535.91 ▼1.41
Add New Post /wp-admin/post-new.php1,531 ▲523.02 ▼0.20673.51 ▼2.0659.40 ▼0.17
Media Library /wp-admin/upload.php1,401 ▲44.26 ▲0.07110.35 ▲6.7747.73 ▲0.59
Easy UTM Builder /wp-admin/options-general.php?page=easy-utm-builder-settings1,0752.1724.4834.33

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 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 Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please describe screenshot #3 in easy-utm-builder/assets to your readme.txt
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
You can look at the official readme.txt

easy-utm-builder/easy-utm-builder.php Passed 13 tests

The main PHP file in "Easy UTM Builder" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
105 characters long description:
This plugin will help you in building URLs with UTM parameters for all of your site or custom post types!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin347 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP319410347

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity5.00
▷ Minimum method complexity2.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods375.00%
▷ Protected methods125.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.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
There were not PNG files found in your plugin