58% bugherd-dashboard

Code Review | Bugherd Dashboard

WordPress plugin Bugherd Dashboard scored58%from 54 tests.

About plugin

  • Plugin page: bugherd-dashboard
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-3.9.2
  • WordPress version: 6.3.1
  • First release: Apr 22, 2014
  • Latest release: Apr 24, 2014
  • Number of updates: 10
  • Update frequency: every 7.4 days
  • Top authors: drrobotnik (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,900 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.73 ▼3.73
Dashboard /wp-admin3.29 ▼0.0141.91 ▼6.54
Posts /wp-admin/edit.php3.37 ▲0.0148.16 ▼2.08
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.36 ▲2.31
Media Library /wp-admin/upload.php3.24 ▲0.0132.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,923 ▲18813.61 ▼0.765.74 ▲3.4040.62 ▼5.29
Dashboard /wp-admin2,246 ▲584.85 ▼0.00110.20 ▲2.3741.68 ▼1.88
Posts /wp-admin/edit.php2,089 ▼32.00 ▼0.0240.09 ▼2.3335.68 ▼1.74
Add New Post /wp-admin/post-new.php1,533 ▼023.14 ▲4.70640.70 ▲17.8353.19 ▼4.55
Media Library /wp-admin/upload.php1,388 ▼04.24 ▲0.0496.33 ▼8.0838.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 attention
  • 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
    • ...
  • Zombie WordPress options were found after uninstall: 7 options
    • 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

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: You can take inspiration from this 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:
LanguageFilesBlank linesComment linesLines of code
PHP8132223276
CSS210273
JavaScript1415

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 code0.29
Average class complexity12.00
▷ Minimum class complexity3.00
▷ Maximum class complexity21.00
Average method complexity2.05
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods21
▷ Static methods1257.14%
▷ Public methods1676.19%
▷ Protected methods00.00%
▷ Private methods523.81%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
FileSize - originalSize - compressedSavings
assets/screenshot-3.png8.02KB6.14KB▼ 23.49%