90% buddy-bbpress-support-topic

Code Review | Buddy-bbPress Support Topic

WordPress plugin Buddy-bbPress Support Topic scored90%from 54 tests.

About plugin

  • Plugin page: buddy-bbpress-sup...
  • Plugin version: 2.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.7.3
  • WordPress version: 6.3.1
  • First release: Jan 19, 2013
  • Latest release: Apr 19, 2017
  • Number of updates: 78
  • Update frequency: every 19.9 days
  • Top authors: G3ronim0 (65.38%)imath (35.9%)

Code review

54 tests

User reviews

20 reviews

Install metrics

100+ active /16,233 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼1.74ms] Passed 4 tests

An overview of server-side resources used by Buddy-bbPress Support Topic
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.37 ▲4.09
Dashboard /wp-admin3.31 ▲0.0148.86 ▲2.49
Posts /wp-admin/edit.php3.36 ▲0.0042.32 ▼2.88
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.82 ▼6.10
Media Library /wp-admin/upload.php3.23 ▲0.0034.70 ▼0.47

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

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

Browser metrics Passed 4 tests

Buddy-bbPress Support Topic: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.35 ▲0.051.71 ▼0.0343.18 ▲2.86
Dashboard /wp-admin2,198 ▲215.57 ▼0.1086.89 ▲1.0340.61 ▲1.12
Posts /wp-admin/edit.php2,100 ▼32.00 ▲0.0334.90 ▼4.3632.43 ▼4.46
Add New Post /wp-admin/post-new.php1,526 ▼323.57 ▼0.12671.98 ▲66.8056.88 ▲4.64
Media Library /wp-admin/upload.php1,400 ▼04.21 ▲0.0396.00 ▼12.1241.81 ▼1.35

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 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 Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: support, bbpress, topic, buddypress

buddy-bbpress-support-topic/buddy-bbpress-support-topic.php Passed 13 tests

The entry point to "Buddy-bbPress Support Topic" version 2.1.4 is a PHP file that has certain tags in its header comment area
53 characters long description:
Adds a support feature to your bbPress powered forums

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin2,273 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP56781,4331,866
PO File1123293241
JavaScript214765
Markdown228057
CSS19044

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity37.40
▷ Minimum class complexity9.00
▷ Maximum class complexity97.00
Average method complexity4.14
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods58
▷ Static methods35.17%
▷ Public methods5391.38%
▷ Protected methods00.00%
▷ Private methods58.62%
Functions49
▷ Named functions49100.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