10% bbp-markdown

Code Review | bbP Markdown

WordPress plugin bbP Markdown scored10%from 54 tests.

About plugin

  • Plugin page: bbp-markdown
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.0
  • WordPress version: 6.3.1
  • First release: Sep 21, 2017
  • Latest release: Jan 9, 2019
  • Number of updates: 11
  • Update frequency: every 43.3 days
  • Top authors: mechter (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,233 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/bbp-markdown/lib/Markdown.php+948
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▼1.60MB] [CPU: ▼50.19ms] Passed 4 tests

An overview of server-side resources used by bbP Markdown
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.40 ▼1.075.83 ▼30.32
Dashboard /wp-admin2.42 ▼0.897.23 ▼43.30
Posts /wp-admin/edit.php2.42 ▼0.947.41 ▼39.48
Add New Post /wp-admin/post-new.php2.42 ▼3.477.30 ▼87.65
Media Library /wp-admin/upload.php2.42 ▼0.825.73 ▼29.59

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for bbP Markdown
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.68 ▲0.331.60 ▼0.3840.28 ▼5.24
Dashboard /wp-admin2,198 ▲185.56 ▼0.1291.21 ▲6.7238.51 ▼0.24
Posts /wp-admin/edit.php2,082 ▼212.01 ▲0.0235.04 ▼6.7534.99 ▼1.49
Add New Post /wp-admin/post-new.php1,534 ▼118.15 ▼0.30624.33 ▼17.7270.16 ▼0.77
Media Library /wp-admin/upload.php1,403 ▲34.19 ▲0.02100.22 ▼3.6442.19 ▼0.77

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/bbp-markdown/lib/Markdown.php+948
    Array and string offset access syntax with curly braces is deprecated
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

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
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 items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Interface 'Michelf\\MarkdownInterface' not found in wp-content/plugins/bbp-markdown/lib/Markdown.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Michelf\\Markdown' not found in wp-content/plugins/bbp-markdown/lib/MarkdownExtra.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/bbp-markdown/bbp-markdown.php:26

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 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4 in bbp-markdown/assets to your readme.txt
You can look at the official readme.txt

bbp-markdown/bbp-markdown.php Passed 13 tests

"bbP Markdown" version 1.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
49 characters long description:
Elegant Markdown support for your bbPress forums.

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 plugin2,799 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP54821,3112,352
CSS3471247
JavaScript26259130
PO File1262770

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity65.00
▷ Minimum class complexity1.00
▷ Maximum class complexity114.00
Average method complexity3.01
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces1
Interfaces1
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods98
▷ Static methods22.04%
▷ Public methods66.12%
▷ Protected methods9293.88%
▷ Private methods00.00%
Functions20
▷ Named functions1995.00%
▷ Anonymous functions15.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
No PNG images were found in this plugin