83% mailercloud-integrate-webforms-synchronize-contacts

Code Review | Mailercloud - Integrate webforms and synchronize website contacts

WordPress plugin Mailercloud - Integrate webforms and synchronize website contacts scored83%from 54 tests.

About plugin

  • Plugin page: mailercloud-integ...
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.2.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2.1
  • WordPress version: 6.3.1
  • First release: Oct 8, 2021
  • Latest release: Nov 3, 2023
  • Number of updates: 15
  • Update frequency: every 50.4 days
  • Top authors: mailercloud (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,423 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.23MB] [CPU: ▼4.86ms] Passed 4 tests

Analyzing server-side resources used by Mailercloud - Integrate webforms and synchronize website contacts
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2438.36 ▼5.36
Dashboard /wp-admin3.54 ▲0.1947.45 ▼17.01
Posts /wp-admin/edit.php3.65 ▲0.3046.38 ▲0.97
Add New Post /wp-admin/post-new.php6.12 ▲0.2482.71 ▲1.95
Media Library /wp-admin/upload.php3.46 ▲0.2341.45 ▲5.50
Contact Sync /wp-admin/admin.php?page=mailercloud-subscriber-synchronisation3.4832.60
Forms /wp-admin/admin.php?page=mailercloud-signup-form-listing3.4333.78
Settings /wp-admin/admin.php?page=mailercloud-settings-page3.4430.87

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 29 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_mailer_widget

Browser metrics Passed 4 tests

Checking browser requirements for Mailercloud - Integrate webforms and synchronize website contacts
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲7514.25 ▼0.161.55 ▼0.2047.05 ▲2.23
Dashboard /wp-admin2,225 ▲445.57 ▼0.1489.07 ▼24.0374.58 ▲30.93
Posts /wp-admin/edit.php2,127 ▲272.00 ▼0.0234.45 ▲0.1135.18 ▼1.84
Add New Post /wp-admin/post-new.php1,721 ▲19224.72 ▲1.50676.35 ▼28.6041.63 ▼21.84
Media Library /wp-admin/upload.php1,424 ▲214.13 ▼0.0399.08 ▲2.8870.04 ▲28.03
Contact Sync /wp-admin/admin.php?page=mailercloud-subscriber-synchronisation1,5741.9026.0735.37
Forms /wp-admin/admin.php?page=mailercloud-signup-form-listing8371.9127.1728.22
Settings /wp-admin/admin.php?page=mailercloud-settings-page8691.9124.1528.13

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_mailer_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mailercloud-integrate-webforms-synchronize-contacts/blocks/mailercloud-forms.php:149

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% 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
Attributes that require attention:
  • Donate link: Invalid URI found ("")
You can take inspiration from this readme.txt

mailercloud-integrate-webforms-synchronize-contacts/mailercloud.php 77% from 13 tests

The primary PHP file in "Mailercloud - Integrate webforms and synchronize website contacts" version 1.0.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("mailercloud-integrate-webforms-synchronize-contacts.php" instead of "mailercloud.php")
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected8,648 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript71,4905055,108
CSS5108281,783
PHP81872521,731
JSON21017
SVG1009

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity64.00
▷ Minimum class complexity13.00
▷ Maximum class complexity115.00
Average method complexity5.85
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods26
▷ Static methods00.00%
▷ Public methods26100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/icon.png1.60KB1.06KB▼ 33.68%