84% ws-dash

Code Review | KDC Dashboard

WordPress plugin KDC Dashboard scored84%from 54 tests.

About plugin

  • Plugin page: ws-dash
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-5.0.1
  • WordPress version: 6.3.1
  • First release: Oct 3, 2014
  • Latest release: Dec 19, 2018
  • Number of updates: 13
  • Update frequency: every 119.1 days
  • Top authors: kdclabs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,305 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.87 ▼1.45
Dashboard /wp-admin3.34 ▲0.0348.78 ▼7.54
Posts /wp-admin/edit.php3.39 ▲0.0349.01 ▼8.01
Add New Post /wp-admin/post-new.php5.92 ▲0.0384.05 ▼20.93
Media Library /wp-admin/upload.php3.26 ▲0.0335.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲8214.14 ▼0.252.01 ▲0.2534.21 ▼12.14
Dashboard /wp-admin2,156 ▼115.52 ▼0.0784.48 ▼26.1069.30 ▲23.65
Posts /wp-admin/edit.php2,076 ▼242.00 ▼0.0237.39 ▼2.1237.58 ▼0.11
Add New Post /wp-admin/post-new.php1,671 ▲14522.18 ▼0.44763.03 ▲94.8143.64 ▼5.25
Media Library /wp-admin/upload.php1,364 ▼334.10 ▼0.10104.37 ▼9.3987.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:
LanguageFilesBlank linesComment linesLines of code
HTML1366,726
CSS3603,053
SVG504574
JavaScript247528
PHP1234196

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 code0.03
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/img/ws-login-logo.png4.48KB2.08KB▼ 53.46%
assets/img/ws-tb-icon.png0.43KB0.33KB▼ 23.98%
assets/img/kdc-login-logo.png1.27KB0.66KB▼ 48.11%
assets/img/kdc-tb-icon.png0.37KB0.28KB▼ 24.14%