84% fv-bbpress-tweaks

Code Review | FV bbPress Tweaks

WordPress plugin FV bbPress Tweaks scored84%from 54 tests.

About plugin

  • Plugin page: fv-bbpress-tweaks
  • Plugin version: 0.2.7.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.6
  • WordPress version: 6.3.1
  • First release: May 25, 2016
  • Latest release: Jun 1, 2018
  • Number of updates: 5
  • Update frequency: every 147.4 days
  • Top authors: FolioVision (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,535 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.02MB] [CPU: ▼10.88ms] Passed 4 tests

An overview of server-side resources used by FV bbPress Tweaks
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1543.50 ▼1.03
Dashboard /wp-admin3.34 ▲0.0434.78 ▼16.28
Posts /wp-admin/edit.php3.41 ▲0.0641.68 ▼10.43
Add New Post /wp-admin/post-new.php5.58 ▼0.3080.13 ▼15.79
Media Library /wp-admin/upload.php3.35 ▲0.1235.10 ▲0.54

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: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

FV bbPress Tweaks: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.72 ▲0.171.72 ▼0.2045.97 ▲2.94
Dashboard /wp-admin2,197 ▲235.58 ▲0.0594.75 ▼7.4438.38 ▼7.82
Posts /wp-admin/edit.php2,108 ▲81.97 ▼0.0140.42 ▲2.1737.16 ▼0.23
Add New Post /wp-admin/post-new.php1,545 ▲1518.24 ▼4.83624.35 ▲6.9668.35 ▲16.12
Media Library /wp-admin/upload.php1,408 ▲114.19 ▲0.02102.68 ▲0.6242.08 ▲2.42

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 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
Please fix the following
  • 3× 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/fv-bbpress-tweaks/fv-bbpress.php:33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fv-bbpress-tweaks/search-before-post.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fv-bbpress-tweaks/comment-to-topic.php:9

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: spam, comments

fv-bbpress-tweaks/fv-bbpress.php 92% from 13 tests

The primary PHP file in "FV bbPress Tweaks" version 0.2.7.4 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("fv-bbpress-tweaks.php" instead of "fv-bbpress.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin2,456 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP57995712,456

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity107.50
▷ Minimum class complexity11.00
▷ Maximum class complexity286.00
Average method complexity5.14
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods103
▷ Static methods10.97%
▷ Public methods9996.12%
▷ Protected methods00.00%
▷ Private methods43.88%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin