84% disk-usage-sunburst

Code Review | Disk Usage Sunburst

WordPress plugin Disk Usage Sunburst scored84%from 54 tests.

About plugin

  • Plugin page: disk-usage-sunburst
  • Plugin version: 1.1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Apr 8, 2015
  • Latest release: Sep 25, 2023
  • Number of updates: 71
  • Update frequency: every 43.6 days
  • Top authors: raidboxes (100%)

Code review

54 tests

User reviews

34 reviews

Install metrics

8,000+ active /88,029 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼0.79ms] Passed 4 tests

Analyzing server-side resources used by Disk Usage Sunburst
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.73 ▲2.73
Dashboard /wp-admin3.31 ▲0.0152.31 ▲1.07
Posts /wp-admin/edit.php3.36 ▲0.0149.10 ▼1.49
Add New Post /wp-admin/post-new.php5.89 ▲0.0188.20 ▼5.48
Media Library /wp-admin/upload.php3.24 ▲0.0140.91 ▲6.39
Disk Usage /wp-admin/tools.php?page=disk-usage-sunburst/rbdusb-disk-usage-sunburst.php3.2333.97

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Disk Usage Sunburst
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.32 ▼0.052.01 ▲0.1943.62 ▼0.13
Dashboard /wp-admin2,202 ▲225.56 ▼0.0791.06 ▲1.3137.98 ▼6.26
Posts /wp-admin/edit.php2,104 ▲12.01 ▲0.0233.66 ▼9.1437.82 ▲1.01
Add New Post /wp-admin/post-new.php1,529 ▲323.77 ▲0.77618.47 ▼79.5555.75 ▲4.14
Media Library /wp-admin/upload.php1,404 ▲44.15 ▼0.06101.50 ▼3.3944.05 ▼0.45
Disk Usage /wp-admin/tools.php?page=disk-usage-sunburst/rbdusb-disk-usage-sunburst.php9,1727.08155.3439.58

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/disk-usage-sunburst/views/ajax.php
    • > /wp-content/plugins/disk-usage-sunburst/views/index.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Tags: You are using too many tags: 28 tag instead of maximum 10
Please take inspiration from this readme.txt

disk-usage-sunburst/rbdusb-disk-usage-sunburst.php 92% from 13 tests

"Disk Usage Sunburst" version 1.1.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("disk-usage-sunburst.php" instead of "rbdusb-disk-usage-sunburst.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
Good job! No executable or dangerous file extensions detected228 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP4323284
JavaScript214181
CSS14063

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions9
▷ Named functions666.67%
▷ Anonymous functions333.33%
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
No PNG files were detected