83% suretriggers

Code Review | SureTriggers - Connect All Your Plugins, Apps, Tools & Automate Everything!

WordPress plugin SureTriggers - Connect All Your Plugins, Apps, Tools & Automate Everything! scored83%from 54 tests.

About plugin

  • Plugin page: suretriggers
  • Plugin version: 1.0.30
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.4
  • WordPress version: 6.3.1
  • First release: Jan 6, 2023
  • Latest release: Nov 28, 2023
  • Number of updates: 35
  • Update frequency: every 9.3 days
  • Top authors: rohitrpatil (100%)

Code review

54 tests

User reviews

22 reviews

Install metrics

7,000+ active /108,963 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲8.02MB] [CPU: ▲50.39ms] 75% from 4 tests

An overview of server-side resources used by SureTriggers - Connect All Your Plugins, Apps, Tools & Automate Everything!
Please have a look at the following items
  • Extra RAM: The extra memory usage must be under 5MB (currently 8.02MB on /wp-admin/upload.php)
PageMemory (MB)CPU Time (ms)
Home /11.49 ▲8.0392.22 ▲49.79
Dashboard /wp-admin11.33 ▲7.9899.90 ▲36.59
Posts /wp-admin/edit.php11.37 ▲8.02112.39 ▲63.78
Add New Post /wp-admin/post-new.php13.94 ▲8.05143.07 ▲55.33
Media Library /wp-admin/upload.php11.29 ▲8.0694.40 ▲59.83

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 507 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for SureTriggers - Connect All Your Plugins, Apps, Tools & Automate Everything!
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,888 ▲14114.68 ▲0.541.66 ▼0.0539.74 ▼7.09
Dashboard /wp-admin2,294 ▲1205.66 ▲0.0995.63 ▼6.9548.14 ▲8.33
Posts /wp-admin/edit.php2,152 ▲492.11 ▲0.1741.18 ▼1.7836.53 ▼2.79
Add New Post /wp-admin/post-new.php1,558 ▲3221.31 ▼2.02619.10 ▼63.3947.51 ▼5.67
Media Library /wp-admin/upload.php1,451 ▲484.29 ▲0.0199.78 ▲3.0545.18 ▲2.50

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% 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
Almost there! Just fix the following items
  • 485× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Trait 'SureTriggers\\Traits\\SingletonLoader' not found in wp-content/plugins/suretriggers/src/Integrations/wp-user-manager/triggers/user-removes-profile-photo.php on line 30
    • > PHP Fatal error
      Uncaught Error: Class 'SureTriggers\\Integrations\\AutomateAction' not found in wp-content/plugins/suretriggers/src/Integrations/gamipress/actions/revoke-achivement-user.php:31
    • > PHP Fatal error
      Trait 'SureTriggers\\Traits\\SingletonLoader' not found in wp-content/plugins/suretriggers/src/Integrations/metabox/triggers/metabox-after-form-submission.php on line 34
    • > PHP Fatal error
      Trait 'SureTriggers\\Traits\\SingletonLoader' not found in wp-content/plugins/suretriggers/src/Integrations/woocommerce/triggers/order-status-changed.php on line 31
    • > PHP Fatal error
      Uncaught Error: Class 'SureTriggers\\Integrations\\AutomateAction' not found in wp-content/plugins/suretriggers/src/Integrations/mailpoet/actions/update-subscriber-to-new-list.php:30
    • > PHP Fatal error
      Trait 'SureTriggers\\Traits\\SingletonLoader' not found in wp-content/plugins/suretriggers/src/Integrations/jetformbuilder/triggers/jet-form-submit.php on line 34
    • > PHP Fatal error
      Trait 'SureTriggers\\Traits\\SingletonLoader' not found in wp-content/plugins/suretriggers/src/Integrations/edd/triggers/edd-purchase-refund.php on line 34
    • > PHP Fatal error
      Uncaught Error: Class 'SureTriggers\\Integrations\\Integrations' not found in wp-content/plugins/suretriggers/src/Integrations/kadence-forms/kadence-forms.php:20
    • > PHP Fatal error
      Trait 'SureTriggers\\Traits\\SingletonLoader' not found in wp-content/plugins/suretriggers/src/Integrations/gamipress/triggers/user-total-points-meets-threshold.php on line 34
    • > PHP Fatal error
      Trait 'SureTriggers\\Traits\\SingletonLoader' not found in wp-content/plugins/suretriggers/src/Integrations/woocommerce-subscriptions/triggers/user-subscribes-product.php on line 35

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: webhooks, surecart, mailchimp, google sheets, automation...

suretriggers/suretriggers.php 85% from 13 tests

The main PHP script in "SureTriggers - Connect All Your Plugins, Apps, Tools & Automate Everything!" version 1.0.30 is automatically included on every request by WordPress
The following require your attention:
  • Domain Path: The domain path folder does not exist ("/languages")
  • Description: The description should be shorter than 140 characters (currently 163 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin36,332 lines of code in 502 files:
LanguageFilesBlank linesComment linesLines of code
PHP4889,99626,42733,993
CSS31701132,267
SVG100071
JavaScript1001

PHP code 50% from 2 tests

A short review of cyclomatic complexity and code structure
The following items need your attention
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 1,141)
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity8.35
▷ Minimum class complexity1.00
▷ Maximum class complexity1,141.00
Average method complexity3.22
▷ Minimum method complexity1.00
▷ Maximum method complexity87.00
Code structure
Namespaces204
Interfaces0
Traits1
Classes483
▷ Abstract classes30.62%
▷ Concrete classes48099.38%
▷ Final classes00.00%
Methods1,587
▷ Static methods905.67%
▷ Public methods1,58699.94%
▷ Protected methods00.00%
▷ Private methods10.06%
Functions29
▷ Named functions724.14%
▷ Anonymous functions2275.86%
Constants16
▷ Global constants16100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/apps.png26.62KB11.89KB▼ 55.34%
assets/images/logogrids.png20.32KB20.30KB0.10%