79% fast-mailerlite

Code Review | Fast MailerLite

WordPress plugin Fast MailerLite scored79%from 54 tests.

About plugin

  • Plugin page: fast-mailerlite
  • Plugin version: 1.1.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Nov 20, 2019
  • Latest release: Aug 10, 2023
  • Number of updates: 12
  • Update frequency: every 113.3 days
  • Top authors: fastflow (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /3,830 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼10.17ms] Passed 4 tests

Analyzing server-side resources used by Fast MailerLite
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.88 ▲0.1545.24 ▼1.75
Dashboard /wp-admin3.77 ▲0.1451.01 ▼20.09
Posts /wp-admin/edit.php3.82 ▲0.1456.08 ▲2.58
Add New Post /wp-admin/post-new.php6.29 ▲0.1483.07 ▼20.84
Media Library /wp-admin/upload.php3.63 ▲0.1441.13 ▲2.02

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Fast MailerLite
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,854 ▲8314.36 ▲0.222.07 ▼0.6235.53 ▼9.40
Dashboard /wp-admin2,217 ▲405.55 ▼0.1399.94 ▼3.7247.93 ▲2.09
Posts /wp-admin/edit.php2,128 ▲282.01 ▼0.0344.24 ▲4.7642.14 ▲4.22
Add New Post /wp-admin/post-new.php1,392 ▼14420.75 ▼2.50571.54 ▼92.0336.48 ▼23.14
Media Library /wp-admin/upload.php1,422 ▲254.18 ▼0.08100.71 ▼3.1443.41 ▼1.94

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/fast-mailerlite/fast-mailerlite-webhook.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > WordPress database error Table 'potrivit.wp_fastflow_settings' doesn't exist for query SELECT * FROM wp_fastflow_settings WHERE settings_for='Mailer Lite' made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/fast-mailerlite/fast-mailerlite.php'), FastMailerLite->__construct, FastMailerLite->fast_mailerlite_apikey, FastMailerLite->fast_mailerlite_settings_db
    • >

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: mailer lite, marketing automation, mailerlite, email automation, email marketing

fast-mailerlite/fast-mailerlite.php Passed 13 tests

"Fast MailerLite" version 1.1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
30 characters long description:
MailerLite addon for Fast Flow

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
Success! There were no dangerous files found in this plugin665 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24914665

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity95.00
▷ Minimum class complexity95.00
▷ Maximum class complexity95.00
Average method complexity4.03
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods31
▷ Static methods00.00%
▷ Public methods31100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin