56% follow-hook

Code Review | Follow Hook

WordPress plugin Follow Hook scored 56% from 54 tests.

About plugin

  • Plugin page: follow-hook
  • Plugin version: 3.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1.0-5.8.0
  • WordPress version: 5.8.1
  • First release: Aug 6, 2019
  • Latest release: Aug 22, 2021
  • Number of updates: 37
  • Update frequency: every 20.4 days
  • Top authors: kylerboudreau (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

30+ active / 1,506 total downloads

Benchmarks

Plugin footprint 64% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.43MB] [CPU: ▲1,550.80ms] 50% from 4 tests

An overview of server-side resources used by Follow Hook
Please fix the following
  • CPU: Total CPU usage should be kept under 500.00ms (currently 1,526.44ms on /wp-admin/edit.php?post_type=people)
  • Extra CPU: The extra CPU usage must be under 200.00ms (currently 1,550.80ms on /wp-admin/edit.php?post_type=people)
PageMemory (MB)CPU Time (ms)
Home /3.44 ▲0.723,279.18 ▲3,258.89
Dashboard /wp-admin3.53 ▲0.481,910.25 ▲1,867.39
Posts /wp-admin/edit.php3.59 ▲0.483,133.68 ▲3,088.42
Add New Post /wp-admin/post-new.php5.66 ▲0.231,899.64 ▲1,248.56
Media Library /wp-admin/upload.php3.55 ▲0.5530.85 ▼1.17
Add Pods to Forms /wp-admin/admin.php?page=pod_Follow_Hook_forms_admin_pg3.5129.38
Tags /wp-admin/edit-tags.php?taxonomy=people_tags&post_type=people3.542,587.38
Today's Touchpoints /wp-admin/admin.php?page=Follow_Hook_daily_touchpoints3.524,125.28
Select GDPR for Forms /wp-admin/admin.php?page=forms_GDPR_admin_pg3.521,061.39
Custom Fields /wp-admin/admin.php?page=Follow_Hook_custom_fields_admin_pg3.521,631.75
Add New Touchpoint /wp-admin/post-new.php?post_type=touchpoints3.633,622.52
Add New /wp-admin/post-new.php?post_type=people3.644,940.97
Touchpoints /wp-admin/edit.php?post_type=touchpoints3.584,930.00
Groups /wp-admin/edit-tags.php?taxonomy=pods&post_type=people3.544,928.22
People /wp-admin/edit.php?post_type=people3.581,526.44

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 90 new files
Database: 4 new tables, 2 new options
New tables
wp_custom_fields
wp_CF7_pods
wp_campaign_touchpoints
wp_cultivate_form_assoc
New WordPress options
remove_from_Mailchimp
cultivate_cron_time

Browser metrics Passed 4 tests

Follow Hook: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,780 ▲18416.08 ▲0.559.04 ▲0.7846.83 ▼2.17
Dashboard /wp-admin3,056 ▲1196.20 ▲0.25134.16 ▼15.17131.25 ▲22.46
Posts /wp-admin/edit.php2,850 ▲1113.09 ▲0.3964.35 ▼1.61103.46 ▲17.55
Add New Post /wp-admin/post-new.php1,689 ▲18921.66 ▲2.90270.45 ▼103.3491.58 ▼19.75
Media Library /wp-admin/upload.php1,841 ▲315.08 ▲0.02125.88 ▼31.36137.82 ▲19.47
Add Pods to Forms /wp-admin/admin.php?page=pod_Follow_Hook_forms_admin_pg1,1652.3856.4094.73
Tags /wp-admin/edit-tags.php?taxonomy=people_tags&post_type=people2,0233.0358.00113.92
Today's Touchpoints /wp-admin/admin.php?page=Follow_Hook_daily_touchpoints1,3262.3952.5186.38
Select GDPR for Forms /wp-admin/admin.php?page=forms_GDPR_admin_pg1,1742.3752.9384.60
Custom Fields /wp-admin/admin.php?page=Follow_Hook_custom_fields_admin_pg1,3472.3856.8199.14
Add New Touchpoint /wp-admin/post-new.php?post_type=touchpoints2,9173.7587.6777.96
Add New /wp-admin/post-new.php?post_type=people3,1993.8890.7566.67
Touchpoints /wp-admin/edit.php?post_type=touchpoints1,7262.9262.82112.03
Groups /wp-admin/edit-tags.php?taxonomy=pods&post_type=people2,0733.0261.45112.08
People /wp-admin/edit.php?post_type=people1,8172.9264.36114.02

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 4 tables in the database
    • wp_campaign_touchpoints
    • wp_custom_fields
    • wp_cultivate_form_assoc
    • wp_CF7_pods
  • Zombie WordPress options detected upon uninstall: 2 options
    • cultivate_cron_time
    • remove_from_Mailchimp

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=people
    • > Notice in wp-content/plugins/follow-hook/follow-hook.php+189
    Undefined index: action
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=forms_GDPR_admin_pg
    • > Notice in wp-content/plugins/follow-hook/CF7_GDPR_pg.php+39
    Undefined index: f
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=people
    • > Notice in wp-content/plugins/follow-hook/fh-functions.php+5
    Undefined index: page
    • > GET request to /wp-admin/admin.php?page=Follow_Hook_custom_fields_admin_pg
    • > Notice in wp-content/plugins/follow-hook/custom_fields_pg.php+110
    Undefined variable: lable
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=Follow_Hook_custom_fields_admin_pg
    • > Notice in wp-content/plugins/follow-hook/custom_fields_pg.php+113
    Undefined variable: name
    • > GET request to /wp-admin/admin.php?page=Follow_Hook_custom_fields_admin_pg
    • > Notice in wp-content/plugins/follow-hook/custom_fields_pg.php+114
    Undefined variable: did
    • > GET request to /wp-admin/admin.php?page=Follow_Hook_custom_fields_admin_pg
    • > Notice in wp-content/plugins/follow-hook/custom_fields_pg.php+115
    Undefined variable: class
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=Follow_Hook_custom_fields_admin_pg
    • > Notice in wp-content/plugins/follow-hook/custom_fields_pg.php+119
    Undefined variable: type
    • > GET request to /wp-admin/post-new.php?post_type=touchpoints
    • > User deprecated in wp-includes/functions.php+5495
    WP_Query was called with an argument that is deprecated since version 3.1.0! caller_get_posts is deprecated. Use ignore_sticky_posts instead.
    • > GET request to /wp-admin/post-new.php?post_type=people
    • > Notice in wp-content/plugins/follow-hook/follow-hook.php+547
    Undefined variable: dob
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=people
    • > Notice in wp-content/plugins/follow-hook/follow-hook.php+2319
    Undefined variable: null

SRP 0% 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
The following issues need your attention
  • 6× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/follow-hook/touchpoint_div_add_new.php
    • > /wp-content/plugins/follow-hook/calendar/calendar_div_add_new.php
    • > /wp-content/plugins/follow-hook/MC_list_members.php
    • > /wp-content/plugins/follow-hook/Third_Party_Sync.php
    • > /wp-content/plugins/follow-hook/add_update_option.php
    • > /wp-content/plugins/follow-hook/js/admin_pg_JS.php
  • 26× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined index: tab in wp-content/plugins/follow-hook/admin_pg.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/follow-hook/admin_pg.php:10
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/follow-hook/forms_admin_pg.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/follow-hook/calendar/admin-calendar-code.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_title() in wp-content/plugins/follow-hook/next_touchpoint.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/follow-hook/pods.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/follow-hook/follow-hook.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/follow-hook/add_GDPR_to_quick_edit.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/follow-hook/forms_admin_pg.php:53
    • > PHP Fatal error
      Uncaught Error: Call to undefined function home_url() in wp-content/plugins/follow-hook/admin-header.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=people
    • > Javascript (severe) in unknown
    /wp-content/plugins/follow-hook/js/bulk_quick_edit.js?ver=5.8.1 1:17 Uncaught TypeError: $(...).live is not a function

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
6 plugin tags: contact form 7, convertkit, crm, project broadcast, mailchimp...

follow-hook/follow-hook.php Passed 13 tests

The primary PHP file in "Follow Hook" version 3.0.1 is used by WordPress to initiate all plugin functionality
66 characters long description:
A custom CRM plugin developed by Kyler Boudreau and Ian Lincicome.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin7,328 lines of code in 75 files:
LanguageFilesBlank linesComment linesLines of code
PHP349631,5795,232
CSS111721261,726
JavaScript208158338
SVG102032

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions115
▷ Named functions11499.13%
▷ Anonymous functions10.87%
Constants2
▷ Global constants2100.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
9 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
calendar/info.png2.04KB1.65KB▼ 18.99%
images/menu-icon.png7.18KB2.37KB▼ 66.95%
images/fh-support.png4.81KB2.68KB▼ 44.21%
images/admin-logo.png4.65KB3.18KB▼ 31.58%
images/imgpsh_fullsize_blu.png2.95KB2.13KB▼ 27.76%