62% marketing-automation

Code Review | Marketing Automation

WordPress plugin Marketing Automation scored62%from 54 tests.

About plugin

  • Plugin page: marketing-automation
  • Plugin version: 1.2.6.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3.2
  • WordPress version: 6.3.1
  • First release: Jan 22, 2015
  • Latest release: Oct 26, 2023
  • Number of updates: 104
  • Update frequency: every 30.8 days
  • Top authors: vbout (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

900+ active /7,175 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.35MB] [CPU: ▼6.33ms] Passed 4 tests

Server-side resources used by Marketing Automation
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.97 ▲0.5036.90 ▲0.66
Dashboard /wp-admin3.81 ▲0.4647.60 ▼15.51
Posts /wp-admin/edit.php3.86 ▲0.5045.94 ▼0.28
Add New Post /wp-admin/post-new.php5.87 ▼0.0274.49 ▼10.17
Media Library /wp-admin/upload.php3.67 ▲0.4439.43 ▲1.94
Vbout Schedule /wp-admin/admin.php?page=vbout-schedule3.6228.41

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 57 new files
Database: no new tables, 38 new options
New WordPress options
vbout_sm_activated
vbout_sync_exclude_listid
vbout_em_emailsubject
vbout_em_forms
vbout_sm_channels
vbout_em_fromname
widget_recent-comments
can_compress_scripts
vbout_sync_emaillist
vbout_tracking_domains
...

Browser metrics Passed 4 tests

An overview of browser requirements for Marketing Automation
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,984 ▲22314.16 ▼0.2214.11 ▲12.6338.43 ▲1.88
Dashboard /wp-admin2,251 ▲745.25 ▼0.3795.44 ▲12.6971.34 ▲31.06
Posts /wp-admin/edit.php2,172 ▲722.24 ▲0.2745.96 ▲11.4738.85 ▲3.17
Add New Post /wp-admin/post-new.php2,253 ▲72724.03 ▲0.85647.76 ▼36.6452.34 ▼1.91
Media Library /wp-admin/upload.php1,462 ▲624.82 ▲0.65105.31 ▼7.1272.85 ▲21.92
Vbout Schedule /wp-admin/admin.php?page=vbout-schedule2,3239.08171.13129.05

Uninstaller [IO: ▲0.36MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Uninstaller has failed for this plugin, leaving 57 files (0.36MB) in the plugin directory
    • (new file) includes/Vbout.php
    • (new file) css/vboutwp.css
    • (new file) js/chosen-sprite@2x.png
    • (new file) images/tooltip-icon.png
    • (new file) includes/vbout_box.php
    • (new file) images/wp-logo.png
    • (new file) images/wp-logo-v.png
    • (new file) js/chosen-sprite.png
    • (new file) images/loading.gif
    • (new file) images/eye.png
    • ...
  • This plugin did not uninstall successfully, leaving 38 options in the database
    • vbout_em_fromemail
    • vbout_authtoken
    • vbout_em_fromname
    • vbout_sm_activated
    • vbout_status
    • vbout_em_emailsubject
    • vbout_em_lists
    • vbout_api_status_checksum
    • vbout_tracking_activated
    • widget_recent-posts
    • ...

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=vbout-schedule
    • > Notice in wp-content/plugins/marketing-automation/vbout-src/base/Vbout.php+168
    Array to string conversion
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=vbout-schedule
    • > Notice in wp-content/plugins/marketing-automation/includes/vbout_box.php+63
    Trying to get property 'post_title' of non-object
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=vbout-schedule
    • > Notice in wp-content/plugins/marketing-automation/includes/vbout_box.php+751
    Trying to get property 'post_content' of non-object

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
Please take a closer look at the following
  • 18× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/marketing-automation/templates/settings_form/text.html.php
    • > /wp-content/plugins/marketing-automation/templates/form_objects/header.html.php
    • > /wp-content/plugins/marketing-automation/templates/form_objects/paragraph.html.php
    • > /wp-content/plugins/marketing-automation/templates/form_objects/raw.html.php
    • > /wp-content/plugins/marketing-automation/templates/form_objects/vbout_classic_form.html.php
    • > /wp-content/plugins/marketing-automation/templates/form_objects/slider.html.php
    • > /wp-content/plugins/marketing-automation/templates/form_objects/dropdown.html.php
    • > /wp-content/plugins/marketing-automation/templates/form_objects/form.html.php
    • > /wp-content/plugins/marketing-automation/templates/form_objects/textarea.html.php
    • > /wp-content/plugins/marketing-automation/templates/settings_form/form.html.php
  • 95× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/marketing-automation/templates/form_objects/compare.php on line 129
    • > PHP Notice
      Undefined variable: hidden_fields in wp-content/plugins/marketing-automation/templates/form_objects/form.html.php on line 16
    • > PHP Notice
      Undefined variable: input_fields in wp-content/plugins/marketing-automation/templates/settings_form/form.html.php on line 21
    • > PHP Notice
      Undefined variable: key in wp-content/plugins/marketing-automation/templates/form_objects/textarea.html.php on line 6
    • > PHP Notice
      Undefined variable: name in wp-content/plugins/marketing-automation/templates/form_objects/dropdown.html.php on line 3
    • > PHP Notice
      Undefined variable: sliderId in wp-content/plugins/marketing-automation/templates/form_objects/slider.html.php on line 4
    • > PHP Notice
      Undefined variable: key in wp-content/plugins/marketing-automation/templates/settings_form/dropdown.html.php on line 3
    • > PHP Notice
      Undefined variable: key in wp-content/plugins/marketing-automation/templates/form_objects/radio.html.php on line 3
    • > PHP Notice
      Undefined variable: form in wp-content/plugins/marketing-automation/templates/form_objects/vbout_classic_form.html.php on line 67
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/marketing-automation/templates/form_objects/tabs.html.php on line 10

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 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
3 plugin tags: vbout, marketing, automation

marketing-automation/vboutwp.php 92% from 13 tests

Analyzing the main PHP file in "Marketing Automation" version 1.2.6.7
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("marketing-automation.php" instead of "vboutwp.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected4,829 lines of code in 38 files:
LanguageFilesBlank linesComment linesLines of code
PHP289186564,144
JavaScript711244458
CSS33310227

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity50.25
▷ Minimum class complexity1.00
▷ Maximum class complexity279.00
Average method complexity4.83
▷ Minimum method complexity1.00
▷ Maximum method complexity51.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods103
▷ Static methods5553.40%
▷ Public methods9592.23%
▷ Protected methods65.83%
▷ Private methods21.94%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants16
▷ Global constants212.50%
▷ Class constants1487.50%
▷ Public constants14100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/tooltip-icon.png1.34KB0.37KB▼ 72.13%
images/eye.png1.36KB0.63KB▼ 53.92%
js/chosen-sprite@2x.png0.72KB0.83KB0.00%
images/wp-logo-v.png1.47KB0.63KB▼ 57.30%
images/wp-logo.png0.84KB0.92KB0.00%