88% acymailing-integration-for-gravity-forms

Code Review | Gravity Forms integration - AcyMailing

WordPress plugin Gravity Forms integration - AcyMailing scored 88% from 54 tests.

About plugin

  • Plugin page: acymailing-integr...
  • Plugin version: 1.5
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9.2
  • WordPress version: 5.9.2
  • First release: Oct 10, 2020
  • Latest release: Mar 21, 2022
  • Number of updates: 8
  • Update frequency: every 66.0 days
  • Top authors: acyba (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 763 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

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

Analyzing server-side resources used by Gravity Forms integration - AcyMailing
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0255.13 ▲2.40
Dashboard /wp-admin3.42 ▲0.0136.44 ▲2.75
Posts /wp-admin/edit.php3.66 ▲0.0136.18 ▼1.65
Add New Post /wp-admin/post-new.php6.90 ▼0.0890.97 ▼1,169.54
Media Library /wp-admin/upload.php3.31 ▲0.0128.54 ▲4.23

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Gravity Forms integration - AcyMailing
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲915.89 ▲0.145.85 ▼0.262.39 ▼0.27
Dashboard /wp-admin2,895 ▲416.16 ▼0.05115.36 ▼17.14158.37 ▲2.23
Posts /wp-admin/edit.php2,691 ▲63.24 ▲0.0162.93 ▼1.68139.10 ▼7.50
Add New Post /wp-admin/post-new.php1,711 ▼020.75 ▲0.11421.29 ▼29.29157.31 ▼0.86
Media Library /wp-admin/upload.php1,698 ▼05.53 ▲0.02148.85 ▲11.70194.62 ▲10.54

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
This plugin's uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% from 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
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/acymailing-integration-for-gravity-forms/views/select_multiple.php
  • 14× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/acymailing-integration-for-gravity-forms/views/select_multiple.php on line 3
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/acymailing-integration-for-gravity-forms/views/select_multiple.php on line 1
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/acymailing-integration-for-gravity-forms/views/select_multiple.php on line 2
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/acymailing-integration-for-gravity-forms/views/select_multiple.php on line 1
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/acymailing-integration-for-gravity-forms/views/select_multiple.php on line 5
    • > PHP Fatal error
      Uncaught Error: Class 'GF_Field' not found in wp-content/plugins/acymailing-integration-for-gravity-forms/customFieldGF.php:6
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/acymailing-integration-for-gravity-forms/views/select_multiple.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'AcyMailing\\Libraries\\acymPlugin' not found in wp-content/plugins/acymailing-integration-for-gravity-forms/plugin.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_deactivation_hook() in wp-content/plugins/acymailing-integration-for-gravity-forms/acymailing-gravityforms.php:13
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/acymailing-integration-for-gravity-forms/views/select_multiple.php on line 5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: newsletter form, form, subscription, acymailing, newsletter...

acymailing-integration-for-gravity-forms/acymailing-gravityforms.php 92% from 13 tests

The entry point to "Gravity Forms integration - AcyMailing" version 1.5 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("acymailing-integration-for-gravity-forms.php" instead of "acymailing-gravityforms.php")

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 plugin226 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP45145226

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity15.00
▷ Minimum class complexity6.00
▷ Maximum class complexity24.00
Average method complexity3.55
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods1090.91%
▷ Protected methods00.00%
▷ Private methods19.09%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
banner.png17.79KB4.76KB▼ 73.25%