Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.75ms] Passed 4 tests
A check of server-side resources used by Bugherd Dashboard
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.73 ▼3.73 |
Dashboard /wp-admin | 3.29 ▼0.01 | 41.91 ▼6.54 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.16 ▼2.08 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 94.36 ▲2.31 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.45 ▲1.36 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Bugherd Dashboard
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,923 ▲188 | 13.61 ▼0.76 | 5.74 ▲3.40 | 40.62 ▼5.29 |
Dashboard /wp-admin | 2,246 ▲58 | 4.85 ▼0.00 | 110.20 ▲2.37 | 41.68 ▼1.88 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.00 ▼0.02 | 40.09 ▼2.33 | 35.68 ▼1.74 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.14 ▲4.70 | 640.70 ▲17.83 | 53.19 ▼4.55 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.24 ▲0.04 | 96.33 ▼8.08 | 38.56 ▼8.13 |
Uninstaller [IO: ▲0.10MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attentionZombie WordPress options were found after uninstall: 7 options
- The plugin did not uninstall gracefully
- > Error in wp-content/plugins/bugherd-dashboard/public/class-bugherd-dashboard.php+228
Uncaught Error: Using $this when not in object context in wp-content/plugins/bugherd-dashboard/public/class-bugherd-dashboard.php:228
Stack trace:
#0 wp-content/plugins/bugherd-dashboard/public/class-bugherd-dashboard.php(165): Bugherd_Dashboard::single_deactivate()
#1 wp-includes/class-wp-hook.php(310): Bugherd_Dashboard::deactivate()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/includes/plugin.php(816): do_action() - Uninstaller has failed for this plugin, leaving 29 files (0.10MB) in the plugin directory
- (new file) admin/assets/css/admin.css
- (new file) admin/views/dashboard-activity.php
- (new file) admin/views/dashboard-activity-settings.php
- (new file) admin/includes/index.php
- (new file) admin/assets/css/index.php
- (new file) admin/class-bugherd-dashboard-admin.php
- (new file) admin/assets/js/index.php
- (new file) README.txt
- (new file) admin/views/index.php
- (new file) LICENSE.txt
- ...
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- recovery_mode_email_last_sent
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 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)
Even though no errors were found, 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 fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/bugherd-dashboard/public/views/public.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Bugherd_Dashboard' not found in wp-content/plugins/bugherd-dashboard/admin/views/dashboard-activity-settings.php:3
- > PHP Fatal error
Uncaught Error: Class 'Bugherd_Dashboard' not found in wp-content/plugins/bugherd-dashboard/admin/views/dashboard-activity.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add descriptions for screenshots #2, #3 in bugherd-dashboard/assets to your readme.txt
bugherd-dashboard/bugherd-dashboard.php 92% from 13 tests
This is the main PHP file of "Bugherd Dashboard" version 1.0.0, 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: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
No dangerous file extensions were detected354 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 132 | 223 | 276 |
CSS | 2 | 10 | 2 | 73 |
JavaScript | 1 | 4 | 1 | 5 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 12 | 57.14% |
▷ Public methods | 16 | 76.19% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 23.81% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 8.02KB | 6.14KB | ▼ 23.49% |