77% coffeeblack-bbpress-extended

Code Review | Coffeeblack BBPress Extended Lite

WordPress plugin Coffeeblack BBPress Extended Lite scored77%from 54 tests.

About plugin

  • Plugin page: coffeeblack-bbpre...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.1-4.6.1
  • WordPress version: 6.3.1
  • First release: Oct 11, 2016
  • Latest release: Oct 27, 2016
  • Number of updates: 9
  • Update frequency: every 1.8 days
  • Top authors: siparker (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /941 total downloads

Benchmarks

Plugin footprint 82% from 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.08MB] [CPU: ▼1.02ms] 75% from 4 tests

A check of server-side resources used by Coffeeblack BBPress Extended Lite
The following require your attention
  • CPU: Try to keep total CPU usage under 500.00ms (currently 529.99ms on /wp-admin/admin.php?page=cb)
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1040.92 ▼3.56
Dashboard /wp-admin3.43 ▲0.0847.97 ▲3.10
Posts /wp-admin/edit.php3.54 ▲0.1450.23 ▼4.83
Add New Post /wp-admin/post-new.php6.01 ▲0.0791.67 ▲1.21
Media Library /wp-admin/upload.php3.35 ▲0.0741.88 ▲7.71
BBPress /wp-admin/admin.php?page=cb/bbpress3.4640.49
Coffeeblack /wp-admin/admin.php?page=cb3.29529.99

Server storage [IO: ▲0.26MB] [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: 14 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
cb_bbpress_version
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Coffeeblack BBPress Extended Lite
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,932 ▲18613.67 ▼0.628.03 ▲6.1342.43 ▼1.58
Dashboard /wp-admin2,215 ▲245.80 ▲0.73105.05 ▲0.0878.95 ▲36.91
Posts /wp-admin/edit.php2,113 ▲242.01 ▲0.0036.35 ▼0.2433.38 ▼0.45
Add New Post /wp-admin/post-new.php1,540 ▲723.25 ▼0.12800.07 ▲143.5275.18 ▲24.38
Media Library /wp-admin/upload.php1,403 ▲154.22 ▼0.0896.91 ▼12.4478.40 ▲35.63
BBPress /wp-admin/admin.php?page=cb/bbpress1,1341.7025.3748.97
Coffeeblack /wp-admin/admin.php?page=cb7962.0125.4223.71

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • widget_recent-comments
    • cb_bbpress_version
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=cb
    • > Warning in wp-content/plugins/coffeeblack-bbpress-extended/admin/cb_base/cb_base.php+50
    file_get_contents(http://www.coffeeblack.co.uk/wordpress/main_page.txt): failed to open stream: HTTP request failed! HTTP/1.0 404 Not Found

SRP 50% 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
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/coffeeblack-bbpress-extended/bbpress/cb-bbp-loop-forums.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bbp_breadcrumb() in wp-content/plugins/coffeeblack-bbpress-extended/bbpress/cb-bbpress-content-single-topic.php:14

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
No tags were found

coffeeblack-bbpress-extended/cb_bbpress.php 77% from 13 tests

The main PHP script in "Coffeeblack BBPress Extended Lite" version 1.1.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 171 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("coffeeblack-bbpress-extended.php" instead of "cb_bbpress.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin1,018 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP7157159797
JavaScript22716123
CSS28098

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.62
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%
Functions31
▷ Named functions31100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.20MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/cb_base/logo.png0.91KB1.00KB0.00%
admin/cb_bbpress_modules.png199.59KB73.77KB▼ 63.04%