84% tealium

Code Review | Tealium

WordPress plugin Tealium scored84%from 54 tests.

About plugin

  • Plugin page: tealium
  • Plugin version: 2.1.16
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Nov 14, 2013
  • Latest release: Dec 8, 2022
  • Number of updates: 100
  • Update frequency: every 33.1 days
  • Top authors: tealium (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active /25,741 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.11MB] [CPU: ▼5.22ms] Passed 4 tests

This is a short check of server-side resources used by Tealium
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1237.21 ▼5.61
Dashboard /wp-admin3.42 ▲0.1152.30 ▼2.28
Posts /wp-admin/edit.php3.53 ▲0.1755.21 ▼0.41
Add New Post /wp-admin/post-new.php6.00 ▲0.1186.23 ▼11.49
Media Library /wp-admin/upload.php3.34 ▲0.1137.43 ▼1.50
Tealium Settings /wp-admin/options-general.php?page=tealium3.3731.02

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 21 new options
New WordPress options
tealiumAccount
tealiumUtagSync
tealiumTagCode
tealiumProfile
tealiumTagLocation
tealiumExclusions
tealiumTag
theysaidso_admin_options
widget_recent-comments
tealiumDataStyle
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Tealium
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲1214.71 ▼0.041.73 ▼0.3439.70 ▲0.01
Dashboard /wp-admin2,202 ▲255.64 ▼0.0482.30 ▼8.9138.35 ▼5.76
Posts /wp-admin/edit.php2,104 ▲42.02 ▼0.1340.41 ▼3.5334.17 ▼6.19
Add New Post /wp-admin/post-new.php1,562 ▲3618.66 ▲0.96620.04 ▼59.5481.45 ▲23.65
Media Library /wp-admin/upload.php1,404 ▲44.23 ▲0.0996.38 ▼17.1944.12 ▼4.11
Tealium Settings /wp-admin/options-general.php?page=tealium8792.0229.2028.66

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • 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)
Good news, no errors were detected

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 items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tealium/tealium.php:92
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/tealium/tealium.options.php:95

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === tealium === )
The official readme.txt is a good inspiration

tealium/tealium.php Passed 13 tests

"Tealium" version 2.1.16's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
70 characters long description:
Adds the Tealium tag and creates a data layer for your WordPress site.

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
Everything looks great! No dangerous files found in this plugin902 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2117120759
PO File14445128
CSS13015

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions28
▷ Named functions28100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin