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.13MB] [CPU: ▼2.17ms] Passed 4 tests
Server-side resources used by Webhook for Discord
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 38.05 ▼1.13 |
Dashboard /wp-admin | 3.43 ▲0.13 | 47.60 ▼4.65 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 49.48 ▼0.40 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 96.26 ▼2.51 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 38.07 ▲0.19 |
Webhook for Discord /wp-admin/options-general.php?page=discord-webhook | 3.32 | 38.00 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Webhook for Discord: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.23 ▼0.12 | 1.65 ▼0.07 | 39.90 ▼0.79 |
Dashboard /wp-admin | 2,199 ▲22 | 5.63 ▲0.06 | 89.56 ▲1.72 | 39.33 ▼4.94 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.04 ▲0.02 | 39.29 ▲5.05 | 36.19 ▼3.44 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.16 ▲0.05 | 651.44 ▲0.00 | 60.07 ▲5.89 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.26 ▲0.06 | 94.27 ▼2.24 | 42.37 ▼6.18 |
Webhook for Discord /wp-admin/options-general.php?page=discord-webhook | 861 | 1.99 | 21.79 | 27.66 |
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_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
The SRP test was a success
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 96% from 29 tests
readme.txt Passed 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
3 plugin tags: chat, webhook, discord
webhook-discord/discord-webhook.php 92% from 13 tests
Analyzing the main PHP file in "Webhook for Discord" version 1.2.2
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("webhook-discord.php" instead of "discord-webhook.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
There were no executable files found in this plugin1,070 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 231 | 483 | 1,026 |
PO File | 1 | 12 | 14 | 44 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 11.82 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 79 | |
▷ Static methods | 4 | 5.06% |
▷ Public methods | 68 | 86.08% |
▷ Protected methods | 7 | 8.86% |
▷ Private methods | 4 | 5.06% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected