84% post-webhook

Code Review | Post Webhook - Send Post & Page data to any API or external service

WordPress plugin Post Webhook - Send Post & Page data to any API or external service scored84%from 54 tests.

About plugin

  • Plugin page: post-webhook
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0.2
  • WordPress version: 6.3.1
  • First release: Oct 22, 2022
  • Latest release: Oct 22, 2022
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: wrightj2 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /787 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.02MB] [CPU: ▼8.50ms] Passed 4 tests

A check of server-side resources used by Post Webhook - Send Post & Page data to any API or external service
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0233.65 ▼7.92
Dashboard /wp-admin3.33 ▲0.0343.00 ▼5.36
Posts /wp-admin/edit.php3.38 ▲0.0247.13 ▼3.12
Add New Post /wp-admin/post-new.php5.91 ▲0.0280.47 ▼17.58
Media Library /wp-admin/upload.php3.25 ▲0.0236.82 ▲1.89
Post Webhook /wp-admin/options-general.php?page=post-webhook-wp3.2229.87

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Post Webhook - Send Post & Page data to any API or external service
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.25 ▼1.001.82 ▲0.0541.20 ▼4.43
Dashboard /wp-admin2,213 ▲224.87 ▼0.02110.61 ▼4.1338.58 ▼5.71
Posts /wp-admin/edit.php2,093 ▲42.06 ▲0.0639.67 ▲2.0336.57 ▼4.21
Add New Post /wp-admin/post-new.php1,517 ▲317.46 ▼0.10679.59 ▲18.9057.30 ▼9.74
Media Library /wp-admin/upload.php1,389 ▼24.16 ▼0.0296.46 ▼7.1541.64 ▼2.09
Post Webhook /wp-admin/options-general.php?page=post-webhook-wp8142.0222.5227.41

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/post-webhook/admin/settings.php
    • > /wp-content/plugins/post-webhook/post-webhook-wp.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
6 plugin tags: integromat, automation, webhooks, zapier, api...

post-webhook/post-webhook-wp.php 92% from 13 tests

The main file in "Post Webhook - Send Post & Page data to any API or external service" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("post-webhook.php" instead of "post-webhook-wp.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 detected145 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP33679145

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin