90% bp-forum-editor

Code Review | BuddyPress Forum Editor

WordPress plugin BuddyPress Forum Editor scored 90% from 54 tests.

About plugin

  • Plugin page: bp-forum-editor
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.2
  • WordPress version: 6.3.1
  • First release: May 14, 2015
  • Latest release: May 14, 2015
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: taehan (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

800+ active / 19,330 total downloads

Benchmarks

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.00MB] [CPU: ▼7.33ms] Passed 4 tests

An overview of server-side resources used by BuddyPress Forum Editor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.00 ▼2.04
Dashboard /wp-admin3.31 ▲0.0049.12 ▼26.25
Posts /wp-admin/edit.php3.36 ▲0.0050.77 ▼0.49
Add New Post /wp-admin/post-new.php5.89 ▲0.00122.60 ▲21.39
Media Library /wp-admin/upload.php3.23 ▲0.0038.11 ▼0.54

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for BuddyPress Forum Editor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▼2514.48 ▼0.331.81 ▼0.4344.10 ▼1.12
Dashboard /wp-admin2,206 ▲35.82 ▼0.02114.51 ▼1.0045.62 ▼0.07
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0440.97 ▲5.3335.97 ▲2.52
Add New Post /wp-admin/post-new.php1,533 ▼023.19 ▲0.07665.20 ▲49.1356.60 ▲1.73
Media Library /wp-admin/upload.php1,385 ▼34.15 ▼0.06103.99 ▲6.0747.35 ▲3.07

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: buddypress, richtext, bp, tinymce, wysiwyg

bp-forum-editor/bp-forum-editor.php Passed 13 tests

The main PHP script in "BuddyPress Forum Editor" version 1.0 is automatically included on every request by WordPress
99 characters long description:
This plugin provides your members with an easy to use Rich text editor for BuddyPress Group Forums.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin753 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP17733393
CSS248309
PO File1192451

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity1.76
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods29
▷ Static methods00.00%
▷ Public methods29100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
No PNG files were detected