Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼2.61ms] Passed 4 tests
This is a short check of server-side resources used by DirectAdmin Dashboard
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 36.77 ▼5.40 |
Dashboard /wp-admin | 3.37 ▲0.07 | 43.31 ▼5.86 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 51.48 ▲6.30 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 87.77 ▼5.49 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 37.65 ▲6.76 |
DA Settings /wp-admin/options-general.php?page=da_wp | 3.26 | 28.24 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for DirectAdmin Dashboard
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲51 | 14.35 ▼0.03 | 1.54 ▼0.29 | 37.79 ▼5.05 |
Dashboard /wp-admin | 2,203 ▲29 | 5.68 ▲0.16 | 96.45 ▲0.15 | 42.43 ▼1.99 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.98 ▼0.03 | 44.02 ▲7.03 | 37.49 ▲4.93 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.54 ▲0.42 | 608.99 ▼76.02 | 58.08 ▲6.63 |
Media Library /wp-admin/upload.php | 1,401 ▼2 | 4.18 ▲0.01 | 97.14 ▼5.06 | 40.50 ▼4.63 |
DA Settings /wp-admin/options-general.php?page=da_wp | 802 | 2.00 | 28.08 | 31.22 |
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
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/directadmin-dashboard/directadmin-dashboard.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/directadmin-dashboard/templates/settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/directadmin-dashboard/templates/da-dashboard.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== directadmin-dashboard ===
) - Contributors: The plugin contributors field is missing
directadmin-dashboard/directadmin-dashboard.php 92% from 13 tests
This is the main PHP file of "DirectAdmin Dashboard" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin725 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 175 | 278 | 460 |
Bourne Shell | 1 | 37 | 45 | 157 |
PO File | 1 | 18 | 18 | 61 |
CSS | 1 | 8 | 0 | 45 |
JavaScript | 1 | 0 | 9 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 16.25 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 2 | 5.00% |
▷ Public methods | 40 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
PNG images were not found in this plugin