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

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

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

About plugin

  • Plugin page: add-on-contact-fo...
  • Plugin version: 1.3.20
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.1
  • WordPress version: 6.3.1
  • First release: Sep 14, 2017
  • Latest release: Nov 17, 2022
  • Number of updates: 42
  • Update frequency: every 45.0 days
  • Top authors: ehsantikweb (76.19%)Kasperta (26.19%)

Code review

54 tests

User reviews

11 reviews

Install metrics

6,000+ active /72,532 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

Analyzing server-side resources used by Add-on Contact Form 7 - MailPoet 3
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.16 ▼5.50
Dashboard /wp-admin3.31 ▲0.0153.28 ▲7.20
Posts /wp-admin/edit.php3.36 ▲0.0049.26 ▲0.66
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.81 ▲1.21
Media Library /wp-admin/upload.php3.23 ▲0.0036.53 ▲3.07

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Add-on Contact Form 7 - MailPoet 3
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲6613.13 ▼1.622.11 ▲0.4740.01 ▲1.49
Dashboard /wp-admin2,215 ▲274.86 ▼0.02111.26 ▼7.1343.97 ▼1.66
Posts /wp-admin/edit.php2,104 ▲152.05 ▲0.0639.34 ▼2.5836.40 ▼1.42
Add New Post /wp-admin/post-new.php1,547 ▲1923.40 ▲0.23648.09 ▲7.0459.68 ▲11.67
Media Library /wp-admin/upload.php1,403 ▲154.19 ▼0.0396.32 ▲2.1142.33 ▲1.74

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files

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

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 19 tag instead of maximum 10
  • Screenshots: A description for screenshot #4 is missing in add-on-contact-form-7-mailpoet/assets to your readme.txt
You can look at the official readme.txt

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

Analyzing the main PHP file in "Add-on Contact Form 7 - MailPoet 3" version 1.3.20
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 considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,034 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP92662821,034

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity21.80
▷ Minimum class complexity5.00
▷ Maximum class complexity67.00
Average method complexity3.89
▷ Minimum method complexity1.00
▷ Maximum method complexity52.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

All PNG images should be compressed to minimize bandwidth usage for end users
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-2.png77.53KB23.15KB▼ 70.14%
assets/screenshot-3.png84.53KB26.18KB▼ 69.03%
assets/screenshot-4.png46.24KB13.66KB▼ 70.47%
assets/screenshot-1.png107.88KB30.97KB▼ 71.29%