74% verticalresponse-marketing-suite

Code Review | VerticalResponse Marketing Suite

WordPress plugin VerticalResponse Marketing Suite scored74%from 54 tests.

About plugin

  • Plugin page: verticalresponse-...
  • Plugin version: 1.1.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.0.2
  • WordPress version: 6.3.1
  • First release: Apr 7, 2022
  • Latest release: Jul 18, 2023
  • Number of updates: 21
  • Update frequency: every 22.2 days
  • Top authors: maheshruparel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /445 total downloads

Benchmarks

Plugin footprint 65% 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.33MB] [CPU: ▼1.47ms] Passed 4 tests

Server-side resources used by VerticalResponse Marketing Suite
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.3240.98 ▼0.27
Dashboard /wp-admin3.67 ▲0.3748.22 ▼2.09
Posts /wp-admin/edit.php3.73 ▲0.3750.16 ▲5.54
Add New Post /wp-admin/post-new.php6.19 ▲0.3185.51 ▼9.06
Media Library /wp-admin/upload.php3.53 ▲0.3142.12 ▲6.55
Connect with VerticalResponse /wp-admin/admin.php?page=verticalresponse-marketing-suite-connect3.5134.48
Contacts /wp-admin/admin.php?page=verticalresponse-marketing-suite-contacts3.4833.53
Add New /wp-admin/admin.php?page=verticalresponse-marketing-suite-add3.5134.15
VerticalResponse /wp-admin/admin.php?page=verticalresponse-marketing-suite3.4833.07
Custom Messages /wp-admin/admin.php?page=verticalresponse-marketing-suite-custom-msgs3.4828.76

Server storage [IO: ▲0.83MB] [DB: ▲0.01MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 63 new files
Database: 5 new tables, 12 new options
New tables
wp_dms_custom_fields
wp_dms_popups
wp_dms_contacts
wp_dms_contact_meta
wp_dms_popup_fields
New WordPress options
widget_recent-posts
dms_exists_msg
dms_client_key
can_compress_scripts
dms_secret_key
dms_db_version
widget_theysaidso_widget
dms_error_msg
db_upgraded
widget_recent-comments
...

Browser metrics Passed 4 tests

VerticalResponse Marketing Suite: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,863 ▲10614.69 ▲0.392.15 ▲0.1847.77 ▲2.92
Dashboard /wp-admin2,244 ▲565.80 ▼0.0896.85 ▼19.8963.67 ▲18.88
Posts /wp-admin/edit.php2,130 ▲382.01 ▲0.0136.50 ▼0.7231.71 ▼4.07
Add New Post /wp-admin/post-new.php1,545 ▲1023.18 ▲0.09761.40 ▲85.0550.87 ▼6.54
Media Library /wp-admin/upload.php1,417 ▲294.07 ▼0.11101.40 ▼0.3182.81 ▲39.33
Connect with VerticalResponse /wp-admin/admin.php?page=verticalresponse-marketing-suite-connect8491.8529.1461.52
Contacts /wp-admin/admin.php?page=verticalresponse-marketing-suite-contacts1,5232.5430.1840.46
Add New /wp-admin/admin.php?page=verticalresponse-marketing-suite-add1,5272.9135.2939.63
VerticalResponse /wp-admin/admin.php?page=verticalresponse-marketing-suite1,5392.5131.5844.33
Custom Messages /wp-admin/admin.php?page=verticalresponse-marketing-suite-custom-msgs1,5232.5330.9637.71

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
  • This plugin does not fully uninstall, leaving 10 options in the database
    • widget_theysaidso_widget
    • dms_success_msg
    • db_upgraded
    • theysaidso_admin_options
    • dms_db_version
    • widget_recent-comments
    • dms_error_msg
    • dms_exists_msg
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 58× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: element_class in wp-content/plugins/verticalresponse-marketing-suite/partials/public/form_embed.php on line 103
    • > PHP Notice
      Undefined variable: form in wp-content/plugins/verticalresponse-marketing-suite/partials/public/form_embed.php on line 96
    • > PHP Notice
      Undefined variable: element_class in wp-content/plugins/verticalresponse-marketing-suite/partials/public/form_embed.php on line 55
    • > PHP Notice
      Undefined variable: element_class in wp-content/plugins/verticalresponse-marketing-suite/partials/public/form_embed.php on line 85
    • > PHP Notice
      Undefined variable: form in wp-content/plugins/verticalresponse-marketing-suite/partials/public/form_embed.php on line 95
    • > PHP Notice
      Undefined variable: element_class in wp-content/plugins/verticalresponse-marketing-suite/partials/public/form_embed.php on line 47
    • > PHP Notice
      Undefined variable: element_class in wp-content/plugins/verticalresponse-marketing-suite/partials/public/form_embed.php on line 2
    • > PHP Notice
      Trying to get property 'title' of non-object in wp-content/plugins/verticalresponse-marketing-suite/partials/public/form_embed.php on line 7
    • > PHP Notice
      Trying to get property 'popup_bg_color' of non-object in wp-content/plugins/verticalresponse-marketing-suite/partials/public/form_embed.php on line 62
    • > PHP Warning
      Use of undefined constant VMS_ASSETS_URL - assumed 'VMS_ASSETS_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/verticalresponse-marketing-suite/partials/admin/popups.php on line 10

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: promotional form, lead generation, newsletter, verticalresponse, subscribe...

verticalresponse-marketing-suite/verticalresponse-marketing-suite.php Passed 13 tests

The main PHP script in "VerticalResponse Marketing Suite" version 1.1.6 is automatically included on every request by WordPress
72 characters long description:
Generate more leads with VerticalResponse Marketing Suite's Contact Form

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin9,106 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
CSS5545305,121
PHP223482832,897
JavaScript1412670800
SVG100288

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity27.12
▷ Minimum class complexity1.00
▷ Maximum class complexity119.00
Average method complexity3.99
▷ Minimum method complexity1.00
▷ Maximum method complexity96.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods70
▷ Static methods22.86%
▷ Public methods4767.14%
▷ Protected methods00.00%
▷ Private methods2332.86%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
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
assets/public/close.png1.59KB0.67KB▼ 57.70%