67% automatorwp

Code Review | AutomatorWP - The #1 automator plugin for no-code automation in WordPress

WordPress plugin AutomatorWP - The #1 automator plugin for no-code automation in WordPress scored67%from 54 tests.

About plugin

  • Plugin page: automatorwp
  • Plugin version: 4.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.4
  • WordPress version: 6.3.1
  • First release: Mar 31, 2020
  • Latest release: Nov 30, 2023
  • Number of updates: 244
  • Update frequency: every 5.5 days
  • Top authors: rubengc (87.3%)dioni00 (13.11%)

Code review

54 tests

User reviews

134 reviews

Install metrics

7,000+ active /354,394 total downloads

Benchmarks

Plugin footprint 64% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲8.22MB] [CPU: ▲38.24ms] 25% from 4 tests

Server-side resources used by AutomatorWP - The #1 automator plugin for no-code automation in WordPress
It is recommended to improve the following
  • RAM: Total memory usage should be kept under 10MB (currently 12.87MB on /wp-admin/admin.php?page=automatorwp_settings)
  • CPU: You should keep total CPU usage under 500.00ms (currently 1,133.47ms on /wp-admin/admin.php?page=automatorwp_add_ons)
  • Extra RAM: The extra memory usage should kept under 5MB (currently 8.22MB on /wp-admin/admin.php?page=automatorwp_settings)
PageMemory (MB)CPU Time (ms)
Home /11.89 ▲8.4384.47 ▲41.47
Dashboard /wp-admin12.42 ▲9.11100.35 ▲53.04
Posts /wp-admin/edit.php12.44 ▲9.08106.34 ▲57.84
Add New Post /wp-admin/post-new.php12.22 ▲6.3395.61 ▲0.62
Media Library /wp-admin/upload.php12.28 ▲9.0591.90 ▲58.58
Edit Automation /wp-admin/admin.php?page=edit_automatorwp_automations12.5994.26
Dashboard /wp-admin/admin.php?page=automatorwp12.2482.89
Add New /wp-admin/admin.php?page=add_automatorwp_triggers12.0694.59
Import Automation /wp-admin/admin.php?page=automatorwp_import_automation12.2485.08
Add-ons /wp-admin/admin.php?page=automatorwp_add_ons13.341,133.47
All Triggers /wp-admin/admin.php?page=automatorwp_triggers12.2682.66
Licenses /wp-admin/admin.php?page=automatorwp_licenses12.4289.61
Edit Trigger /wp-admin/admin.php?page=edit_automatorwp_triggers12.0670.93
Logs /wp-admin/admin.php?page=automatorwp_logs12.3299.86
Settings /wp-admin/admin.php?page=automatorwp_settings12.8787.26

Server storage [IO: ▲11.37MB] [DB: ▲0.30MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 1,388 new files
Database: 8 new tables, 17 new options
New tables
wp_automatorwp_logs_meta
wp_automatorwp_triggers_meta
wp_automatorwp_automations_meta
wp_automatorwp_actions
wp_automatorwp_logs
wp_automatorwp_actions_meta
wp_automatorwp_automations
wp_automatorwp_triggers
New WordPress options
theysaidso_admin_options
wpdb_automatorwp_automations_meta_version
wpdb_automatorwp_logs_meta_version
db_upgraded
wpdb_automatorwp_triggers_meta_version
wpdb_automatorwp_automations_version
automatorwp_version
wpdb_automatorwp_triggers_version
wpdb_automatorwp_logs_version
can_compress_scripts
...

Browser metrics Passed 4 tests

A check of browser resources used by AutomatorWP - The #1 automator plugin for no-code automation in WordPress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,951 ▲18913.15 ▼1.211.78 ▲0.0440.62 ▼3.07
Dashboard /wp-admin2,326 ▲1465.77 ▲0.1896.13 ▼0.3042.38 ▼0.26
Posts /wp-admin/edit.php2,234 ▲1342.19 ▲0.2440.94 ▲3.2536.66 ▲4.23
Add New Post /wp-admin/post-new.php1,637 ▲11121.91 ▼1.75624.65 ▲34.5333.77 ▼13.88
Media Library /wp-admin/upload.php1,534 ▲1374.29 ▲0.0697.96 ▼0.9844.23 ▲1.45
Edit Automation /wp-admin/admin.php?page=edit_automatorwp_automations5,6485.28118.23125.80
Dashboard /wp-admin/admin.php?page=automatorwp1,9289.04302.46107.98
Add New /wp-admin/admin.php?page=add_automatorwp_triggers280.410.093.93
Import Automation /wp-admin/admin.php?page=automatorwp_import_automation1,2572.2133.6532.93
Add-ons /wp-admin/admin.php?page=automatorwp_add_ons16,5305.1975.99135.11
All Triggers /wp-admin/admin.php?page=automatorwp_triggers1,0862.2828.7327.78
Licenses /wp-admin/admin.php?page=automatorwp_licenses1,3075.1674.5928.21
Edit Trigger /wp-admin/admin.php?page=edit_automatorwp_triggers280.410.083.20
Logs /wp-admin/admin.php?page=automatorwp_logs1,6375.0266.9932.68
Settings /wp-admin/admin.php?page=automatorwp_settings1,8062.3360.8229.84

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie tables were found after uninstall: 8 tables
    • wp_automatorwp_logs_meta
    • wp_automatorwp_actions
    • wp_automatorwp_logs
    • wp_automatorwp_actions_meta
    • wp_automatorwp_automations_meta
    • wp_automatorwp_automations
    • wp_automatorwp_triggers
    • wp_automatorwp_triggers_meta
  • Zombie WordPress options were found after uninstall: 17 options
    • automatorwp_version
    • automatorwp_settings
    • wpdb_automatorwp_logs_version
    • wpdb_automatorwp_actions_meta_version
    • db_upgraded
    • wpdb_automatorwp_logs_meta_version
    • theysaidso_admin_options
    • wpdb_automatorwp_triggers_meta_version
    • wpdb_automatorwp_automations_meta_version
    • automatorwp_install_date
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
The following issues need your attention
  • 185× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/automatorwp/libraries/cmb2/includes/rest-api/CMB2_REST.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/automatorwp/automatorwp.php:128
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/automatorwp/integrations/mailchimp/vendor/guzzlehttp/psr7/src/Request.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/automatorwp/integrations/mailchimp/vendor/guzzlehttp/guzzle/src/Exception/TooManyRedirectsException.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/automatorwp/integrations/mailchimp/vendor/guzzlehttp/promises/src/AggregateException.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/automatorwp/integrations/mailchimp/vendor/guzzlehttp/guzzle/src/Pool.php:24
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\ClientInterface' not found in wp-content/plugins/automatorwp/integrations/mailchimp/vendor/guzzlehttp/guzzle/src/Client.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/automatorwp/integrations/anspress/anspress.php:167
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/automatorwp/integrations/gravity-forms/gravity-forms.php:192
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/automatorwp/integrations/wpdiscuz/wpdiscuz.php:173

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=add_automatorwp_triggers
    • > Network (severe)
    wp-admin/admin.php?page=add_automatorwp_triggers - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
    • > GET request to /wp-admin/admin.php?page=edit_automatorwp_triggers
    • > Network (severe)
    wp-admin/admin.php?page=edit_automatorwp_triggers - Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: openai, marketing, automator, automation, webhooks...

automatorwp/automatorwp.php Passed 13 tests

"AutomatorWP - The #1 automator plugin for no-code automation in WordPress" version 4.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
84 characters long description:
Connect your WordPress plugins together and create automated workflows with no code!

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin195,704 lines of code in 1,222 files:
LanguageFilesBlank linesComment linesLines of code
PHP80330,66554,176103,176
PO File12014,31518,50232,323
JavaScript985,3212,55619,369
SVG10915210719,163
JSON17007,768
CSS288161,3487,372
Markdown251,64605,045
Sass17306291,411
Bourne Shell113831
XML11020
YAML20017
make1409

PHP code 50% from 2 tests

An overview of cyclomatic complexity and code structure
The following items need your attention
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 1,909)
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity22.05
▷ Minimum class complexity1.00
▷ Maximum class complexity1,909.00
Average method complexity4.25
▷ Minimum method complexity1.00
▷ Maximum method complexity64.00
Code structure
Namespaces13
Interfaces26
Traits3
Classes608
▷ Abstract classes91.48%
▷ Concrete classes59998.52%
▷ Final classes12520.87%
Methods4,220
▷ Static methods3347.91%
▷ Public methods3,22776.47%
▷ Protected methods3979.41%
▷ Private methods59614.12%
Functions1,034
▷ Named functions93490.33%
▷ Anonymous functions1009.67%
Constants445
▷ Global constants37283.60%
▷ Class constants7316.40%
▷ Public constants6284.93%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
libraries/cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.10KB0.17KB0.00%
libraries/cmb2/images/ui-bg_glass_75_e6e6e6_1x400.png0.11KB0.14KB0.00%
libraries/cmb2/images/ui-bg_glass_55_fbf9ee_1x400.png0.12KB0.14KB0.00%
libraries/cmb2/images/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%
libraries/cmb2/images/ui-bg_glass_95_fef1ec_1x400.png0.12KB0.14KB0.00%