Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼6.58ms] Passed 4 tests
This is a short check of server-side resources used by Discord Display
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 38.43 ▼3.95 |
Dashboard /wp-admin | 3.37 ▲0.07 | 49.96 ▼8.79 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 53.26 ▲1.16 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 92.23 ▼14.74 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 40.51 ▲4.99 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_discord_display_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Discord Display
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲9 | 14.74 ▲0.45 | 1.74 ▼0.38 | 35.71 ▼7.97 |
Dashboard /wp-admin | 2,195 ▲15 | 5.61 ▲0.05 | 91.68 ▼1.61 | 38.18 ▼6.06 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▲0.03 | 42.47 ▲8.40 | 39.10 ▼1.54 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.11 ▼0.08 | 643.26 ▼49.88 | 56.26 ▲7.28 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.19 ▲0.04 | 94.16 ▼16.60 | 46.61 ▼2.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_discord_display_widget
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 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
4 plugin tags: team speak, discord, teamspeak, mumble
discord-display/discord-display.php Passed 13 tests
The main PHP file in "Discord Display" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
66 characters long description:
Provides a simple native widget for displaying your Discord server
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
Good job! No executable or dangerous file extensions detected323 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 107 | 190 | 276 |
CSS | 1 | 15 | 4 | 47 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 19.67 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 6.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 47.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 1 | 10.00% |
▷ Public methods | 9 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 10.00% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin