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.02MB] [CPU: ▼13.04ms] Passed 4 tests
Analyzing server-side resources used by DiskHero
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.78 ▼4.90 |
Dashboard /wp-admin | 3.34 ▼0.01 | 47.67 ▼29.29 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 48.59 ▼2.84 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 91.85 ▼15.12 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 53.70 ▲19.34 |
Server storage [IO: ▲0.09MB] [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: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
DiskHero: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲69 | 13.25 ▼1.25 | 1.75 ▼0.17 | 41.20 ▼0.89 |
Dashboard /wp-admin | 2,224 ▲36 | 5.84 ▼0.02 | 98.80 ▼6.89 | 79.93 ▲39.30 |
Posts /wp-admin/edit.php | 2,107 ▲21 | 2.06 ▲0.04 | 35.43 ▼2.90 | 33.55 ▲0.97 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 22.67 ▼0.36 | 747.98 ▲117.73 | 50.05 ▲0.99 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.13 ▼0.07 | 109.55 ▲3.35 | 77.89 ▲32.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 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 0% 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
The following issues need your attention
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/diskhero/admin/stats-page.php
- > /wp-content/plugins/diskhero/includes/functions.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/diskhero/diskhero.php:15
- > PHP Fatal error
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 Passed 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
5 plugin tags: disk analysis, storage analysis, disk statistics, disk usage, disk stats
diskhero/diskhero.php Passed 13 tests
The primary PHP file in "DiskHero" version 1.0 is used by WordPress to initiate all plugin functionality
25 characters long description:
Simple disk stats plugin.
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
Success! There were no dangerous files found in this plugin658 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 65 | 233 | 288 |
PHP | 3 | 49 | 26 | 188 |
CSS | 1 | 31 | 0 | 180 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
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 | 9 | |
▷ Named functions | 8 | 88.89% |
▷ Anonymous functions | 1 | 11.11% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/wporbit.png | 12.04KB | 6.41KB | ▼ 46.78% |
images/logo.png | 25.23KB | 9.10KB | ▼ 63.93% |
images/favicon.png | 20.57KB | 7.83KB | ▼ 61.91% |