68% fusewp

Code Review | FuseWP - WordPress User Sync to Email List & Marketing Automation (Mailchimp, Constant Contact, ActiveCampaign etc.)

WordPress plugin FuseWP - WordPress User Sync to Email List & Marketing Automation (Mailchimp, Constant Contact, ActiveCampaign etc.) scored68%from 54 tests.

About plugin

  • Plugin page: fusewp
  • Plugin version: 1.1.7.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.4
  • WordPress version: 6.3.1
  • First release: Jun 8, 2023
  • Latest release: Dec 1, 2023
  • Number of updates: 32
  • Update frequency: every 5.5 days
  • Top authors: Collizo4sky (78.13%)fusewp (25%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active /7,548 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲1.60MB] [CPU: ▼0.87ms] Passed 4 tests

An overview of server-side resources used by FuseWP - WordPress User Sync to Email List & Marketing Automation (Mailchimp, Constant Contact, ActiveCampaign etc.)
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.77 ▲1.3146.29 ▲5.97
Dashboard /wp-admin4.99 ▲1.6554.01 ▼11.03
Posts /wp-admin/edit.php5.09 ▲1.7358.20 ▲7.61
Add New Post /wp-admin/post-new.php7.70 ▲1.8290.08 ▼6.04
Media Library /wp-admin/upload.php4.95 ▲1.7245.36 ▲13.18
Settings /wp-admin/admin.php?page=fusewp-settings4.8542.42
User Sync /wp-admin/admin.php?page=fusewp-sync4.9545.53

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 328 new files
Database: 2 new tables, 9 new options
New tables
wp_fusewp_sync
wp_fusewp_sync_log
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
fusewp_db_ver
can_compress_scripts
db_upgraded
fusewp_install_date
widget_theysaidso_widget
fusewp_plugin_activated

Browser metrics Passed 4 tests

FuseWP - WordPress User Sync to Email List & Marketing Automation (Mailchimp, Constant Contact, ActiveCampaign etc.): an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲9414.55 ▲0.201.74 ▲0.1339.69 ▼3.32
Dashboard /wp-admin2,249 ▲745.66 ▲0.0393.34 ▼14.1942.39 ▲1.60
Posts /wp-admin/edit.php2,161 ▲612.21 ▲0.2539.75 ▲1.7339.21 ▲5.27
Add New Post /wp-admin/post-new.php1,555 ▲2923.32 ▲0.13568.82 ▼109.8455.40 ▲8.38
Media Library /wp-admin/upload.php1,458 ▲644.30 ▲0.1797.10 ▲1.1741.20 ▼1.26
Settings /wp-admin/admin.php?page=fusewp-settings1,3902.8553.1375.16
User Sync /wp-admin/admin.php?page=fusewp-sync1,3352.7457.2446.79

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
You still need to fix the following
  • The uninstall procedure failed, leaving 2 tables in the database
    • wp_fusewp_sync_log
    • wp_fusewp_sync
  • This plugin does not fully uninstall, leaving 9 options in the database
    • fusewp_plugin_activated
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • fusewp_install_date
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • fusewp_db_ver

Smoke tests 50% 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
    • > GET request to /wp-admin/admin.php?page=fusewp-settings
    • > Notice in wp-content/plugins/fusewp/src/core/src/Functions/CustomSettingsPageApi.php+610
    Undefined index: description
    • > GET request to /wp-admin/admin.php?page=fusewp-settings
    • > Notice in wp-content/plugins/fusewp/src/core/src/Functions/CustomSettingsPageApi.php+984
    Undefined index: default_value

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 193× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Authifly\\Logger\\LoggerInterface' not found in wp-content/plugins/fusewp/vendor/authifly/src/Logger/Logger.php:16
    • > PHP Fatal error
      Uncaught Error: Interface 'Authifly\\Exception\\ExceptionInterface' not found in wp-content/plugins/fusewp/vendor/authifly/src/Exception/Exception.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'FuseWP\\Core\\Integrations\\AbstractIntegration' not found in wp-content/plugins/fusewp/src/core/src/Integrations/Aweber/Aweber.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'FuseWP\\Core\\Integrations\\AbstractSyncAction' not found in wp-content/plugins/fusewp/src/core/src/Integrations/Brevo/SyncAction.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Authifly\\Adapter\\OAuth2' not found in wp-content/plugins/fusewp/vendor/authifly/Infusionsoft.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Authifly\\Adapter\\OAuth2' not found in wp-content/plugins/fusewp/vendor/authifly/Salesforce.php:15
    • > PHP Fatal error
      Uncaught Error: Interface 'Authifly\\HttpClient\\HttpClientInterface' not found in wp-content/plugins/fusewp/vendor/authifly/src/HttpClient/Guzzle.php:34
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/fusewp/vendor/composer/installers/src/Composer/Installers/JoomlaInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'FuseWP\\Core\\Integrations\\AbstractOauthAdminSettingsPage' not found in wp-content/plugins/fusewp/src/core/src/Integrations/ConstantContact/AdminSettingsPage.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/fusewp/vendor/composer/installers/src/Composer/Installers/TaoInstaller.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: A description for screenshot #3 is required in fusewp/assets to your readme.txt
You can take inspiration from this readme.txt

fusewp/fusewp.php Passed 13 tests

This is the main PHP file of "FuseWP - WordPress User Sync to Email List & Marketing Automation (Mailchimp, Constant Contact, ActiveCampaign etc.)" version 1.1.7.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
59 characters long description:
Connect WordPress to your email marketing software and CRM.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected18,129 lines of code in 285 files:
LanguageFilesBlank linesComment linesLines of code
PHP2524,5815,93315,984
CSS413113737
JSON500605
JavaScript811045368
YAML5493190
Bourne Shell12111120
Markdown224045
SVG50143
XML20036
HTML1001

PHP code Passed 2 tests

An short overview of 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 complexity8.14
▷ Minimum class complexity1.00
▷ Maximum class complexity99.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces32
Interfaces9
Traits1
Classes222
▷ Abstract classes135.86%
▷ Concrete classes20994.14%
▷ Final classes31.44%
Methods996
▷ Static methods888.84%
▷ Public methods82482.73%
▷ Protected methods14714.76%
▷ Private methods252.51%
Functions91
▷ Named functions4347.25%
▷ Anonymous functions4852.75%
Constants52
▷ Global constants1936.54%
▷ Class constants3363.46%
▷ Public constants33100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
src/core/src/assets/images/constantcontact-integration.png1.45KB1.45KB0.00%
src/core/src/assets/images/sendy-integration.png2.44KB2.44KB0.00%
src/core/src/assets/images/mailchimp-integration.png1.87KB1.87KB0.00%
src/core/src/assets/images/hubspot-integration.png1.14KB1.14KB0.00%
src/core/src/assets/images/activecampaign-integration.png0.58KB0.58KB0.00%