Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼1.18ms] Passed 4 tests
Analyzing server-side resources used by WP Discord Post
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 44.10 ▼0.13 |
Dashboard /wp-admin | 3.33 ▲0.03 | 56.40 ▲2.41 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 53.43 ▲1.22 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 97.22 ▼4.97 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 40.85 ▼0.84 |
WP Discord Post /wp-admin/options-general.php?page=wp-discord-post | 3.22 | 36.49 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Discord Post
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.35 ▼0.04 | 1.70 ▲0.08 | 44.96 ▲3.55 |
Dashboard /wp-admin | 2,202 ▲25 | 5.61 ▼0.03 | 97.69 ▲8.68 | 41.50 ▼2.93 |
Posts /wp-admin/edit.php | 2,101 ▼2 | 1.95 ▲0.00 | 34.57 ▼9.19 | 38.45 ▼0.11 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.36 ▲0.34 | 662.15 ▼81.08 | 59.76 ▲7.28 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.22 ▲0.05 | 106.73 ▼11.53 | 48.14 ▲0.26 |
WP Discord Post /wp-admin/options-general.php?page=wp-discord-post | 914 | 2.00 | 22.66 | 30.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely 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-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
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
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files
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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
wp-discord-post/wp-discord-post.php Passed 13 tests
The main PHP file in "WP Discord Post" ver. 2.1.0 adds more information about the plugin and also serves as the entry point for this plugin
115 characters long description:
A Discord integration that sends a message on your desired Discord server and channel for every new post published.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,124 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 287 | 521 | 1,124 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 11.90 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 75 | |
▷ Static methods | 4 | 5.33% |
▷ Public methods | 64 | 85.33% |
▷ Protected methods | 7 | 9.33% |
▷ Private methods | 4 | 5.33% |
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 images were found in this plugin