94% debug-bar-bbpress

Code Review | Debug Bar bbPress

WordPress plugin Debug Bar bbPress scored 94% from 54 tests.

About plugin

  • Plugin page: debug-bar-bbpress
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.5.1
  • WordPress version: 5.8.1
  • First release: Mar 25, 2013
  • Latest release: Mar 30, 2013
  • Number of updates: 14
  • Update frequency: every 0.4 days
  • Top authors: MZAWeb (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 2,885 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼137.91ms] Passed 4 tests

Analyzing server-side resources used by Debug Bar bbPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1232.74 ▲10.13
Dashboard /wp-admin3.06 ▲0.0153.15 ▲2.83
Posts /wp-admin/edit.php3.11 ▲0.0147.39 ▲1.42
Add New Post /wp-admin/post-new.php5.42 ▼0.0185.19 ▼558.77
Media Library /wp-admin/upload.php3.01 ▲0.0033.58 ▲2.89

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Debug Bar bbPress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲9715.88 ▲0.3811.94 ▼0.4644.30 ▼5.53
Dashboard /wp-admin2,992 ▲615.93 ▼0.06146.28 ▼10.25109.82 ▼13.04
Posts /wp-admin/edit.php2,739 ▼02.71 ▼0.0066.20 ▼11.0188.07 ▲5.32
Add New Post /wp-admin/post-new.php1,500 ▼2,18718.54 ▲3.44397.80 ▼65.04106.31 ▼3.57
Media Library /wp-admin/upload.php1,807 ▼35.03 ▲0.01153.75 ▼0.56117.42 ▲3.01

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
Almost there! Just fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Debug_Bar_Panel' not found in wp-content/plugins/debug-bar-bbpress/class-debug-bar-bbpress.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/debug-bar-bbpress/debug-bar-bbress.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
1 plugin tags: debug bar bbpress

debug-bar-bbpress/debug-bar-bbress.php 92% from 13 tests

This is the main PHP file of "Debug Bar bbPress" version 0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("debug-bar-bbpress.php" instead of "debug-bar-bbress.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin53 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2261153

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods480.00%
▷ Protected methods00.00%
▷ Private methods120.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin