84% ultimate-conversion-tracking-code

Code Review | Ultimate Conversion Tracking Code

WordPress plugin Ultimate Conversion Tracking Code scored 84% from 54 tests.

About plugin

  • Plugin page: ultimate-conversi...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3.1
  • WordPress version: 6.3.1
  • First release: Nov 15, 2015
  • Latest release: Nov 16, 2015
  • Number of updates: 4
  • Update frequency: every 0.8 days
  • Top authors: asanabria11 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 2,104 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.13MB] [CPU: ▼5.07ms] Passed 4 tests

This is a short check of server-side resources used by Ultimate Conversion Tracking Code
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.31 ▼3.07
Dashboard /wp-admin3.32 ▲0.0245.00 ▼5.20
Posts /wp-admin/edit.php3.37 ▲0.0148.65 ▲2.09
Add New Post /wp-admin/post-new.php5.31 ▼0.5876.12 ▼10.60
Media Library /wp-admin/upload.php3.24 ▲0.0132.76 ▼1.42

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ultimate Conversion Tracking Code
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,864 ▲12913.62 ▼0.772.25 ▲0.4139.96 ▼4.21
Dashboard /wp-admin2,239 ▲515.25 ▲0.35112.28 ▲3.8743.56 ▲5.32
Posts /wp-admin/edit.php2,122 ▲302.47 ▲0.4438.56 ▼3.0837.09 ▲1.71
Add New Post /wp-admin/post-new.php1,540 ▲2617.81 ▲0.36674.40 ▼23.4041.23 ▼4.43
Media Library /wp-admin/upload.php1,424 ▲364.51 ▲0.32100.34 ▼7.2640.84 ▼6.19

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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 fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-conversion-tracking-code/ultimate-conversion-tracking-code.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: tracking, conversion, marketing, custom scripts, adwords scripts...

ultimate-conversion-tracking-code/ultimate-conversion-tracking-code.php Passed 13 tests

Analyzing the main PHP file in "Ultimate Conversion Tracking Code" version 1.0.0
52 characters long description:
Add any marketing script to Woocomerce and Wordpress

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 detected482 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP17025397
JavaScript2261484
CSS1441

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin