Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.92ms] Passed 4 tests
Server-side resources used by WP Discord Invite
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 44.66 ▲5.02 |
Dashboard /wp-admin | 3.33 ▲0.03 | 46.21 ▼4.96 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 52.22 ▼2.04 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 82.50 ▼15.58 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.34 ▲2.91 |
Click Count /wp-admin/admin.php?page=wp-discord-invite-count | 3.22 | 33.75 |
WP Discord Invite /wp-admin/admin.php?page=wp-discord-invite | 3.23 | 35.96 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 10 new options
New WordPress options |
---|
smr_discord_link_last_click |
db_upgraded |
smr_discord_uri |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
smr_discord_click_count_last_reset |
widget_theysaidso_widget |
smr_discord_click_count |
Browser metrics Passed 4 tests
Checking browser requirements for WP Discord Invite
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,861 ▲100 | 13.44 ▼0.71 | 2.13 ▲0.43 | 44.15 ▲6.95 |
Dashboard /wp-admin | 2,267 ▲64 | 5.04 ▼0.84 | 110.76 ▲7.45 | 38.16 ▼7.87 |
Posts /wp-admin/edit.php | 2,151 ▲48 | 2.32 ▲0.28 | 39.20 ▼2.71 | 36.79 ▼2.06 |
Add New Post /wp-admin/post-new.php | 1,562 ▲31 | 23.54 ▲0.36 | 670.96 ▼12.11 | 37.38 ▼22.19 |
Media Library /wp-admin/upload.php | 1,446 ▲46 | 4.53 ▲0.29 | 103.09 ▼9.77 | 46.49 ▼0.70 |
Click Count /wp-admin/admin.php?page=wp-discord-invite-count | 1,009 | 2.00 | 28.44 | 34.18 |
WP Discord Invite /wp-admin/admin.php?page=wp-discord-invite | 1,190 | 2.37 | 41.95 | 36.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 10 options
- can_compress_scripts
- widget_theysaidso_widget
- smr_discord_click_count_last_reset
- smr_discord_click_count
- smr_discord_link_last_click
- widget_recent-posts
- theysaidso_admin_options
- smr_discord_uri
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 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
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-discord-invite/includes/helpPage.php
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 Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: discord invite links, url, link, discord, vanity...
wp-discord-invite/wp-discord-invite.php Passed 13 tests
The main PHP script in "WP Discord Invite" version 2.5.2 is automatically included on every request by WordPress
37 characters long description:
Easily add vanity URL in your WP Site
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
Everything looks great! No dangerous files found in this plugin573 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 106 | 144 | 490 |
CSS | 2 | 0 | 0 | 62 |
SVG | 1 | 0 | 1 | 18 |
JavaScript | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
9 PNG files occupy 0.26MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 33.77KB | 12.85KB | ▼ 61.94% |
assets/icon-128x128.png | 6.79KB | 3.53KB | ▼ 48.11% |
assets/icon-256x256.png | 21.28KB | 8.74KB | ▼ 58.93% |
assets/screenshot-5.png | 16.56KB | 6.44KB | ▼ 61.14% |
assets/screenshot-4.png | 45.65KB | 19.21KB | ▼ 57.92% |