Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼6.74ms] Passed 4 tests
Server-side resources used by Dashboard Directory Size
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.38 ▲0.92 | 22.08 ▼20.03 |
Dashboard /wp-admin | 3.47 ▲0.17 | 52.72 ▼1.65 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 50.81 ▲2.23 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.17 | 90.92 ▼7.51 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 39.61 ▲4.54 |
Dashboard Directory Size /wp-admin/options-general.php?page=dashboard-directory-size-settings | 3.36 | 42.53 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Dashboard Directory Size
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,977 ▲191 | 14.76 ▲0.18 | 2.42 ▲0.46 | 45.18 ▲1.64 |
Dashboard /wp-admin | 2,371 ▲191 | 5.86 ▲0.21 | 111.81 ▲19.96 | 45.09 ▲1.78 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.06 ▲0.06 | 35.69 ▼3.29 | 34.80 ▲0.64 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 17.64 ▼0.00 | 654.56 ▼34.07 | 47.97 ▼0.24 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.19 ▼0.10 | 101.34 ▼6.95 | 43.25 ▼2.82 |
Dashboard Directory Size /wp-admin/options-general.php?page=dashboard-directory-size-settings | 955 | 2.19 | 28.94 | 28.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 8× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/dashboard-directory-size/dashboard-directory-size.php
- > /wp-content/plugins/dashboard-directory-size/includes/class-dashboard-directory-size-dashboard-widget.php
- > /wp-content/plugins/dashboard-directory-size/admin/partials/admin-help.php
- > /wp-content/plugins/dashboard-directory-size/includes/class-dashboard-directory-size-common.php
- > /wp-content/plugins/dashboard-directory-size/includes/class-dashboard-directory-size-i18n.php
- > /wp-content/plugins/dashboard-directory-size/includes/class-dashboard-directory-size-settings.php
- > /wp-content/plugins/dashboard-directory-size/uninstall.php
- > /wp-content/plugins/dashboard-directory-size/includes/class-dashboard-directory-size-rest-api.php
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
require_once(): Failed opening required 'DASHBOARD_DIRECOTRY_SIZE_ROOTincludes/wp-cli/class-dashboard-directory-size-base-command.php' (include_path='.:/usr/share/php') in wp-content/plugins/dashboard-directory-size/includes/wp-cli/setup.php on line 10
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/dashboard-directory-size/includes/wp-cli/class-dashboard-directory-size-base-command.php:3
- > PHP Warning
Use of undefined constant DASHBOARD_DIRECOTRY_SIZE_ROOT - assumed 'DASHBOARD_DIRECOTRY_SIZE_ROOT' (this will throw an Error in a future version of PHP) in wp-content/plugins/dashboard-directory-size/includes/wp-cli/setup.php on line 10
- > PHP Warning
require_once(DASHBOARD_DIRECOTRY_SIZE_ROOTincludes/wp-cli/class-dashboard-directory-size-base-command.php): failed to open stream: No such file or directory in wp-content/plugins/dashboard-directory-size/includes/wp-cli/setup.php on line 10
- > PHP Fatal error
Uncaught Error: Class 'Dashboard_Directory_Size_Base_Command' not found in wp-content/plugins/dashboard-directory-size/includes/wp-cli/class-dashboard-directory-size-command.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: folder size, dashboard, dashboard widget, directory size
dashboard-directory-size/dashboard-directory-size.php Passed 13 tests
Analyzing the main PHP file in "Dashboard Directory Size" version 1.6.0
43 characters long description:
Dashboard widget to display directory sizes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,016 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 337 | 110 | 913 |
JavaScript | 1 | 32 | 4 | 88 |
CSS | 1 | 4 | 0 | 15 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 2.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 60 | |
▷ Static methods | 58 | 96.67% |
▷ Public methods | 59 | 98.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.67% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ Public constants | 2 | 100.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
There were not PNG files found in your plugin