84% add-on-gravity-forms-mailpoet

Code Review | Add-on Gravity Forms - MailPoet 3

WordPress plugin Add-on Gravity Forms - MailPoet 3 scored84%from 54 tests.

About plugin

  • Plugin page: add-on-gravity-fo...
  • Plugin version: 1.1.14
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.5.1
  • WordPress version: 6.3.1
  • First release: Sep 14, 2017
  • Latest release: Oct 1, 2020
  • Number of updates: 26
  • Update frequency: every 42.8 days
  • Top authors: ehsantikweb (88.46%)Kasperta (15.38%)

Code review

54 tests

User reviews

6 reviews

Install metrics

2,000+ active /19,930 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Add-on Gravity Forms - MailPoet 3
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0033.82 ▼3.12
Dashboard /wp-admin3.31 ▲0.0143.57 ▼1.17
Posts /wp-admin/edit.php3.36 ▲0.0042.47 ▼4.78
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.52 ▼13.90
Media Library /wp-admin/upload.php3.23 ▲0.0033.09 ▼4.92

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Add-on Gravity Forms - MailPoet 3: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲9113.25 ▼1.131.73 ▼0.0538.04 ▼1.40
Dashboard /wp-admin2,218 ▲305.84 ▼0.0298.91 ▼3.7940.76 ▼0.60
Posts /wp-admin/edit.php2,101 ▲122.02 ▲0.0133.09 ▼0.7933.54 ▼1.43
Add New Post /wp-admin/post-new.php1,551 ▲1523.01 ▲0.00662.14 ▲2.0055.69 ▼2.89
Media Library /wp-admin/upload.php1,397 ▲94.25 ▲0.0697.43 ▼6.7641.59 ▼3.53

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'GFForms' not found in wp-content/plugins/add-on-gravity-forms-mailpoet/class-gfnewmailpoetaddon.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'GF_Field' not found in wp-content/plugins/add-on-gravity-forms-mailpoet/mailpoet-fields.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: Please delete some tags, you are using 21 tag instead of maximum 10
  • Screenshots: Screenshot #1 (No screenshots yet.) image not found
Please take inspiration from this readme.txt

add-on-gravity-forms-mailpoet/add-on-gravity-forms-mailpoet.php Passed 13 tests

The entry point to "Add-on Gravity Forms - MailPoet 3" version 1.1.14 is a PHP file that has certain tags in its header comment area
52 characters long description:
Add a MailPoet 3 signup field to your Gravity 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
Success! There were no dangerous files found in this plugin1,157 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP7287206826
PO File2128208331

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity15.50
▷ Minimum class complexity2.00
▷ Maximum class complexity34.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods29
▷ Static methods1034.48%
▷ Public methods2793.10%
▷ Protected methods00.00%
▷ Private methods26.90%
Functions12
▷ Named functions1083.33%
▷ Anonymous functions216.67%
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
6 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/stop.png0.68KB0.78KB0.00%
images/remove.png3.32KB0.62KB▼ 81.33%
images/active0.png0.65KB0.61KB▼ 5.56%
images/add.png3.37KB0.66KB▼ 80.54%
images/tick.png0.52KB0.52KB0.00%