84% fluent-forms-connector-for-mailpoet

Code Review | Fluent Forms Connector for MailPoet

WordPress plugin Fluent Forms Connector for MailPoet scored84%from 54 tests.

About plugin

  • Plugin page: fluent-forms-conn...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Jun 24, 2020
  • Latest release: Jun 22, 2023
  • Number of updates: 7
  • Update frequency: every 157.1 days
  • Top authors: techjewel (57.14%)adreastrian (57.14%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active /10,498 total downloads

Benchmarks

Plugin footprint 83% 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.01MB] [CPU: ▼5.11ms] Passed 4 tests

An overview of server-side resources used by Fluent Forms Connector for MailPoet
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0140.80 ▲4.55
Dashboard /wp-admin3.32 ▲0.0145.21 ▼0.04
Posts /wp-admin/edit.php3.37 ▲0.0140.41 ▼1.97
Add New Post /wp-admin/post-new.php5.90 ▲0.0177.81 ▼22.96
Media Library /wp-admin/upload.php3.24 ▲0.0139.00 ▲6.17

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
fluentform_global_modules_status
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Fluent Forms Connector for MailPoet
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.39 ▼0.142.18 ▲0.5448.67 ▲6.23
Dashboard /wp-admin2,198 ▲175.55 ▼0.1686.98 ▼10.7541.09 ▲0.35
Posts /wp-admin/edit.php2,106 ▲62.03 ▲0.0134.59 ▼1.8735.04 ▼4.32
Add New Post /wp-admin/post-new.php1,532 ▲623.66 ▲0.68661.05 ▲3.4446.83 ▲0.50
Media Library /wp-admin/upload.php1,406 ▲94.26 ▼0.01109.27 ▲8.4747.52 ▲0.20

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • fluentform_global_modules_status
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'FluentForm\\App\\Http\\Controllers\\IntegrationManagerController' not found in wp-content/plugins/fluent-forms-connector-for-mailpoet/Integrations/Bootstrap.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed: The official readme.txt is a good inspiration

fluent-forms-connector-for-mailpoet/fluent-forms-connector-for-mailpoet.php 92% from 13 tests

"Fluent Forms Connector for MailPoet" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin304 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP36032304

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity8.50
▷ Minimum class complexity7.00
▷ Maximum class complexity10.00
Average method complexity1.88
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods952.94%
▷ Protected methods847.06%
▷ Private methods00.00%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/mailpoet.png29.74KB8.23KB▼ 72.31%