84% webhook-netlify-deploy

Code Review | Deploy Webhook Button

WordPress plugin Deploy Webhook Button scored84%from 54 tests.

About plugin

  • Plugin page: webhook-netlify-d...
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-5.2.1
  • WordPress version: 6.3.1
  • First release: May 29, 2019
  • Latest release: Sep 22, 2019
  • Number of updates: 10
  • Update frequency: every 11.6 days
  • Top authors: lukethacoder (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /3,682 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼3.24ms] Passed 4 tests

An overview of server-side resources used by Deploy Webhook Button
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1046.85 ▼1.60
Dashboard /wp-admin3.41 ▲0.1151.77 ▲3.62
Posts /wp-admin/edit.php3.53 ▲0.1751.96 ▼0.22
Add New Post /wp-admin/post-new.php6.00 ▲0.1194.16 ▼11.91
Media Library /wp-admin/upload.php3.34 ▲0.1137.79 ▲0.76
Developer Settings /wp-admin/admin.php?page=developer_webhook_fields3.3134.06
Schedule Builds /wp-admin/admin.php?page=schedule_webhook_fields3.3137.62
Webhook Deploy /wp-admin/admin.php?page=deploy_webhook_fields3.3132.50

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Deploy Webhook Button
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲6214.61 ▲0.031.80 ▼0.1541.13 ▼4.23
Dashboard /wp-admin2,232 ▲555.67 ▼0.0191.21 ▼1.3936.67 ▼4.59
Posts /wp-admin/edit.php2,134 ▲312.00 ▲0.0239.42 ▼1.9237.88 ▲1.80
Add New Post /wp-admin/post-new.php1,559 ▲3123.23 ▲0.15657.69 ▲6.8656.49 ▲3.22
Media Library /wp-admin/upload.php1,434 ▲344.25 ▼0.01115.61 ▲4.5051.84 ▲4.88
Developer Settings /wp-admin/admin.php?page=developer_webhook_fields8872.0523.8428.49
Schedule Builds /wp-admin/admin.php?page=schedule_webhook_fields8912.0228.1927.19
Webhook Deploy /wp-admin/admin.php?page=deploy_webhook_fields8772.0124.5130.11

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/webhook-netlify-deploy/netlify-webhook-deploy.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

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: gatsbyjs, deploy, build, netlify, webhook...

webhook-netlify-deploy/netlify-webhook-deploy.php 92% from 13 tests

The main PHP file in "Deploy Webhook Button" ver. 1.1.3 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("webhook-netlify-deploy.php" instead of "netlify-webhook-deploy.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected505 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP293142505

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity38.00
▷ Minimum class complexity38.00
▷ Maximum class complexity38.00
Average method complexity3.06
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected