89% wp-webhooks-email-integration

Code Review | WP Webhooks - Email integration

WordPress plugin WP Webhooks - Email integration scored89%from 54 tests.

About plugin

  • Plugin page: wp-webhooks-email...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.7
  • WordPress version: 6.3.1
  • First release: Jul 8, 2020
  • Latest release: May 2, 2021
  • Number of updates: 6
  • Update frequency: every 49.7 days
  • Top authors: ironikus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,307 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.68ms] Passed 4 tests

A check of server-side resources used by WP Webhooks - Email integration
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.31 ▼0.14
Dashboard /wp-admin3.31 ▲0.0147.47 ▼8.96
Posts /wp-admin/edit.php3.36 ▲0.0148.73 ▼4.65
Add New Post /wp-admin/post-new.php5.89 ▲0.0195.19 ▼8.97
Media Library /wp-admin/upload.php3.24 ▲0.0136.06 ▲4.32

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Webhooks - Email integration
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲4714.25 ▼0.102.04 ▲0.2646.90 ▲3.26
Dashboard /wp-admin2,214 ▲375.49 ▼0.0986.45 ▼9.7141.10 ▼7.44
Posts /wp-admin/edit.php2,120 ▲202.02 ▲0.0441.78 ▼0.3037.69 ▲2.83
Add New Post /wp-admin/post-new.php1,545 ▼523.08 ▲0.26699.75 ▲63.8462.32 ▲16.07
Media Library /wp-admin/upload.php1,419 ▲194.19 ▼0.08105.22 ▼0.5646.41 ▲2.15

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

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 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
  • Screenshots: These screenshots need descriptions #1, #2 in wp-webhooks-email-integration/assets to your readme.txt
The official readme.txt might help

wp-webhooks-email-integration/wpwh-emails.php 92% from 13 tests

The main PHP script in "WP Webhooks - Email integration" version 1.1.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-webhooks-email-integration.php" instead of "wpwh-emails.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin428 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP310990428

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity17.50
▷ Minimum class complexity6.00
▷ Maximum class complexity29.00
Average method complexity3.75
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
No PNG images were found in this plugin