Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.12ms] Passed 4 tests
An overview of server-side resources used by Live Members Counter For Discord
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 39.27 ▼2.32 |
Dashboard /wp-admin | 3.37 ▲0.07 | 46.80 ▼0.68 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 48.66 ▲1.25 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 82.34 ▼12.79 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 34.59 ▼0.70 |
Members Counter /wp-admin/options-general.php?page=dlmc | 3.26 | 33.18 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Live Members Counter For Discord
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 13.54 ▼0.91 | 1.73 ▼0.34 | 44.08 ▲1.06 |
Dashboard /wp-admin | 2,208 ▲17 | 5.96 ▲1.13 | 119.28 ▲8.86 | 40.63 ▼4.57 |
Posts /wp-admin/edit.php | 2,097 ▲11 | 2.03 ▲0.01 | 40.23 ▲4.36 | 34.98 ▲1.37 |
Add New Post /wp-admin/post-new.php | 1,530 ▼14 | 18.22 ▲0.06 | 604.95 ▼4.53 | 47.96 ▼7.69 |
Media Library /wp-admin/upload.php | 1,399 ▲8 | 4.24 ▲0.07 | 96.79 ▼7.39 | 41.62 ▼1.24 |
Members Counter /wp-admin/options-general.php?page=dlmc | 880 | 2.06 | 22.70 | 34.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: discord, shortcode, discord server members, discord server, live counter...
live-members-counter-for-discord/index.php 92% from 13 tests
The main PHP script in "Live Members Counter For Discord" version 1.0.1 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("live-members-counter-for-discord.php" instead of "index.php")
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
Success! There were no dangerous files found in this plugin414 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 64 | 8 | 336 |
CSS | 1 | 11 | 0 | 51 |
JavaScript | 1 | 4 | 0 | 27 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 5.33 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 23 | |
▷ Static methods | 23 | 100.00% |
▷ Public methods | 11 | 47.83% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 52.17% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 6 | 100.00% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin