84% easy-utm-tracking-with-contact-form-7

Code Review | Easy UTM Tracking with Contact Form 7

WordPress plugin Easy UTM Tracking with Contact Form 7 scored84%from 54 tests.

About plugin

  • Plugin page: easy-utm-tracking...
  • Plugin version: 2.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Jan 22, 2016
  • Latest release: Apr 19, 2023
  • Number of updates: 21
  • Update frequency: every 125.9 days
  • Top authors: basirmukhtar (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

3,000+ active /15,632 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 successfully, without throwing any errors or notices

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

A check of server-side resources used by Easy UTM Tracking with Contact Form 7
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.10 ▼1.47
Dashboard /wp-admin3.31 ▼0.0346.72 ▼11.59
Posts /wp-admin/edit.php3.37 ▲0.0146.56 ▼1.84
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.99 ▼11.13
Media Library /wp-admin/upload.php3.24 ▲0.0134.80 ▲1.63

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Easy UTM Tracking with Contact Form 7
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲6713.21 ▼1.221.59 ▼0.2038.96 ▼1.17
Dashboard /wp-admin2,219 ▲315.76 ▼0.1296.27 ▼13.8440.09 ▼4.61
Posts /wp-admin/edit.php2,101 ▲122.05 ▲0.0640.07 ▼0.3035.74 ▲0.60
Add New Post /wp-admin/post-new.php1,559 ▲3123.33 ▲0.16653.88 ▼16.5050.28 ▼19.12
Media Library /wp-admin/upload.php1,401 ▲134.23 ▲0.00107.51 ▲8.1947.83 ▲1.24

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-utm-tracking-with-contact-form-7/easy-utm-tracking-with-contact-form-7.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
6 plugin tags: contact form 7, utm, utm tracking, contact, contact form...

easy-utm-tracking-with-contact-form-7/easy-utm-tracking-with-contact-form-7.php Passed 13 tests

The main PHP script in "Easy UTM Tracking with Contact Form 7" version 2.0.6 is automatically included on every request by WordPress
78 characters long description:
This plugin adds UTM tracking code to your contact form 7 based on js cookies.

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
Good job! No executable or dangerous file extensions detected79 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript15140
PHP192039

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected