68% wp-marketing-automations

Code Review | Recover WooCommerce Cart Abandonment, Newsletter, Email Marketing, Marketing Automation By FunnelKit

WordPress plugin Recover WooCommerce Cart Abandonment, Newsletter, Email Marketing, Marketing Automation By FunnelKit scored68%from 54 tests.

About plugin

  • Plugin page: wp-marketing-auto...
  • Plugin version: 2.7.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Nov 28, 2019
  • Latest release: Dec 2, 2023
  • Number of updates: 147
  • Update frequency: every 10.1 days
  • Top authors: amans2k (87.76%)amrt_tri (12.93%)

Code review

54 tests

User reviews

153 reviews

Install metrics

10,000+ active /217,748 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲2.07MB] [CPU: ▲9.07ms] Passed 4 tests

A check of server-side resources used by Recover WooCommerce Cart Abandonment, Newsletter, Email Marketing, Marketing Automation By FunnelKit
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /5.59 ▲2.1349.84 ▲9.29
Dashboard /wp-admin5.37 ▲2.0363.36 ▲1.82
Posts /wp-admin/edit.php5.43 ▲2.0762.08 ▲9.23
Add New Post /wp-admin/post-new.php8.14 ▲2.25114.69 ▲15.92
Media Library /wp-admin/upload.php5.30 ▲2.0752.15 ▲18.60
Automations Legacy /wp-admin/admin.php?page=autonami-automations5.0534.05
Email Setup /wp-admin/admin.php?page=autonami&path=/mail-setup6.0570.40
Automations /wp-admin/admin.php?page=autonami&path=/automations6.0567.83
Analytics /wp-admin/admin.php?page=autonami&path=/analytics6.0571.17
Settings /wp-admin/admin.php?page=autonami&path=/settings6.0569.22
Upgrade to Pro /wp-admin/admin.php?page=5.2646.81
Scheduled Actions /wp-admin/tools.php?page=action-scheduler5.4557.26
Dashboard /wp-admin/admin.php?page=autonami6.0569.57

Server storage [IO: ▲10.80MB] [DB: ▲0.04MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 1,123 new files
Database: 22 new tables, 17 new options
New tables
wp_bwfan_message_unsubscribe
wp_actionscheduler_logs
wp_wfco_report_views
wp_bwf_contact
wp_bwfan_automation_contact_trail
wp_actionscheduler_groups
wp_bwfan_automation_contact
wp_bwfan_abandonedcarts
wp_wfco_connectors
wp_actionscheduler_actions
...
New WordPress options
bwfan_ver_1_0
bwfan_db
db_upgraded
schema-ActionScheduler_StoreSchema
bwfan_u_key
can_compress_scripts
action_scheduler_hybrid_store_demarkation
widget_recent-posts
schema-ActionScheduler_LoggerSchema
_bwf_db_table_list
...

Browser metrics Passed 4 tests

An overview of browser requirements for Recover WooCommerce Cart Abandonment, Newsletter, Email Marketing, Marketing Automation By FunnelKit
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,878 ▲13114.60 ▲0.261.82 ▲0.2437.14 ▼0.14
Dashboard /wp-admin2,280 ▲1055.66 ▼0.0893.61 ▼38.9940.87 ▼5.36
Posts /wp-admin/edit.php2,192 ▲892.02 ▲0.0739.85 ▲0.8934.20 ▲3.04
Add New Post /wp-admin/post-new.php1,590 ▲5123.28 ▲0.21649.08 ▲25.7154.35 ▲1.93
Media Library /wp-admin/upload.php1,488 ▲884.23 ▲0.1698.40 ▲1.4642.99 ▲1.73
Automations Legacy /wp-admin/admin.php?page=autonami-automations280.410.073.76
Email Setup /wp-admin/admin.php?page=autonami&path=/mail-setup1,36717.28409.8139.99
Automations /wp-admin/admin.php?page=autonami&path=/automations1,29917.76381.6143.65
Analytics /wp-admin/admin.php?page=autonami&path=/analytics1,59618.79314.7646.47
Settings /wp-admin/admin.php?page=autonami&path=/settings2,19524.78352.1045.85
Upgrade to Pro /wp-admin/admin.php?page=8622.0123.7923.52
Scheduled Actions /wp-admin/tools.php?page=action-scheduler1,3131.8225.6333.08
Dashboard /wp-admin/admin.php?page=autonami1,72718.93319.4252.59

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 22 tables in the database
    • wp_bwfan_abandonedcarts
    • wp_bwfan_automation_contact
    • wp_actionscheduler_claims
    • wp_bwf_actions
    • wp_bwfan_automation_complete_contact
    • wp_actionscheduler_logs
    • wp_bwf_contact
    • wp_actionscheduler_groups
    • wp_bwf_wc_customers
    • wp_wfco_connectors
    • ...
  • This plugin does not fully uninstall, leaving 17 options in the database
    • bwfan_automation_v1
    • schema-ActionScheduler_StoreSchema
    • db_upgraded
    • theysaidso_admin_options
    • _bwf_db_table_list
    • widget_theysaidso_widget
    • bwfan_u_key
    • _bwf_upgrade_1_9_13
    • widget_recent-comments
    • bwfan_ver_1_0
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 fix the following
  • 378× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'BWFAN_API_Base' not found in wp-content/plugins/wp-marketing-automations/includes/api/automation/class-bwfan-api-get-rules.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'BWFAN_API_Base' not found in wp-content/plugins/wp-marketing-automations/includes/api/dashboard/class-bwfan-api-get-recent-abandoned.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'BWFAN_Model' not found in wp-content/plugins/wp-marketing-automations/includes/db/class-bwfan-model-automation-complete-contact.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'BWFAN_DB_Tables_Base' not found in wp-content/plugins/wp-marketing-automations/includes/db/tables/class-bwfan-db-table-automations.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_SimpleSchedule' not found in wp-content/plugins/wp-marketing-automations/libraries/action-scheduler/classes/schedules/ActionScheduler_CanceledSchedule.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'BWFAN_Merge_Tag' not found in wp-content/plugins/wp-marketing-automations/includes/merge_tags/class-bwfan-wc-order-confirmation-page-link.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Logger' not found in wp-content/plugins/wp-marketing-automations/libraries/action-scheduler-ct/logs-store.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-marketing-automations/woofunnels/connector/class-wfco-ajax-controller.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'BWFAN_API_Base' not found in wp-content/plugins/wp-marketing-automations/includes/api/carts/class-bwfan-api-get-recoverable-carts.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'BWFAN_API_Base' not found in wp-content/plugins/wp-marketing-automations/includes/api/autonami/class-bwfan-api-execute-automation-tasks.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=autonami-automations
    • > Network (severe)
    wp-admin/admin.php?page=autonami-automations - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: email customizer, email marketing, crm, marketing automation, newsletter...

wp-marketing-automations/wp-marketing-automations.php 92% from 13 tests

"Recover WooCommerce Cart Abandonment, Newsletter, Email Marketing, Marketing Automation By FunnelKit" version 2.7.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 150 characters long)

Code Analysis 97% from 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
Good job! No executable or dangerous file extensions detected88,292 lines of code in 767 files:
LanguageFilesBlank linesComment linesLines of code
PHP58617,43221,31775,965
JavaScript978942095,183
CSS53616854,612
JSON4102,175
HTML15120165
SVG2503122
Markdown122070

PHP code 50% from 2 tests

Analyzing cyclomatic complexity and code structure
These items need your attention
  • Class cyclomatic complexity should be reduced to less than 1000 (currently 1,194)
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity20.43
▷ Minimum class complexity1.00
▷ Maximum class complexity1,194.00
Average method complexity3.21
▷ Minimum method complexity1.00
▷ Maximum method complexity54.00
Code structure
Namespaces5
Interfaces3
Traits0
Classes577
▷ Abstract classes376.41%
▷ Concrete classes54093.59%
▷ Final classes254.63%
Methods4,924
▷ Static methods1,25925.57%
▷ Public methods4,46390.64%
▷ Protected methods2745.56%
▷ Private methods1873.80%
Functions224
▷ Named functions8136.16%
▷ Anonymous functions14363.84%
Constants86
▷ Global constants2529.07%
▷ Class constants6170.93%
▷ Public constants61100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
270 compressed PNG files occupy 0.17MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/img/flags/ru.png0.12KB0.12KB0.00%
admin/assets/img/flags/ly.png0.14KB0.14KB0.00%
admin/assets/img/flags/si.png0.18KB0.19KB0.00%
admin/assets/img/flags/au.png0.30KB0.30KB0.32%
admin/assets/img/flags/cn.png0.19KB0.19KB0.00%