84% user-notes-for-bbpress

Code Review | User Notes for bbPress

WordPress plugin User Notes for bbPress scored84%from 54 tests.

About plugin

  • Plugin page: user-notes-for-bb...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 1, 2016
  • Latest release: Nov 12, 2017
  • Number of updates: 4
  • Update frequency: every 100.5 days
  • Top authors: Clorith (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,693 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
This plugin's installer ran successfully

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

Analyzing server-side resources used by User Notes for bbPress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0443.34 ▲3.92
Dashboard /wp-admin3.34 ▼0.0046.23 ▼19.26
Posts /wp-admin/edit.php3.39 ▲0.0448.17 ▲0.10
Add New Post /wp-admin/post-new.php5.92 ▲0.0481.44 ▼20.21
Media Library /wp-admin/upload.php3.26 ▲0.0336.50 ▼0.03

Server storage [IO: ▲0.01MB] [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: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for User Notes for bbPress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.70 ▲0.481.84 ▲0.2345.41 ▲4.69
Dashboard /wp-admin2,195 ▲155.56 ▼0.0983.11 ▼10.6637.76 ▼5.14
Posts /wp-admin/edit.php2,100 ▲32.00 ▼0.0540.51 ▲2.1534.50 ▼1.49
Add New Post /wp-admin/post-new.php1,550 ▲1923.03 ▼0.32647.42 ▼6.5858.64 ▼5.90
Media Library /wp-admin/upload.php1,397 ▼04.31 ▲0.13102.76 ▼1.7646.58 ▲2.04

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

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

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
Almost there! Just fix the following items
  • 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/user-notes-for-bbpress/user-notes-for-bbpress.php:46

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
1 plugin tags: bbpress

user-notes-for-bbpress/user-notes-for-bbpress.php Passed 13 tests

This is the main PHP file of "User Notes for bbPress" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
70 characters long description:
Let moderators apply notes to individual users on your bbPress forums.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected133 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP13585108
CSS12019
JavaScript1006

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity3.14
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected