68% wunderautomation

Code Review | WunderAutomation

WordPress plugin WunderAutomation scored68%from 54 tests.

About plugin

  • Plugin page: wunderautomation
  • Plugin version: 1.9.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.9
  • WordPress version: 6.3.1
  • First release: Nov 15, 2019
  • Latest release: May 16, 2022
  • Number of updates: 104
  • Update frequency: every 8.8 days
  • Top authors: wundermatics (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

500+ active /11,097 total downloads

Benchmarks

Plugin footprint 65% 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: ▲1.94MB] [CPU: ▲16.68ms] Passed 4 tests

A check of server-side resources used by WunderAutomation
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /5.27 ▲1.8057.16 ▲15.60
Dashboard /wp-admin5.28 ▲1.9859.86 ▲11.77
Posts /wp-admin/edit.php5.40 ▲2.0469.29 ▲23.79
Add New Post /wp-admin/post-new.php7.88 ▲1.99115.83 ▲17.49
Media Library /wp-admin/upload.php5.21 ▲1.9857.61 ▲21.87
Scheduled Actions /wp-admin/tools.php?page=action-scheduler5.3755.82
Workflows /wp-admin/edit.php?post_type=automation-workflow5.2654.85
Settings /wp-admin/admin.php?page=wunderauto-settings5.3248.23
Categories /wp-admin/edit-tags.php?taxonomy=automation-category&post_type=automation-workflow5.2048.80
Parameter test /wp-admin/admin.php?page=wunderauto-parametertest5.1953.15
Log /wp-admin/admin.php?page=wunderauto-log5.1846.12
Re-Triggers /wp-admin/edit.php?post_type=automation-retrigger5.2552.73
Upgrade to Pro /wp-admin/admin.php?page=wunderauto-upgrade5.2046.31

Server storage [IO: ▲3.80MB] [DB: ▲0.01MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 555 new files
Database: 7 new tables, 14 new options
New tables
wp_actionscheduler_logs
wp_wa_queue
wp_wa_log
wp_actionscheduler_claims
wp_wa_confirmationlinks
wp_actionscheduler_groups
wp_actionscheduler_actions
New WordPress options
schema-ActionScheduler_LoggerSchema
widget_recent-comments
wunderauto_welcomescreen
action_scheduler_lock_async-request-runner
widget_recent-posts
can_compress_scripts
schema-ActionScheduler_StoreSchema
action_scheduler_hybrid_store_demarkation
db_upgraded
wa_db_version
...

Browser metrics Passed 4 tests

Checking browser requirements for WunderAutomation
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,860 ▲11413.32 ▼1.062.03 ▲0.2740.04 ▼0.80
Dashboard /wp-admin2,263 ▲785.84 ▲0.0195.55 ▼6.0038.46 ▼0.66
Posts /wp-admin/edit.php2,149 ▲602.08 ▲0.0240.67 ▲3.4435.40 ▼0.10
Add New Post /wp-admin/post-new.php1,587 ▲6818.19 ▼5.01775.67 ▲88.3852.99 ▲0.53
Media Library /wp-admin/upload.php1,451 ▲634.26 ▲0.0698.46 ▼12.6942.79 ▼6.77
Scheduled Actions /wp-admin/tools.php?page=action-scheduler1,2971.8628.5330.52
Workflows /wp-admin/edit.php?post_type=automation-workflow1,2612.1332.3030.84
Settings /wp-admin/admin.php?page=wunderauto-settings9512.3823.3430.59
Categories /wp-admin/edit-tags.php?taxonomy=automation-category&post_type=automation-workflow1,2942.2027.3628.60
Parameter test /wp-admin/admin.php?page=wunderauto-parametertest8511.8724.9426.05
Log /wp-admin/admin.php?page=wunderauto-log1,1552.7450.4927.94
Re-Triggers /wp-admin/edit.php?post_type=automation-retrigger1,1252.0133.2227.75
Upgrade to Pro /wp-admin/admin.php?page=wunderauto-upgrade1,4292.1126.8439.45

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure failed, leaving 7 tables in the database
    • wp_actionscheduler_claims
    • wp_wa_log
    • wp_actionscheduler_actions
    • wp_actionscheduler_groups
    • wp_wa_queue
    • wp_wa_confirmationlinks
    • wp_actionscheduler_logs
  • Zombie WordPress options detected upon uninstall: 14 options
    • wunderauto-notices
    • action_scheduler_hybrid_store_demarkation
    • widget_recent-posts
    • schema-ActionScheduler_StoreSchema
    • wa_db_version
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • action_scheduler_lock_async-request-runner
    • widget_recent-comments
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/wunderautomation/admin/metaboxes/components/filters/ajaxmultiselect.php
  • 367× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wunderautomation/admin/metaboxes/retrigger-query.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WunderAuto\\Types\\Filters\\BaseFilter' not found in wp-content/plugins/wunderautomation/src/Types/Filters/Comment/AuthorName.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wa_get_wp_post_statuses() in wp-content/plugins/wunderautomation/admin/metaboxes/components/actions/changestatus.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Store' not found in wp-content/plugins/wunderautomation/src/action-scheduler/classes/data-stores/ActionScheduler_wpPostStore.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wunderautomation/admin/metaboxes/components/triggers/webhook.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WunderAuto\\Types\\Parameters\\BaseParameter' not found in wp-content/plugins/wunderautomation/src/Types/Parameters/Comment/Status.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wunderautomation/admin/metaboxes/components/actions/createpost.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WunderAuto\\Types\\Parameters\\BaseParameter' not found in wp-content/plugins/wunderautomation/src/Types/Parameters/User/Id.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'WunderAuto\\Types\\Filters\\BaseFilter' not found in wp-content/plugins/wunderautomation/src/Types/Filters/Order/BillingCountry.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'WunderAuto\\Types\\Filters\\BaseFilter' not found in wp-content/plugins/wunderautomation/src/Types/Filters/User/Role.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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 need to be fixed:
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5, #6 in wunderautomation/assets to your readme.txt
Please take inspiration from this readme.txt

wunderautomation/wunderautomation.php 92% from 13 tests

The primary PHP file in "WunderAutomation" version 1.9.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
Good job! No executable or dangerous file extensions detected42,955 lines of code in 506 files:
LanguageFilesBlank linesComment linesLines of code
PHP4725,75012,93127,924
JavaScript215022,11914,170
CSS916411765
Markdown237090
JSON2006

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity7.25
▷ Minimum class complexity1.00
▷ Maximum class complexity108.00
Average method complexity2.56
▷ Minimum method complexity1.00
▷ Maximum method complexity51.00
Code structure
Namespaces43
Interfaces4
Traits0
Classes404
▷ Abstract classes163.96%
▷ Concrete classes38896.04%
▷ Final classes00.00%
Methods1,657
▷ Static methods975.85%
▷ Public methods1,39183.95%
▷ Protected methods17410.50%
▷ Private methods925.55%
Functions87
▷ Named functions4450.57%
▷ Anonymous functions4349.43%
Constants91
▷ Global constants44.40%
▷ Class constants8795.60%
▷ Public constants87100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
39 PNG files occupy 1.15MB with 0.33MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/images/wizard/connect_left.png40.65KB40.92KB0.00%
admin/assets/images/wizard/webhooks_top.png32.21KB32.95KB0.00%
admin/assets/images/upgrade/mailchimp-600.png54.65KB29.52KB▼ 45.99%
admin/assets/images/upgrade/woo-600.png45.68KB24.11KB▼ 47.22%
admin/assets/images/upgrade/sched-600.png18.44KB9.45KB▼ 48.77%