90% bbp-capabilities

Code Review | bbPress Capabilities

WordPress plugin bbPress Capabilities scored90%from 54 tests.

About plugin

  • Plugin page: bbp-capabilities
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.9
  • WordPress version: 6.3.1
  • First release: Apr 26, 2014
  • Latest release: Apr 26, 2014
  • Number of updates: 9
  • Update frequency: every 128.6 days
  • Top authors: johnjamesjacoby (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /4,887 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
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼12.32ms] Passed 4 tests

This is a short check of server-side resources used by bbPress Capabilities
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▼0.0027.46 ▼14.77
Dashboard /wp-admin3.41 ▲0.0848.73 ▼11.02
Posts /wp-admin/edit.php3.53 ▲0.1449.44 ▲4.04
Add New Post /wp-admin/post-new.php6.00 ▲0.0882.74 ▼22.87
Media Library /wp-admin/upload.php3.34 ▲0.0835.60 ▼0.61

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: no files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

bbPress Capabilities: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,476 ▼29513.49 ▼0.880.76 ▼1.2214.59 ▼32.06
Dashboard /wp-admin2,206 ▲185.88 ▲1.00108.89 ▼6.3640.54 ▼5.27
Posts /wp-admin/edit.php2,086 ▼32.03 ▲0.0539.66 ▲3.0533.62 ▼3.30
Add New Post /wp-admin/post-new.php1,538 ▲523.19 ▲0.10674.59 ▲49.8562.79 ▲13.34
Media Library /wp-admin/upload.php1,391 ▲34.17 ▼0.0896.39 ▼0.9845.03 ▲2.31

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 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)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: bbpress, capabilities, forums, roles

bbp-capabilities/bbp-capabilities.php 92% from 13 tests

This is the main PHP file of "bbPress Capabilities" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Everything looks great! No dangerous files found in this plugin501 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2110233498
Markdown1103

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity5.33
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods233.33%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.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
There were not PNG files found in your plugin