62% bft-autoresponder

Code Review | Arigato Autoresponder and Newsletter

WordPress plugin Arigato Autoresponder and Newsletter scored62%from 54 tests.

About plugin

  • Plugin page: bft-autoresponder
  • Plugin version: 2.7.2.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Jan 16, 2010
  • Latest release: Nov 9, 2023
  • Number of updates: 217
  • Update frequency: every 23.3 days
  • Top authors: prasunsen (100%)

Code review

54 tests

User reviews

34 reviews

Install metrics

1,000+ active /112,265 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.48MB] [CPU: ▼1.80ms] Passed 4 tests

Server-side resources used by Arigato Autoresponder and Newsletter
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.95 ▲0.4945.93 ▲6.22
Dashboard /wp-admin3.79 ▲0.4848.20 ▼0.94
Posts /wp-admin/edit.php3.90 ▲0.5456.00 ▲8.55
Add New Post /wp-admin/post-new.php6.37 ▲0.4888.06 ▼16.01
Media Library /wp-admin/upload.php3.71 ▲0.4839.97 ▲3.52
Mailing List /wp-admin/admin.php?page=bft_list3.6539.34
Settings /wp-admin/admin.php?page=bft_options3.8349.69
Send Newsletter /wp-admin/admin.php?page=bft_newsletter3.6936.35
Webhooks / Zapier /wp-admin/admin.php?page=bft_webhooks3.6638.19
Import/Export /wp-admin/admin.php?page=bft_import3.7137.19
Integrate in Contact Form /wp-admin/admin.php?page=bft_integrate_contact3.6936.28
Help /wp-admin/admin.php?page=bft_help3.7236.12
Raw Email Log /wp-admin/admin.php?page=bft_log3.7136.78
Configure Email Message /wp-admin/admin.php?page=bft_messages_config3.6534.95
Email Messages /wp-admin/admin.php?page=bft_messages3.7844.25

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 46 new files
Database: 8 new tables, 13 new options
New tables
wp_bft_attachments
wp_bft_mails
wp_bft_unsubs
wp_bft_emaillog
wp_bft_webhooks
wp_bft_newsletters
wp_bft_sentmails
wp_bft_users
New WordPress options
bft_hooked_up
widget_theysaidso_widget
bft_last_start
widget_recent-posts
bft_db_version
bft_current_status
bft_date
widget_recent-comments
theysaidso_admin_options
db_upgraded
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Arigato Autoresponder and Newsletter
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,851 ▲8914.31 ▼0.031.74 ▲0.0342.70 ▲0.15
Dashboard /wp-admin2,254 ▲795.64 ▲0.0293.24 ▼24.0240.17 ▼6.09
Posts /wp-admin/edit.php2,159 ▲592.01 ▲0.0740.80 ▲3.8536.62 ▲5.62
Add New Post /wp-admin/post-new.php1,577 ▲5123.21 ▲0.02675.04 ▼36.6051.79 ▲2.23
Media Library /wp-admin/upload.php1,456 ▲594.18 ▲0.03100.62 ▲0.5041.63 ▼0.09
Mailing List /wp-admin/admin.php?page=bft_list1,3901.9733.7332.98
Settings /wp-admin/admin.php?page=bft_options2,3086.47130.3354.24
Send Newsletter /wp-admin/admin.php?page=bft_newsletter1,7786.49123.2158.15
Webhooks / Zapier /wp-admin/admin.php?page=bft_webhooks8372.0023.9426.38
Import/Export /wp-admin/admin.php?page=bft_import1,1272.1323.7036.22
Integrate in Contact Form /wp-admin/admin.php?page=bft_integrate_contact1,1391.9723.0032.74
Help /wp-admin/admin.php?page=bft_help1,1801.9724.6027.55
Raw Email Log /wp-admin/admin.php?page=bft_log1,0882.0324.8133.68
Configure Email Message /wp-admin/admin.php?page=bft_messages_config1,5826.46123.9044.94
Email Messages /wp-admin/admin.php?page=bft_messages2,1106.57129.5950.37

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 4 tables in the database
    • wp_bft_webhooks
    • wp_bft_attachments
    • wp_bft_newsletters
    • wp_bft_unsubs
  • This plugin does not fully uninstall, leaving 12 options in the database
    • bft_hooked_up
    • db_upgraded
    • bft_date
    • bft_lock_tables
    • widget_recent-posts
    • bft_webhooks
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • bft_last_start
    • bft_current_status
    • ...

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=bft_list
    • > Notice in wp-content/plugins/bft-autoresponder/controllers/list.php+79
    Undefined index: ob
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=bft_newsletter
    • > Notice in wp-content/plugins/bft-autoresponder/views/newsletter.html.php+23
    Undefined variable: nl
    • > GET request to /wp-admin/admin.php?page=bft_newsletter
    • > Notice in wp-content/plugins/bft-autoresponder/views/newsletter.html.php+18
    Trying to get property 'subject' of non-object
    • > GET request to /wp-admin/admin.php?page=bft_newsletter
    • > Notice in wp-content/plugins/bft-autoresponder/views/newsletter.html.php+23
    Trying to get property 'message' of non-object
    • > GET request to /wp-admin/admin.php?page=bft_integrate_contact
    • > Notice in wp-content/plugins/bft-autoresponder/views/integration-contact-form.html.php+16
    Undefined index: classes
    • > GET request to /wp-admin/admin.php?page=bft_integrate_contact
    • > Notice in wp-content/plugins/bft-autoresponder/views/integration-contact-form.html.php+21
    Undefined index: html_id
    • > GET request to /wp-admin/admin.php?page=bft_messages_config
    • > Notice in wp-content/plugins/bft-autoresponder/controllers/config.php+5
    Undefined index: msg

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 fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/bft-autoresponder/cron-start.php
  • 22× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: newsletter in wp-content/plugins/bft-autoresponder/views/view-archived-newsletter.html.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function home_url() in wp-content/plugins/bft-autoresponder/views/signup-form.html.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_query_arg() in wp-content/plugins/bft-autoresponder/views/view-archived-newsletter.html.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/bft-autoresponder/views/help.html.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bft_resp_table_css() in wp-content/plugins/bft-autoresponder/views/raw-email-log.html.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/bft-autoresponder/views/integration-wpforms.html.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/bft-autoresponder/views/list-user.html.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/bft-autoresponder/views/integration-ninja-form.html.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/bft-autoresponder/views/message-config.html.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/bft-autoresponder/views/unsubscribe.html.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: autoresponder, auto responder, wpmu, mailing list, contact form...

bft-autoresponder/bft-autoresponder.php 85% from 13 tests

"Arigato Autoresponder and Newsletter" version 2.7.2.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 188 characters long)
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
No dangerous file extensions were detected4,368 lines of code in 43 files:
LanguageFilesBlank linesComment linesLines of code
PHP407563353,311
CSS31501241,057

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity22.62
▷ Minimum class complexity1.00
▷ Maximum class complexity91.00
Average method complexity6.41
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods32
▷ Static methods2784.38%
▷ Public methods3196.88%
▷ Protected methods00.00%
▷ Private methods13.12%
Functions41
▷ Named functions41100.00%
▷ Anonymous functions00.00%
Constants16
▷ Global constants16100.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
No PNG images were found in this plugin