83% guten-forms-mailchimp

Code Review | Guten Forms Add-on for Mailchimp

WordPress plugin Guten Forms Add-on for Mailchimp scored83%from 54 tests.

About plugin

  • Plugin page: guten-forms-mailc...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 6.3.1
  • First release: Jul 15, 2020
  • Latest release: May 19, 2022
  • Number of updates: 6
  • Update frequency: every 112.2 days
  • Top authors: munirkamal (50%)giucu91 (50%)Jack Kitterhing (33.33%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,597 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.09MB] [CPU: ▼5.84ms] Passed 4 tests

A check of server-side resources used by Guten Forms Add-on for Mailchimp
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0938.99 ▼7.03
Dashboard /wp-admin3.40 ▲0.0951.69 ▲1.41
Posts /wp-admin/edit.php3.45 ▲0.0947.32 ▼2.39
Add New Post /wp-admin/post-new.php5.98 ▲0.0987.33 ▼15.34
Media Library /wp-admin/upload.php3.32 ▲0.0940.09 ▲2.61

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Guten Forms Add-on for Mailchimp
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.22 ▼0.501.76 ▲0.0940.43 ▼4.90
Dashboard /wp-admin2,195 ▲215.62 ▲0.0287.62 ▼2.3338.90 ▼3.77
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0035.20 ▲0.3736.04 ▲4.37
Add New Post /wp-admin/post-new.php1,526 ▼023.02 ▼0.16677.32 ▼18.1255.67 ▲0.52
Media Library /wp-admin/upload.php1,394 ▼34.16 ▼0.0398.98 ▼12.9543.33 ▼3.56

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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 fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/guten-forms-mailchimp/dist/init.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/guten-forms-mailchimp/plugin.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Tags: Please delete some tags, you are using 26 tag instead of maximum 10
  • Screenshots: Add images for these screenshots: #1 (WordPress Form Builder Plugin - Gutenberg Forms), #2 (Adding New Field), #3 (Rearrange Form Fields via Drag & Drop or Up & Down buttons.), #4 (Form Settings), #5 (Email Builder), #6 (Form Styles)
You can take inspiration from this readme.txt

guten-forms-mailchimp/plugin.php 77% from 13 tests

The primary PHP file in "Guten Forms Add-on for Mailchimp" version 1.0.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("guten-forms-mailchimp.php" instead of "plugin.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Description: Please keep the plugin description shorter than 140 characters (currently 144 characters long)

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
Success! There were no dangerous files found in this plugin320 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP39512201
JSON10062
HTML112233
Markdown122024

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity3.88
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected