10% bbp-tinymce

Code Review | Use TinyMCE with bbPress

WordPress plugin Use TinyMCE with bbPress scored10%from 54 tests.

About plugin

  • Plugin page: bbp-tinymce
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-4.9.4
  • WordPress version: 6.3.1
  • First release: Mar 29, 2018
  • Latest release: Mar 29, 2018
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: themichaelglenn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,805 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • The plugin cannot be installed
    • > Warning in wp-content/plugins/bbp-tinymce/includes/shortcodes.php+70
    Use of undefined constant tmce_shortcodes - assumed 'tmce_shortcodes' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▼1.92MB] [CPU: ▼52.76ms] Passed 4 tests

A check of server-side resources used by Use TinyMCE with bbPress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.395.09 ▼37.98
Dashboard /wp-admin2.09 ▼1.215.35 ▼43.03
Posts /wp-admin/edit.php2.09 ▼1.276.65 ▼34.67
Add New Post /wp-admin/post-new.php2.09 ▼3.806.19 ▼95.34
Media Library /wp-admin/upload.php2.09 ▼1.145.74 ▼27.00

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Use TinyMCE with bbPress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,910 ▲17513.62 ▼0.686.25 ▲4.4445.09 ▼0.48
Dashboard /wp-admin2,206 ▲145.77 ▲0.7996.10 ▼12.5739.62 ▼3.21
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0338.95 ▼1.8037.49 ▲0.93
Add New Post /wp-admin/post-new.php1,545 ▲1723.14 ▲4.95591.20 ▼57.9259.91 ▲3.74
Media Library /wp-admin/upload.php1,391 ▲34.24 ▲0.0096.74 ▼1.8741.79 ▼3.83

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Warning in wp-content/plugins/bbp-tinymce/includes/shortcodes.php+70
    Use of undefined constant tmce_shortcodes - assumed 'tmce_shortcodes' (this will throw an Error in a future version of PHP)
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

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)
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
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/bbp-tinymce/includes/shortcodes.php
    • > /wp-content/plugins/bbp-tinymce/bbp-tinymce.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

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 to be fixed:
  • Requires php: Invalid version format
You can take inspiration from this readme.txt

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

"Use TinyMCE with bbPress" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
55 characters long description:
TinyMCE editor designed specifically for 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
There were no executable files found in this plugin7,410 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript161,6061,3637,199
PHP27947164
CSS25047

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity1.50
▷ Minimum class complexity1.00
▷ Maximum class complexity2.00
Average method complexity1.09
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods763.64%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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 were not PNG files found in your plugin