79% wp-webhooks

Code Review | WP Webhooks - Create powerful automation workflows directly within WordPress

WordPress plugin WP Webhooks - Create powerful automation workflows directly within WordPress scored79%from 54 tests.

About plugin

  • Plugin page: wp-webhooks
  • Plugin version: 3.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 15, 2019
  • Latest release: Jan 12, 2023
  • Number of updates: 57
  • Update frequency: every 24.5 days
  • Top authors: ironikus (100%)

Code review

54 tests

User reviews

43 reviews

Install metrics

10,000+ active /114,501 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲3.30MB] [CPU: ▲20.16ms] Passed 4 tests

Server-side resources used by WP Webhooks - Create powerful automation workflows directly within WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /6.80 ▲3.3461.19 ▲19.25
Dashboard /wp-admin6.64 ▲3.3367.07 ▲11.49
Posts /wp-admin/edit.php6.67 ▲3.3175.99 ▲28.40
Add New Post /wp-admin/post-new.php9.16 ▲3.27116.49 ▲22.69
Media Library /wp-admin/upload.php6.50 ▲3.2765.12 ▲27.19
WP Webhooks /wp-admin/options-general.php?page=wp-webhooks-pro6.6364.20

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 475 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
ironikus_webhook_webhooks
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by WP Webhooks - Create powerful automation workflows directly within WordPress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.36 ▼0.011.95 ▲0.0936.98 ▼10.62
Dashboard /wp-admin2,202 ▲225.61 ▲0.0490.79 ▲0.5241.82 ▼0.56
Posts /wp-admin/edit.php2,104 ▲12.02 ▼0.0142.95 ▲4.6534.09 ▼5.81
Add New Post /wp-admin/post-new.php1,529 ▲321.98 ▼1.11648.80 ▼29.8356.46 ▲2.30
Media Library /wp-admin/upload.php1,407 ▲44.15 ▲0.0597.18 ▼10.6342.79 ▼5.25
WP Webhooks /wp-admin/options-general.php?page=wp-webhooks-pro1,7275.1979.8994.22

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • ironikus_webhook_webhooks
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% 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
Please fix the following
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wp-webhooks/core/includes/partials/tabs/pro.php
    • > /wp-content/plugins/wp-webhooks/core/includes/partials/tabs/home.php
    • > /wp-content/plugins/wp-webhooks/core/includes/integrations/woocommerce/misc/rest-api/vendor/automattic/woocommerce/tests/bootstrap.php
  • 17× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wp-webhooks/core/includes/integrations/woocommerce/misc/rest-api/vendor/automattic/woocommerce/tests/WooCommerce/Tests/HttpClient/ResponseTest.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wp-webhooks/core/includes/integrations/woocommerce/misc/rest-api/vendor/automattic/woocommerce/tests/WooCommerce/Tests/ClientTest.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_plugins() in wp-content/plugins/wp-webhooks/core/includes/partials/tabs/extensions.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wp-webhooks/core/includes/integrations/woocommerce/misc/rest-api/vendor/automattic/woocommerce/tests/WooCommerce/Tests/HttpClient/OptionsTest.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WPWHPRO() in wp-content/plugins/wp-webhooks/core/includes/partials/descriptions/action.php:38
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Upgrader_Skin' not found in wp-content/plugins/wp-webhooks/core/includes/classes/class-wp-webhooks-pro-upgrader-skin.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WPWHPRO() in wp-content/plugins/wp-webhooks/core/includes/partials/tabs/settings.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WPWHPRO() in wp-content/plugins/wp-webhooks/core/includes/partials/tabs/authentication.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WPWHPRO() in wp-content/plugins/wp-webhooks/core/includes/partials/tabs/send-data.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wp-webhooks/core/includes/integrations/woocommerce/misc/rest-api/vendor/automattic/woocommerce/tests/WooCommerce/Tests/HttpClient/RequestTest.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: zapier, automation, create user, api, ironikus...

wp-webhooks/wp-webhooks.php Passed 13 tests

The main PHP script in "WP Webhooks - Create powerful automation workflows directly within WordPress" version 3.3.1 is automatically included on every request by WordPress
130 characters long description:
Put your website on autopilot by using webhooks to get rid of manual tasks and focus on what's really important for your business.

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
Success! There were no dangerous files found in this plugin71,120 lines of code in 329 files:
LanguageFilesBlank linesComment linesLines of code
PHP2938,0665,52049,212
JavaScript43,5544,33513,255
CSS42,492278,150
SVG2001248
Markdown1400118
JSON30090
XML21026
YAML26021

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity13.24
▷ Minimum class complexity1.00
▷ Maximum class complexity172.00
Average method complexity4.34
▷ Minimum method complexity1.00
▷ Maximum method complexity96.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes276
▷ Abstract classes00.00%
▷ Concrete classes276100.00%
▷ Final classes10.36%
Methods1,008
▷ Static methods40.40%
▷ Public methods97296.43%
▷ Protected methods201.98%
▷ Private methods161.59%
Functions9
▷ Named functions444.44%
▷ Anonymous functions555.56%
Constants14
▷ Global constants857.14%
▷ Class constants642.86%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
21 PNG files occupy 0.42MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
core/includes/integrations/formidable-forms/assets/img/icon-formidable-forms.png2.57KB2.54KB▼ 1.22%
core/includes/integrations/contactform7/assets/img/icon-contactform7.png16.17KB5.08KB▼ 68.57%
core/includes/integrations/broken-link-checker/assets/img/icon-broken-link-checker.png4.07KB4.05KB0.34%
core/includes/integrations/forminator/assets/img/icon-forminator.png9.14KB7.94KB▼ 13.16%
core/includes/integrations/ninjaforms/assets/img/icon-ninjaforms.png27.50KB26.95KB▼ 1.98%