84% bbpress-enable-tinymce-visual-tab

Code Review | bbPress Enable TinyMCE Visual Tab

WordPress plugin bbPress Enable TinyMCE Visual Tab scored 84% from 54 tests.

About plugin

  • Plugin page: bbpress-enable-ti...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-3.5.1
  • WordPress version: 6.3.1
  • First release: Apr 30, 2013
  • Latest release: Jan 5, 2014
  • Number of updates: 3
  • Update frequency: every 83.4 days
  • Top authors: jaredatch (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

4,000+ active / 33,342 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

Server-side resources used by bbPress Enable TinyMCE Visual Tab
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.95 ▼4.79
Dashboard /wp-admin3.32 ▲0.0243.15 ▼8.42
Posts /wp-admin/edit.php3.37 ▲0.0149.16 ▲3.92
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.66 ▼1.01
Media Library /wp-admin/upload.php3.24 ▲0.0136.12 ▲4.50

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for bbPress Enable TinyMCE Visual Tab
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.22 ▼1.201.70 ▼0.1838.43 ▼5.39
Dashboard /wp-admin2,206 ▲154.87 ▼0.03112.68 ▼3.7942.49 ▼4.04
Posts /wp-admin/edit.php2,092 ▲32.01 ▼0.1240.54 ▲3.9634.54 ▲0.38
Add New Post /wp-admin/post-new.php1,538 ▲523.30 ▼0.08663.40 ▼17.1656.66 ▲10.07
Media Library /wp-admin/upload.php1,388 ▼34.25 ▲0.0295.33 ▼3.9842.53 ▼2.73

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbpress-enable-tinymce-visual-tab/init.php:42

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Screenshots: These screenshots require images: #1 (The bbPress editor with the plugin activated and media upload enabled.), #2 (Additional editor options added to the forum settings page.)
The official readme.txt might help

bbpress-enable-tinymce-visual-tab/init.php 92% from 13 tests

The entry point to "bbPress Enable TinyMCE Visual Tab" version 1.0.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bbpress-enable-tinymce-visual-tab.php" instead of "init.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected46 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1277046

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.43
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.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
2 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png15.91KB5.10KB▼ 67.96%
screenshot-1.png25.20KB7.90KB▼ 68.64%