90% dashy

Code Review | Dashy

WordPress plugin Dashy scored90%from 54 tests.

About plugin

  • Plugin page: dashy
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.1
  • WordPress version: 6.3.1
  • First release: Apr 1, 2015
  • Latest release: Apr 1, 2015
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: ktheisen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /892 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▲3.05ms] Passed 4 tests

This is a short check of server-side resources used by Dashy
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0544.29 ▲4.77
Dashboard /wp-admin3.37 ▲0.0654.51 ▲0.81
Posts /wp-admin/edit.php3.42 ▲0.0655.29 ▲1.78
Add New Post /wp-admin/post-new.php5.98 ▲0.0996.72 ▲4.83
Media Library /wp-admin/upload.php3.29 ▲0.0643.49 ▲5.96

Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Dashy
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲8414.42 ▲0.041.70 ▼0.0439.15 ▼7.27
Dashboard /wp-admin2,248 ▲744.94 ▼0.6692.23 ▲3.8736.55 ▼3.29
Posts /wp-admin/edit.php2,156 ▲592.34 ▲0.3541.72 ▲2.5335.21 ▼1.75
Add New Post /wp-admin/post-new.php1,571 ▲4523.64 ▲0.62662.26 ▼63.5366.95 ▲10.84
Media Library /wp-admin/upload.php1,459 ▲594.45 ▲0.21101.54 ▼5.2844.48 ▼2.20

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

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)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: admin, quick, keyboard, shortcut

dashy/dashy.php 92% from 13 tests

The primary PHP file in "Dashy" version 1.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 213 characters long)

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
No dangerous file extensions were detected1,121 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS212619582
PHP1109182318
JavaScript35447218
Markdown1303

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.55
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%
Functions16
▷ Named functions16100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
select2.png0.60KB0.99KB0.00%
select2x2.png0.83KB0.77KB▼ 6.15%