84% bogo-bbpress

Code Review | Bogo bbPress

WordPress plugin Bogo bbPress scored84%from 54 tests.

About plugin

  • Plugin page: bogo-bbpress
  • Plugin version: 3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.1.1
  • WordPress version: 6.3.1
  • First release: Feb 25, 2015
  • Latest release: Apr 2, 2015
  • Number of updates: 19
  • Update frequency: every 1.9 days
  • Top authors: mechter (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,014 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Bogo bbPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0046.32 ▲10.37
Dashboard /wp-admin3.31 ▲0.0045.05 ▼1.94
Posts /wp-admin/edit.php3.36 ▲0.0043.22 ▼2.81
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.24 ▼8.17
Media Library /wp-admin/upload.php3.23 ▲0.0033.87 ▲1.07

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Bogo bbPress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲3714.10 ▼0.251.74 ▲0.0246.68 ▲4.03
Dashboard /wp-admin2,198 ▲215.60 ▼0.0695.46 ▲11.1243.10 ▲1.83
Posts /wp-admin/edit.php2,103 ▼02.03 ▲0.1036.71 ▼0.5532.54 ▼1.77
Add New Post /wp-admin/post-new.php1,526 ▼923.13 ▲4.99631.86 ▲11.3453.19 ▼4.71
Media Library /wp-admin/upload.php1,403 ▼04.24 ▲0.0497.63 ▼1.1143.68 ▼3.75

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/bogo-bbpress/bogo-bbpress.php on line 13
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/bogo-bbpress/bogo-bbpress.php on line 13
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/bogo-bbpress/bogo-bbpress.php on line 13

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: bbpress, bogo

bogo-bbpress/bogo-bbpress.php Passed 13 tests

Analyzing the main PHP file in "Bogo bbPress" version 3.1
27 characters long description:
Make Bogo work with bbPress

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
No dangerous file extensions were detected124 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23830124

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin