84% bugherd

Code Review | BugHerd

WordPress plugin BugHerd scored84%from 54 tests.

About plugin

  • Plugin page: bugherd
  • Plugin version: 1.0.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4
  • WordPress version: 6.3.1
  • First release: Aug 19, 2012
  • Latest release: Oct 4, 2023
  • Number of updates: 23
  • Update frequency: every 176.7 days
  • Top authors: simpleux (39.13%)bugherd (34.78%)vbrendel (34.78%)

Code review

54 tests

User reviews

3 reviews

Install metrics

2,000+ active /25,526 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼1.10ms] Passed 4 tests

An overview of server-side resources used by BugHerd
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.04 ▲2.16
Dashboard /wp-admin3.34 ▲0.0445.82 ▼1.50
Posts /wp-admin/edit.php3.39 ▲0.0457.31 ▲7.80
Add New Post /wp-admin/post-new.php5.93 ▲0.0481.05 ▼7.57
Media Library /wp-admin/upload.php3.27 ▲0.0436.45 ▲2.52
BugHerd /wp-admin/options-general.php?page=bugherd3.2334.48

Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by BugHerd
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6014.79 ▲0.161.75 ▼0.1739.00 ▼3.39
Dashboard /wp-admin2,209 ▲275.82 ▲0.98103.75 ▼5.3636.97 ▼4.09
Posts /wp-admin/edit.php2,095 ▲91.99 ▼0.0238.97 ▲2.3435.20 ▲0.57
Add New Post /wp-admin/post-new.php1,538 ▲523.12 ▼0.19692.46 ▲39.0556.99 ▲4.17
Media Library /wp-admin/upload.php1,397 ▲94.23 ▲0.04106.19 ▲2.6046.87 ▲4.39
BugHerd /wp-admin/options-general.php?page=bugherd8142.0227.1435.72

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
    • > GET request to /wp-admin/options-general.php?page=bugherd
    • > Network (severe)
    wp-content/plugins/bugherd/assets/assets/fonts/Avenir-Heavy.woff2 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

bugherd/bugherd.php Passed 13 tests

The main PHP script in "BugHerd" version 1.0.6 is automatically included on every request by WordPress
85 characters long description:
BugHerd is the visual feedback tool for websites. For help, go to support.bugherd.com

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
There were no executable files found in this plugin202 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP332128151
CSS18037
SVG10014

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/logo-web.png9.99KB3.65KB▼ 63.50%