74% utm-builder-ads-fox

Code Review | Adsfox.com UTM Builder Adsfox

WordPress plugin Adsfox.com UTM Builder Adsfox scored 74% from 54 tests.

About plugin

  • Plugin page: utm-builder-ads-fox
  • Plugin version: 1.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6.4-5.9.1
  • WordPress version: 6.3.1
  • First release: Jan 17, 2022
  • Latest release: Mar 4, 2022
  • Number of updates: 6
  • Update frequency: every 8.2 days
  • Top authors: adsfox (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 628 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

This is a short check of server-side resources used by Adsfox.com UTM Builder Adsfox
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.70 ▼6.81
Dashboard /wp-admin3.32 ▲0.0146.84 ▼3.04
Posts /wp-admin/edit.php3.37 ▲0.0148.43 ▲1.59
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.82 ▼1.69
Media Library /wp-admin/upload.php3.24 ▲0.0136.54 ▲5.36

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Adsfox.com UTM Builder Adsfox
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲5513.18 ▼0.991.66 ▼0.3341.39 ▼3.54
Dashboard /wp-admin2,218 ▲304.88 ▼0.03108.34 ▼8.1339.93 ▼3.71
Posts /wp-admin/edit.php2,104 ▲152.06 ▲0.0739.35 ▲3.0835.23 ▲3.24
Add New Post /wp-admin/post-new.php1,543 ▲2923.37 ▲5.73682.28 ▲5.4654.10 ▲1.79
Media Library /wp-admin/upload.php1,400 ▲124.20 ▼0.0191.78 ▼9.5541.45 ▼3.35

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie tables were found after uninstall: 1 table
    • wp_adfox_utm
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/utm-builder-ads-fox/options.php on line 23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/utm-builder-ads-fox/class/menu.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/utm-builder-ads-fox/ajax/ajax.php:53
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/utm-builder-ads-fox/options.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Donate link: Invalid URI found ("")
Please take inspiration from this readme.txt

utm-builder-ads-fox/utmbuilder.php 92% from 13 tests

"Adsfox.com UTM Builder Adsfox" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("utm-builder-ads-fox.php" instead of "utmbuilder.php")

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
Good job! No executable or dangerous file extensions detected356 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP46817258
JavaScript21636497
CSS1061

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods3100.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG images were found in this plugin