94% bugsnag

Code Review | WordPress Error Monitoring by Bugsnag

WordPress plugin WordPress Error Monitoring by Bugsnag scored 94% from 54 tests.

About plugin

  • Plugin page: bugsnag
  • Plugin version: 1.6.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0-5.8.1
  • WordPress version: 5.8.1
  • First release: Dec 19, 2013
  • Latest release: Sep 21, 2021
  • Number of updates: 36
  • Update frequency: every 78.7 days
  • Top authors: loopj (52.78%)bengourley (19.44%)conradirwin (16.67%)imjoehaines (13.89%)tomlongridge (8.33%)

Code review

54 tests

User reviews

7 reviews

Install metrics

2,000+ active / 47,471 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.25MB] [CPU: ▼140.00ms] Passed 4 tests

A check of server-side resources used by WordPress Error Monitoring by Bugsnag
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.10 ▲0.3838.75 ▲18.65
Dashboard /wp-admin3.34 ▲0.2945.20 ▲1.86
Posts /wp-admin/edit.php3.39 ▲0.2947.43 ▲4.51
Add New Post /wp-admin/post-new.php5.64 ▲0.2192.74 ▼562.83
Media Library /wp-admin/upload.php3.22 ▲0.2232.90 ▼3.52
Bugsnag /wp-admin/options-general.php?page=bugsnag3.2030.13

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by WordPress Error Monitoring by Bugsnag
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲8815.77 ▲0.197.55 ▼1.8047.10 ▼0.16
Dashboard /wp-admin2,975 ▲446.08 ▼0.03134.14 ▼11.04110.44 ▼8.18
Posts /wp-admin/edit.php2,744 ▲52.68 ▼0.0163.71 ▼3.0185.67 ▼7.21
Add New Post /wp-admin/post-new.php1,686 ▲8218.53 ▼0.24371.46 ▼5.22109.82 ▼1.72
Media Library /wp-admin/upload.php1,812 ▲55.03 ▲0.01141.66 ▼3.35124.31 ▲10.34
Bugsnag /wp-admin/options-general.php?page=bugsnag1,0872.1056.0071.29

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/bugsnag/views/settings.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/bugsnag/bugsnag.php:350

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: error, exception, bugsnag, monitoring, logging

bugsnag/bugsnag.php 92% from 13 tests

The principal PHP file in "WordPress Error Monitoring by Bugsnag" v. 1.6.1 is loaded by WordPress automatically on each request
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 146 characters long)

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
Success! There were no dangerous files found in this plugin1,375 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis 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.37
Average class complexity20.67
▷ Minimum class complexity5.00
▷ Maximum class complexity37.00
Average method complexity2.53
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
▷ Static methods1815.52%
▷ Public methods9783.62%
▷ Protected methods00.00%
▷ Private methods1916.38%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin