100% forum-beginner-posts

Code Review | Forum Beginner Posts

WordPress plugin Forum Beginner Posts scored 100% from 54 tests.

About plugin

  • Plugin page: forum-beginner-posts
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-5.8
  • WordPress version: 5.9.2
  • First release: Dec 3, 2015
  • Latest release: Jul 22, 2021
  • Number of updates: 30
  • Update frequency: every 68.6 days
  • Top authors: fliz (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

500+ active / 7,270 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼293.10ms] Passed 4 tests

A check of server-side resources used by Forum Beginner Posts
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0557.73 ▲7.77
Dashboard /wp-admin3.46 ▲0.0533.35 ▼4.10
Posts /wp-admin/edit.php3.69 ▲0.0537.10 ▼3.48
Add New Post /wp-admin/post-new.php6.93 ▼0.0490.79 ▼1,166.09
Media Library /wp-admin/upload.php3.35 ▲0.0525.79 ▲1.26

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 2 new options
New WordPress options
flizfbp_extendtiny
flizfbp_forcepaste

Browser metrics Passed 4 tests

Forum Beginner Posts: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲4115.67 ▲0.095.80 ▼0.022.39 ▼0.09
Dashboard /wp-admin2,888 ▲276.15 ▲0.04115.90 ▼16.49183.95 ▲25.21
Posts /wp-admin/edit.php2,672 ▼223.25 ▲0.01105.30 ▲41.79145.76 ▲5.66
Add New Post /wp-admin/post-new.php1,661 ▼017.87 ▲1.65442.44 ▲39.85208.16 ▲15.32
Media Library /wp-admin/upload.php1,695 ▼35.48 ▼0.04154.49 ▲13.94194.57 ▲8.25

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% 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
Attributes that require attention:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

forum-beginner-posts/forum-beginner-posts.php Passed 13 tests

This is the main PHP file of "Forum Beginner Posts" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
137 characters long description:
Enables the Visual Editor for bbPress posts, using paste-as-text mode to prevent unwanted styling and markup appearing in pasted content.

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 detected357 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP346110352
CSS1005

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity30.00
▷ Minimum class complexity30.00
▷ Maximum class complexity30.00
Average method complexity3.23
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods215.38%
▷ Public methods1292.31%
▷ Protected methods00.00%
▷ Private methods17.69%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants00.00%
▷ Class constants6100.00%
▷ Public constants6100.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
There are no PNG files in this plugin