84% bbpress-do-short-codes

Code Review | bbPress - Do Short Codes

WordPress plugin bbPress - Do Short Codes scored84%from 54 tests.

About plugin

  • Plugin page: bbpress-do-short-...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-5.3
  • WordPress version: 6.3.1
  • First release: Sep 19, 2012
  • Latest release: Nov 13, 2019
  • Number of updates: 9
  • Update frequency: every 290.1 days
  • Top authors: mordauk (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active /7,416 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by bbPress - Do Short Codes
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0143.45 ▼0.49
Dashboard /wp-admin3.35 ▲0.0154.45 ▲1.91
Posts /wp-admin/edit.php3.40 ▲0.0149.80 ▼3.41
Add New Post /wp-admin/post-new.php5.93 ▲0.0196.76 ▼16.14
Media Library /wp-admin/upload.php3.28 ▲0.0037.70 ▼0.45

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

bbPress - Do Short Codes: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.28 ▼0.081.94 ▲0.1945.74 ▲0.65
Dashboard /wp-admin2,198 ▲215.61 ▲0.0294.86 ▲5.1141.00 ▼3.60
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0235.83 ▼5.2035.81 ▼5.68
Add New Post /wp-admin/post-new.php1,526 ▼223.11 ▲0.07616.63 ▼26.4849.33 ▼10.65
Media Library /wp-admin/upload.php1,400 ▲34.29 ▲0.0895.84 ▼7.7645.13 ▼1.39

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/bbpress-do-short-codes/bbp-do-shortcodes.php:22

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 on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: short code, pippin williamson, do_shortcode, forums, pippinsplugins...

bbpress-do-short-codes/bbp-do-shortcodes.php 92% from 13 tests

The principal PHP file in "bbPress - Do Short Codes" v. 1.0.3 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("bbpress-do-short-codes.php" instead of "bbp-do-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
Good job! No executable or dangerous file extensions detected12 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16912

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin