99% add-on-contact-form-7-mailpoet

Code Review | Add-on Contact Form 7 - MailPoet 3

WordPress plugin Add-on Contact Form 7 - MailPoet 3 scored 99% from 54 tests.

About plugin

  • Plugin page: add-on-contact-fo...
  • Plugin version: 1.3.19
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.5.1
  • WordPress version: 5.9.2
  • First release: Sep 14, 2017
  • Latest release: Jun 21, 2021
  • Number of updates: 41
  • Update frequency: every 33.6 days
  • Top authors: ehsantikweb (75.61%)Kasperta (26.83%)

Code review

54 tests

User reviews

10 reviews

Install metrics

6,000+ active / 60,539 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼298.42ms] Passed 4 tests

Server-side resources used by Add-on Contact Form 7 - MailPoet 3
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0256.27 ▲6.47
Dashboard /wp-admin3.42 ▲0.0133.91 ▼1.97
Posts /wp-admin/edit.php3.65 ▲0.0137.41 ▼4.92
Add New Post /wp-admin/post-new.php6.89 ▼0.0895.72 ▼1,186.54
Media Library /wp-admin/upload.php3.30 ▲0.0124.90 ▼0.24

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Add-on Contact Form 7 - MailPoet 3
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,783 ▲3915.60 ▼0.186.18 ▼0.622.99 ▲0.44
Dashboard /wp-admin2,908 ▲536.13 ▼0.01137.07 ▼15.67198.78 ▼15.59
Posts /wp-admin/edit.php2,711 ▲173.24 ▼0.1164.07 ▼1.19144.16 ▼2.55
Add New Post /wp-admin/post-new.php1,672 ▼6515.75 ▼1.66410.96 ▼20.77172.59 ▲17.75
Media Library /wp-admin/upload.php1,715 ▲235.53 ▲0.04146.08 ▼3.90193.87 ▼55.05

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes: You can look at the official readme.txt

add-on-contact-form-7-mailpoet/add-on-contact-form-7-mailpoet.php Passed 13 tests

The primary PHP file in "Add-on Contact Form 7 - MailPoet 3" version 1.3.19 is used by WordPress to initiate all plugin functionality
59 characters long description:
Add a MailPoet 3 signup field to your Contact Form 7 forms.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected998 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP9279276998

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity21.40
▷ Minimum class complexity5.00
▷ Maximum class complexity65.00
Average method complexity3.83
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods36
▷ Static methods513.89%
▷ Public methods36100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions466.67%
▷ Anonymous functions233.33%
Constants1
▷ Global constants1100.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
4 PNG files occupy 0.31MB with 0.22MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-4.png46.24KB13.66KB▼ 70.47%
assets/screenshot-2.png77.53KB23.15KB▼ 70.14%
assets/screenshot-1.png107.88KB30.97KB▼ 71.29%
assets/screenshot-3.png84.53KB26.18KB▼ 69.03%