83% marketing-automation-and-personalization

Code Review | Growmatik - Marketing Automation and Personalization

WordPress plugin Growmatik - Marketing Automation and Personalization scored83%from 54 tests.

About plugin

  • Plugin page: marketing-automat...
  • Plugin version: 2.8.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.2
  • WordPress version: 6.3.1
  • First release: May 22, 2020
  • Latest release: Aug 24, 2023
  • Number of updates: 61
  • Update frequency: every 19.5 days
  • Top authors: artbees (100%)

Code review

54 tests

User reviews

17 reviews

Install metrics

900+ active /26,960 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.41MB] [CPU: ▲2.27ms] Passed 4 tests

A check of server-side resources used by Growmatik - Marketing Automation and Personalization
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.87 ▲0.4148.74 ▲10.29
Dashboard /wp-admin3.74 ▲0.4350.25 ▼0.81
Posts /wp-admin/edit.php3.79 ▲0.4350.79 ▲2.86
Add New Post /wp-admin/post-new.php6.43 ▲0.54103.15 ▼1.13
Media Library /wp-admin/upload.php3.60 ▲0.3738.02 ▲8.17
Growmatik /wp-admin/options-general.php?page=growmatik-admin3.5736.68

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 127 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Growmatik - Marketing Automation and Personalization: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲4114.25 ▼0.321.77 ▲0.1442.56 ▲3.97
Dashboard /wp-admin2,208 ▲375.51 ▼0.0785.30 ▼7.0735.39 ▼3.22
Posts /wp-admin/edit.php2,108 ▲82.00 ▲0.0140.17 ▲1.0535.63 ▼14.63
Add New Post /wp-admin/post-new.php1,542 ▲1618.27 ▼4.59595.09 ▼35.3874.86 ▲23.30
Media Library /wp-admin/upload.php1,411 ▲114.20 ▼0.0197.54 ▼1.2240.29 ▼3.62
Growmatik /wp-admin/options-general.php?page=growmatik-admin8452.0828.6425.25

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
Almost there! Just fix the following items
  • 31× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Growmatik\\Ecommerce\\Commerce_Data_Layer' not found in wp-content/plugins/marketing-automation-and-personalization/includes/woocommerce/class-commerce-data-layer.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'JupiterX_Core\\Raven\\Modules\\Forms\\Actions\\Action_Base' not found in wp-content/plugins/marketing-automation-and-personalization/includes/form-integration/raven/class-raven-form-growmatik-action.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/marketing-automation-and-personalization/includes/hooks.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Growmatik\\Controller\\Post_Type_Sync' not found in wp-content/plugins/marketing-automation-and-personalization/includes/controller/class-post-controller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'ElementorPro\\Modules\\Forms\\Classes\\Action_Base' not found in wp-content/plugins/marketing-automation-and-personalization/includes/form-integration/elementor/class-elementor-form-growmatik-action.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/marketing-automation-and-personalization/constants.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/marketing-automation-and-personalization/admin/views/integrated-notice.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Growmatik\\EDD\\Init' not found in wp-content/plugins/marketing-automation-and-personalization/includes/edd2/class-init.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Growmatik\\Ecommerce\\Customer' not found in wp-content/plugins/marketing-automation-and-personalization/includes/woocommerce/class-customer.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Growmatik\\Ecommerce\\User_Order_Manager' not found in wp-content/plugins/marketing-automation-and-personalization/includes/edd2/class-user-orders.php:10

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 86% from 29 tests

readme.txt 94% 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
These attributes need your attention:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

marketing-automation-and-personalization/growmatik.php 77% from 13 tests

"Growmatik - Marketing Automation and Personalization" version 2.8.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 183 characters long)
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("marketing-automation-and-personalization.php" instead of "growmatik.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected7,951 lines of code in 121 files:
LanguageFilesBlank linesComment linesLines of code
PHP1041,8491,7077,154
JavaScript107759521
CSS61835275
JSON1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity8.96
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.34
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces18
Interfaces1
Traits0
Classes82
▷ Abstract classes22.44%
▷ Concrete classes8097.56%
▷ Final classes00.00%
Methods502
▷ Static methods7114.14%
▷ Public methods36071.71%
▷ Protected methods479.36%
▷ Private methods9518.92%
Functions57
▷ Named functions2645.61%
▷ Anonymous functions3154.39%
Constants39
▷ Global constants1435.90%
▷ Class constants2564.10%
▷ Public constants25100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/img/favicon.png2.39KB1.50KB▼ 37.19%
admin/assets/img/growmatik-notice-logo.png13.52KB6.34KB▼ 53.08%