78% tracify

Code Review | Tracify

WordPress plugin Tracify scored78%from 54 tests.

About plugin

  • Plugin page: tracify
  • Plugin version: 3.0.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Jun 9, 2022
  • Latest release: Aug 30, 2023
  • Number of updates: 16
  • Update frequency: every 28.3 days
  • Top authors: tracify (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,629 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
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼5.43ms] Passed 4 tests

Server-side resources used by Tracify
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0638.46 ▼3.56
Dashboard /wp-admin3.39 ▲0.0850.79 ▼1.76
Posts /wp-admin/edit.php3.51 ▲0.1552.00 ▲1.90
Add New Post /wp-admin/post-new.php5.97 ▲0.0887.99 ▼16.05
Media Library /wp-admin/upload.php3.31 ▲0.0837.57 ▼0.35
Tracify /wp-admin/options-general.php?page=tracify3.2837.69

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
tracify_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Tracify
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.24 ▼1.221.90 ▼0.3341.96 ▼3.39
Dashboard /wp-admin2,213 ▲254.86 ▼0.02103.02 ▼3.0840.34 ▼6.49
Posts /wp-admin/edit.php2,093 ▲42.06 ▲0.0632.90 ▼7.1736.16 ▲5.21
Add New Post /wp-admin/post-new.php1,536 ▲323.10 ▲0.06647.34 ▼13.7266.09 ▲3.25
Media Library /wp-admin/upload.php1,392 ▲44.24 ▲0.03107.73 ▲0.4651.77 ▲9.28
Tracify /wp-admin/options-general.php?page=tracify8662.0226.7828.70

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/tracify/views/admin/settings_header.php
    • > /wp-content/plugins/tracify/views/admin/settings_orders_header.php
    • > /wp-content/plugins/tracify/views/admin/settings_advanced_header.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/tracify/tracify.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/tracify/views/admin/settings.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: conversion tracking, tiktok, tracking, facebook, ai...

tracify/tracify.php 85% from 13 tests

"Tracify" version 3.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Description: Keep the plugin description shorter than 140 characters (currently 149 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin134 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP81627122
CSS12012

PHP code Passed 2 tests

This is a very shot review 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.27
Average class complexity16.50
▷ Minimum class complexity10.00
▷ Maximum class complexity23.00
Average method complexity2.15
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods27
▷ Static methods00.00%
▷ Public methods2385.19%
▷ Protected methods00.00%
▷ Private methods414.81%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/tracify-logo.png8.10KB7.07KB▼ 12.75%