Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼9.60ms] Passed 4 tests
A check of server-side resources used by KDC Dashboard
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.87 ▼1.45 |
Dashboard /wp-admin | 3.34 ▲0.03 | 48.78 ▼7.54 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.01 ▼8.01 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 84.05 ▼20.93 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.10 ▼1.93 |
Server storage [IO: ▲2.45MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for KDC Dashboard
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,843 ▲82 | 14.14 ▼0.25 | 2.01 ▲0.25 | 34.21 ▼12.14 |
Dashboard /wp-admin | 2,156 ▼11 | 5.52 ▼0.07 | 84.48 ▼26.10 | 69.30 ▲23.65 |
Posts /wp-admin/edit.php | 2,076 ▼24 | 2.00 ▼0.02 | 37.39 ▼2.12 | 37.58 ▼0.11 |
Add New Post /wp-admin/post-new.php | 1,671 ▲145 | 22.18 ▼0.44 | 763.03 ▲94.81 | 43.64 ▼5.25 |
Media Library /wp-admin/upload.php | 1,364 ▼33 | 4.10 ▼0.10 | 104.37 ▼9.39 | 87.26 ▲41.55 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/ws-dash/ws_dash.php
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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: icon, customization, font icon, kdc
ws-dash/ws_dash.php 92% from 13 tests
Analyzing the main PHP file in "KDC Dashboard" version 2.0
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("ws-dash.php" instead of "ws_dash.php")
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
No dangerous file extensions were detected10,977 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
HTML | 1 | 3 | 6 | 6,726 |
CSS | 3 | 6 | 0 | 3,053 |
SVG | 5 | 0 | 4 | 574 |
JavaScript | 2 | 4 | 7 | 528 |
PHP | 1 | 23 | 41 | 96 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.03 |
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
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/ws-login-logo.png | 4.48KB | 2.08KB | ▼ 53.46% |
assets/img/ws-tb-icon.png | 0.43KB | 0.33KB | ▼ 23.98% |
assets/img/kdc-login-logo.png | 1.27KB | 0.66KB | ▼ 48.11% |
assets/img/kdc-tb-icon.png | 0.37KB | 0.28KB | ▼ 24.14% |