84% bbp-shortcodes

Code Review | bbPress Shortcodes

WordPress plugin bbPress Shortcodes scored84%from 54 tests.

About plugin

  • Plugin page: bbp-shortcodes
  • Plugin version: 2.0
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.6
  • WordPress version: 6.3.1
  • First release: Nov 4, 2017
  • Latest release: Feb 25, 2021
  • Number of updates: 8
  • Update frequency: every 151.4 days
  • Top authors: nexgenforo (62.5%)vinod dalvi (50%)

Code review

54 tests

User reviews

4 reviews

Install metrics

300+ active /5,531 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.09MB] [CPU: ▼0.95ms] Passed 4 tests

An overview of server-side resources used by bbPress Shortcodes
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.29 ▼7.88
Dashboard /wp-admin3.40 ▲0.0950.11 ▼3.11
Posts /wp-admin/edit.php3.51 ▲0.1652.93 ▲2.59
Add New Post /wp-admin/post-new.php6.00 ▲0.11103.13 ▲4.59
Media Library /wp-admin/upload.php3.32 ▲0.0940.73 ▲4.90
bbPress Shortcodes /wp-admin/options-general.php?page=bbpress_shortcodes3.2935.44

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
bbpress_shortcodes
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

bbPress Shortcodes: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲4014.37 ▼0.011.84 ▼0.0640.38 ▼3.25
Dashboard /wp-admin2,235 ▲555.62 ▼0.0494.89 ▲3.1843.58 ▲0.50
Posts /wp-admin/edit.php2,137 ▲372.14 ▲0.0241.59 ▲4.1137.58 ▼2.48
Add New Post /wp-admin/post-new.php1,566 ▲3518.09 ▼5.03610.87 ▼68.7965.53 ▲0.05
Media Library /wp-admin/upload.php1,440 ▲404.25 ▲0.0499.38 ▼13.6546.26 ▼1.82
bbPress Shortcodes /wp-admin/options-general.php?page=bbpress_shortcodes8462.0327.9930.20

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • bbpress_shortcodes
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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 items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/bbp-shortcodes/admin/partials/admin-page.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: forum, bbpress shortcodes, shortcodes, bbpress, shortcode

bbp-shortcodes/bbpress-shortcodes.php 85% from 13 tests

The main PHP file in "bbPress Shortcodes" ver. 2.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bbp-shortcodes.php" instead of "bbpress-shortcodes.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
Success! There were no dangerous files found in this plugin752 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP11102295359
JavaScript41113263
PO File15253129
CSS1001

PHP code Passed 2 tests

An short overview of 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.38
Average class complexity7.14
▷ Minimum class complexity2.00
▷ Maximum class complexity28.00
Average method complexity2.16
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes114.29%
Methods37
▷ Static methods718.92%
▷ Public methods3286.49%
▷ Protected methods00.00%
▷ Private methods513.51%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected