78% acymailing-integration-for-gravity-forms

Code Review | Gravity Forms integration - AcyMailing

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

About plugin

  • Plugin page: acymailing-integr...
  • Plugin version: 2.5
  • PHP compatiblity: 7.2.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3.2
  • WordPress version: 6.3.1
  • First release: Oct 10, 2020
  • Latest release: Oct 24, 2023
  • Number of updates: 20
  • Update frequency: every 55.5 days
  • Top authors: acyba (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /2,932 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

A check of server-side resources used by Gravity Forms integration - AcyMailing
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0133.76 ▼5.86
Dashboard /wp-admin3.32 ▲0.0145.62 ▼4.02
Posts /wp-admin/edit.php3.37 ▲0.0144.78 ▼1.00
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.72 ▼4.95
Media Library /wp-admin/upload.php3.24 ▲0.0136.89 ▲5.40

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

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

Browser metrics Passed 4 tests

Gravity Forms integration - AcyMailing: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲1814.35 ▼0.001.65 ▼0.2840.03 ▼4.38
Dashboard /wp-admin2,195 ▲185.57 ▼0.0783.74 ▼22.9638.09 ▼6.33
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0433.40 ▼3.4134.32 ▼1.24
Add New Post /wp-admin/post-new.php1,526 ▼323.54 ▼0.05659.37 ▼8.4359.36 ▲4.59
Media Library /wp-admin/upload.php1,397 ▼04.18 ▼0.0291.12 ▼26.5043.57 ▼1.26

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% 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
Almost there! Just fix the following items
  • 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
      Undefined variable: data in wp-content/plugins/acymailing-integration-for-gravity-forms/views/select_multiple.php on line 1
    • > 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 5
    • > 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 3
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/acymailing-integration-for-gravity-forms/views/select_multiple.php on line 5
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/acymailing-integration-for-gravity-forms/views/select_multiple.php on line 5
    • > 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 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: Class 'GF_Field' not found in wp-content/plugins/acymailing-integration-for-gravity-forms/customFieldGF.php:6

User-side errors Passed 1 test

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

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, subscription, newsletter, form, gravity forms...

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

Analyzing the main PHP file in "Gravity Forms integration - AcyMailing" version 2.5
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be 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 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin229 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP45145229

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
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%