74% fluent-connect

Code Review | Fluent Connect - Connect ThriveCart with your WordPress and FluentCRM

WordPress plugin Fluent Connect - Connect ThriveCart with your WordPress and FluentCRM scored74%from 54 tests.

About plugin

  • Plugin page: fluent-connect
  • Plugin version: 0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Oct 25, 2021
  • Latest release: Sep 23, 2023
  • Number of updates: 3
  • Update frequency: every 234.3 days
  • Top authors: wpmanageninja (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /2,709 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.21MB] [CPU: ▼6.92ms] Passed 4 tests

This is a short check of server-side resources used by Fluent Connect - Connect ThriveCart with your WordPress and FluentCRM
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2137.89 ▼5.46
Dashboard /wp-admin3.51 ▲0.1752.56 ▼17.58
Posts /wp-admin/edit.php3.62 ▲0.2749.81 ▼1.60
Add New Post /wp-admin/post-new.php6.15 ▲0.2791.68 ▼3.02
Media Library /wp-admin/upload.php3.43 ▲0.2139.05 ▲2.81

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 185 new files
Database: 7 new tables, 6 new options
New tables
wp_fcon_connector_feeds
wp_fcon_action_logs
wp_fcon_feed_actions
wp_fcon_feed_triggers
wp_fcon_feed_runners
wp_fcon_meta
wp_fcon_integrations
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Fluent Connect - Connect ThriveCart with your WordPress and FluentCRM
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲1514.70 ▲0.351.72 ▼0.5842.87 ▲3.42
Dashboard /wp-admin2,207 ▲305.50 ▼0.1683.01 ▼20.8641.06 ▼7.04
Posts /wp-admin/edit.php2,112 ▲92.03 ▲0.0237.44 ▼7.3937.82 ▲0.78
Add New Post /wp-admin/post-new.php1,536 ▲122.88 ▲4.85660.80 ▲19.4552.14 ▼8.74
Media Library /wp-admin/upload.php1,412 ▲214.23 ▼0.01100.91 ▼1.2947.23 ▲1.81

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The plugin did not uninstall successfully, leaving 7 tables in the database
    • wp_fcon_action_logs
    • wp_fcon_feed_triggers
    • wp_fcon_meta
    • wp_fcon_feed_actions
    • wp_fcon_connector_feeds
    • wp_fcon_feed_runners
    • wp_fcon_integrations
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
Please fix the following items
  • 67× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'FluentConnect\\Framework\\Database\\Orm\\Relations\\Pivot' not found in wp-content/plugins/fluent-connect/vendor/wpfluent/framework/src/WPFluent/Database/Orm/Relations/MorphPivot.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'FluentConnect\\App\\Http\\Controllers\\Controller' not found in wp-content/plugins/fluent-connect/app/Http/Controllers/IntegrationProviders.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'FluentConnect\\Framework\\Database\\ConnectionInterface' not found in wp-content/plugins/fluent-connect/vendor/wpfluent/framework/src/WPFluent/Database/Query/WPDBConnection.php:16
    • > PHP Fatal error
      Uncaught Error: Interface 'FluentConnect\\Framework\\Foundation\\ContainerContract' not found in wp-content/plugins/fluent-connect/vendor/wpfluent/framework/src/WPFluent/Foundation/Container.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'FluentConnect\\App\\Http\\Controllers\\Controller' not found in wp-content/plugins/fluent-connect/app/Http/Controllers/IntegrationController.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'FluentConnect\\App\\Http\\Controllers\\Controller' not found in wp-content/plugins/fluent-connect/app/Http/Controllers/LogsController.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'FluentConnect\\Framework\\Database\\Orm\\Model' not found in wp-content/plugins/fluent-connect/vendor/wpfluent/framework/src/WPFluent/Database/Orm/Relations/Pivot.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'FluentConnect\\Framework\\Foundation\\RequestGuard' not found in wp-content/plugins/fluent-connect/app/Http/Requests/UserRequest.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'FluentConnect\\Framework\\Database\\Orm\\Relations\\MorphOneOrMany' not found in wp-content/plugins/fluent-connect/vendor/wpfluent/framework/src/WPFluent/Database/Orm/Relations/MorphOne.php:7
    • > PHP Notice
      Undefined variable: router in wp-content/plugins/fluent-connect/app/Http/Routes/api.php on line 7

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, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes: You can take inspiration from this readme.txt

fluent-connect/fluent-connect.php Passed 13 tests

This is the main PHP file of "Fluent Connect - Connect ThriveCart with your WordPress and FluentCRM" version 0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
33 characters long description:
Connect FluentCRM with ThriveCart

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin14,644 lines of code in 167 files:
LanguageFilesBlank linesComment linesLines of code
PHP1584,28510,16414,483
JSON400144
SVG10013
JavaScript2012
CSS1001
Markdown1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity10.74
▷ Minimum class complexity1.00
▷ Maximum class complexity187.00
Average method complexity1.89
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces29
Interfaces16
Traits8
Classes116
▷ Abstract classes1210.34%
▷ Concrete classes10489.66%
▷ Final classes00.00%
Methods1,589
▷ Static methods18311.52%
▷ Public methods1,28180.62%
▷ Protected methods30419.13%
▷ Private methods40.25%
Functions104
▷ Named functions54.81%
▷ Anonymous functions9995.19%
Constants6
▷ Global constants466.67%
▷ Class constants233.33%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/thrivecart.png6.12KB6.35KB0.00%
assets/images/wordpress.png23.61KB14.30KB▼ 39.44%
assets/images/fluentcrm.png6.81KB2.84KB▼ 58.25%
assets/images/fluent-support-logo.png34.10KB13.66KB▼ 59.94%