83% vercel-deploy-hooks

Code Review | Vercel Deploy Hooks

WordPress plugin Vercel Deploy Hooks scored 83% from 54 tests.

About plugin

  • Plugin page: vercel-deploy-hooks
  • Plugin version: 1.4.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.1
  • WordPress version: 6.3.1
  • First release: Oct 21, 2020
  • Latest release: Sep 6, 2022
  • Number of updates: 6
  • Update frequency: every 114.3 days
  • Top authors: Arden012 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

900+ active / 5,009 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

Server-side resources used by Vercel Deploy Hooks
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1140.60 ▲1.08
Dashboard /wp-admin3.41 ▲0.1152.36 ▲1.43
Posts /wp-admin/edit.php3.53 ▲0.1748.24 ▲1.83
Add New Post /wp-admin/post-new.php6.00 ▲0.1187.34 ▼11.32
Media Library /wp-admin/upload.php3.34 ▲0.1133.95 ▲1.54

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Vercel Deploy Hooks
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲9913.15 ▼1.232.00 ▲0.3845.68 ▲4.99
Dashboard /wp-admin2,240 ▲485.88 ▲0.9398.72 ▼10.2342.57 ▼1.60
Posts /wp-admin/edit.php2,120 ▲312.03 ▼0.0036.15 ▲0.1133.62 ▲0.34
Add New Post /wp-admin/post-new.php1,565 ▲3223.15 ▲0.14658.45 ▲21.9672.56 ▲14.56
Media Library /wp-admin/upload.php1,422 ▲374.26 ▲0.0493.07 ▼11.9443.68 ▼5.75

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/vercel-deploy-hooks/vercel-webhook-deploy.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: Screenshot #1 (Vercel Deploy Hooks documentation) image missing
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === vercel-deploy-hooks === )
You can take inspiration from this readme.txt

vercel-deploy-hooks/vercel-webhook-deploy.php 92% from 13 tests

"Vercel Deploy Hooks" version 1.4.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("vercel-deploy-hooks.php" instead of "vercel-webhook-deploy.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin533 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP272153426
Markdown129066
JSON10041

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity44.00
▷ Minimum class complexity44.00
▷ Maximum class complexity44.00
Average method complexity2.86
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods23
▷ Static methods00.00%
▷ Public methods23100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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
1 PNG file occupies 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png63.73KB19.90KB▼ 68.77%