84% bbp-yoast-seo

Code Review | BBpress Addon For Yoast SEO

WordPress plugin BBpress Addon For Yoast SEO scored84%from 54 tests.

About plugin

  • Plugin page: bbp-yoast-seo
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.9.1
  • WordPress version: 6.3.1
  • First release: Oct 20, 2017
  • Latest release: Dec 6, 2017
  • Number of updates: 6
  • Update frequency: every 26.5 days
  • Top authors: hgoswami (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

80+ active /1,922 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼12.27ms] Passed 4 tests

Analyzing server-side resources used by BBpress Addon For Yoast SEO
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.44 ▼5.26
Dashboard /wp-admin3.31 ▼0.0446.20 ▼16.29
Posts /wp-admin/edit.php3.36 ▲0.0049.02 ▼5.34
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.30 ▼22.19
Media Library /wp-admin/upload.php3.23 ▲0.0034.53 ▼2.32

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

BBpress Addon For Yoast SEO: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.35 ▼0.032.58 ▲0.5244.34 ▼5.25
Dashboard /wp-admin2,198 ▲305.64 ▼0.0685.49 ▼10.7839.00 ▼4.69
Posts /wp-admin/edit.php2,097 ▼62.06 ▲0.0136.38 ▼6.3037.16 ▼2.04
Add New Post /wp-admin/post-new.php1,526 ▼1917.71 ▼5.59656.25 ▼33.8858.26 ▼9.97
Media Library /wp-admin/upload.php1,400 ▼04.40 ▲0.08102.09 ▼13.6244.80 ▼0.72

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • 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
Everything seems fine, however this is by no means an exhaustive test

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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/bbp-yoast-seo/plugin.php: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)
There were no browser issues found


Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Requires php: Invalid version format
The official readme.txt is a good inspiration

bbp-yoast-seo/plugin.php 92% from 13 tests

"BBpress Addon For Yoast SEO" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bbp-yoast-seo.php" instead of "plugin.php")

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 plugin13 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.50
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ 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

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