89% webhook-for-wcfm-vendors

Code Review | Webhook For WCFM Vendors

WordPress plugin Webhook For WCFM Vendors scored89%from 54 tests.

About plugin

  • Plugin page: webhook-for-wcfm-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.1
  • WordPress version: 6.3.1
  • First release: Jul 6, 2022
  • Latest release: Nov 23, 2022
  • Number of updates: 4
  • Update frequency: every 36.0 days
  • Top authors: expresstechsoftware (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /717 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.83ms] Passed 4 tests

An overview of server-side resources used by Webhook For WCFM Vendors
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.13 ▼13.78
Dashboard /wp-admin3.31 ▲0.0045.26 ▼2.32
Posts /wp-admin/edit.php3.36 ▲0.0047.52 ▲2.63
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.10 ▼17.85
Media Library /wp-admin/upload.php3.23 ▲0.0035.10 ▲3.57

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Webhook For WCFM Vendors
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.72 ▲0.351.98 ▲0.1142.24 ▼3.00
Dashboard /wp-admin2,198 ▲215.61 ▲0.0893.48 ▼11.6236.85 ▼6.66
Posts /wp-admin/edit.php2,103 ▲32.03 ▲0.0339.28 ▼0.7136.30 ▼0.86
Add New Post /wp-admin/post-new.php1,526 ▼923.02 ▲4.53685.35 ▲51.1758.31 ▼9.92
Media Library /wp-admin/upload.php1,400 ▲34.18 ▼0.0594.75 ▼12.2043.17 ▲1.36

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: connect, multi vendor, wcfm, third party, webhook

webhook-for-wcfm-vendors/ets-webhook-vendor-config.php 85% from 13 tests

The primary PHP file in "Webhook For WCFM Vendors" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("webhook-for-wcfm-vendors.php" instead of "ets-webhook-vendor-config.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 detected814 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP3124108481
CSS100145
JSON100122
JavaScript14066

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity15.67
▷ Minimum class complexity7.00
▷ Maximum class complexity22.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods20
▷ Static methods630.00%
▷ Public methods1785.00%
▷ Protected methods00.00%
▷ Private methods315.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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