73% adobe-dtm

Code Review | Adobe DTM for Wordpress

WordPress plugin Adobe DTM for Wordpress scored 73% 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: 5.9.2
  • 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 / 2,894 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.10MB] [CPU: ▼333.21ms] Passed 4 tests

Server-side resources used by Adobe DTM for Wordpress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0552.59 ▼0.89
Dashboard /wp-admin3.23 ▼0.1818.18 ▼14.73
Posts /wp-admin/edit.php3.23 ▼0.4124.09 ▼14.87
Add New Post /wp-admin/post-new.php3.23 ▼3.7418.95 ▼1,296.29
Media Library /wp-admin/upload.php3.23 ▼0.0718.59 ▼6.94
Adobe DTM /wp-admin/options-general.php?page=disruptive-dtm3.2319.11

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Adobe DTM for Wordpress: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,801 ▲4715.91 ▲0.266.78 ▼0.002.81 ▲0.69
Dashboard /wp-admin2,897 ▲396.12 ▼0.07118.38 ▼13.25153.76 ▼9.19
Posts /wp-admin/edit.php2,696 ▲23.23 ▲0.0066.61 ▲3.41141.92 ▼1.78
Add New Post /wp-admin/post-new.php1,701 ▲1122.25 ▲1.63406.62 ▼26.43155.37 ▼14.99
Media Library /wp-admin/upload.php1,706 ▲85.55 ▲0.06139.08 ▼21.56188.34 ▼9.31
Adobe DTM /wp-admin/options-general.php?page=disruptive-dtm1,6012.3755.49123.91

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
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/adobe-dtm/adobe-dtm.php+46
    Undefined index: default

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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 | 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
Please take a closer look at the following
  • 4× 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/adobe-dtm/admin.php:175
    • > 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
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/adobe-dtm/options.php:105

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
    • > 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

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
8 plugin tags: dtm, adobe dynamic tag manager, google analytics, adobe dtm, tag manager...

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

Analyzing the main PHP file in "Adobe DTM for Wordpress" version 1.4
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 an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected933 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP410528728
JSON100205

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
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

PNG files should be compressed to save space and minimize bandwidth usage
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%