90% wp-webhooks-comments

Code Review | WP Webhooks - Comments

WordPress plugin WP Webhooks - Comments scored90%from 54 tests.

About plugin

  • Plugin page: wp-webhooks-comments
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.7
  • WordPress version: 6.3.1
  • First release: Aug 19, 2019
  • Latest release: May 2, 2021
  • Number of updates: 7
  • Update frequency: every 89.0 days
  • Top authors: ironikus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,259 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
Installer ran successfully

Server metrics [RAM: ▲0.26MB] [CPU: ▼1.70ms] Passed 4 tests

This is a short check of server-side resources used by WP Webhooks - Comments
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2637.43 ▼2.98
Dashboard /wp-admin3.57 ▲0.2647.36 ▼3.66
Posts /wp-admin/edit.php3.68 ▲0.3249.89 ▲5.04
Add New Post /wp-admin/post-new.php6.15 ▲0.2687.58 ▼3.57
Media Library /wp-admin/upload.php3.49 ▲0.2637.51 ▲3.43

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Webhooks - Comments
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲8413.22 ▼1.161.57 ▼0.2340.71 ▼10.53
Dashboard /wp-admin2,228 ▲404.89 ▼0.03112.89 ▲3.7943.72 ▲5.86
Posts /wp-admin/edit.php2,108 ▲222.03 ▲0.0041.10 ▲6.3230.44 ▼4.42
Add New Post /wp-admin/post-new.php1,533 ▼017.84 ▼5.46678.43 ▲35.9551.97 ▲2.25
Media Library /wp-admin/upload.php1,407 ▲164.26 ▲0.02102.89 ▲4.3342.00 ▼1.22

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes: The official readme.txt might help

wp-webhooks-comments/wp-webhooks-comments.php Passed 13 tests

"WP Webhooks - Comments" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
65 characters long description:
A WP Webhooks and WP Webhooks Pro extension for handling comments

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,281 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12691201,280
Markdown1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity182.00
▷ Minimum class complexity182.00
▷ Maximum class complexity182.00
Average method complexity8.87
▷ Minimum method complexity1.00
▷ Maximum method complexity39.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%
Functions2
▷ Named functions2100.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 are no PNG files in this plugin