63% adobe-dtm

Code Review | Adobe DTM for Wordpress

WordPress plugin Adobe DTM for Wordpress scored63%from 54 tests.

About plugin

  • Plugin page: adobe-dtm
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6.1
  • WordPress version: 6.3.1
  • First release: Jan 10, 2015
  • Latest release: Sep 28, 2016
  • Number of updates: 19
  • Update frequency: every 33.1 days
  • Top authors: adamlytics (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /3,351 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.85MB] [CPU: ▼37.71ms] Passed 4 tests

A check of server-side resources used by Adobe DTM for Wordpress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0322.84 ▼21.56
Dashboard /wp-admin3.09 ▼0.2124.49 ▼29.52
Posts /wp-admin/edit.php3.09 ▼0.2625.79 ▼24.39
Add New Post /wp-admin/post-new.php3.09 ▼2.7926.08 ▼75.36
Media Library /wp-admin/upload.php3.09 ▼0.1423.24 ▼13.47
Adobe DTM /wp-admin/options-general.php?page=disruptive-dtm3.0926.41

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Adobe DTM for Wordpress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲7013.28 ▼1.385.72 ▲3.7139.76 ▼11.92
Dashboard /wp-admin2,207 ▲195.85 ▼0.03105.98 ▼9.8239.37 ▼7.66
Posts /wp-admin/edit.php2,093 ▲12.05 ▲0.0138.90 ▲2.2134.98 ▼1.62
Add New Post /wp-admin/post-new.php1,542 ▲2823.09 ▲5.58681.43 ▼14.2956.34 ▲5.60
Media Library /wp-admin/upload.php1,395 ▲74.24 ▼0.0098.62 ▼7.5642.09 ▼5.31
Adobe DTM /wp-admin/options-general.php?page=disruptive-dtm1,2912.0323.0738.66

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
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/adobe-dtm/adobe-dtm.php+46
    Undefined index: default
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=disruptive-dtm
    • > Notice in wp-content/plugins/adobe-dtm/adobe-dtm.php+46
    Undefined index: default
  • 52 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=disruptive-dtm
    • > Notice in wp-content/plugins/adobe-dtm/admin.php+31
    Undefined index: style
    • > GET request to /wp-admin/options-general.php?page=disruptive-dtm
    • > Notice in wp-content/plugins/adobe-dtm/admin.php+7
    Undefined index: credits
    • > GET request to /wp-admin/options-general.php?page=disruptive-dtm
    • > Notice in wp-content/plugins/adobe-dtm/admin.php+10
    Undefined index: desc
    • > GET request to /wp-admin/options-general.php?page=disruptive-dtm
    • > Notice in wp-content/plugins/adobe-dtm/admin.php+7
    Undefined index: id
    • > GET request to /wp-admin/options-general.php?page=disruptive-dtm
    • > Notice in wp-content/plugins/adobe-dtm/admin.php+7
    Undefined index:

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
The following issues need your attention
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/adobe-dtm/admin.php:175
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/adobe-dtm/options.php:105
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/adobe-dtm/dtm.php:447
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/adobe-dtm/adobe-dtm.php:12

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=disruptive-dtm
    • > Network (severe)
    wp-content/plugins/adobe-dtm/images/da-dtm.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: analytics, adobe activation, web analytics, tag manager, google analytics...

adobe-dtm/adobe-dtm.php Passed 13 tests

The main file in "Adobe DTM for Wordpress" v. 1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
66 characters long description:
The first Adobe Dynamic Tag Management (DTM) plugin for WordPress.

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
Success! There were no dangerous files found in this plugin933 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP410528728
JSON100205

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.57
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%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants45
▷ Global constants45100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/sdi-dtm.png3.16KB1.86KB▼ 41.25%