84% bbpress-role-deleter

Code Review | Delete bbpress roles

WordPress plugin Delete bbpress roles scored84%from 54 tests.

About plugin

  • Plugin page: bbpress-role-deleter
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3
  • WordPress version: 6.3.1
  • First release: Jan 18, 2015
  • Latest release: Aug 10, 2015
  • Number of updates: 7
  • Update frequency: every 30.7 days
  • Top authors: BetaAthe (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

10+ active /1,454 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼9.57ms] Passed 4 tests

This is a short check of server-side resources used by Delete bbpress roles
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.53 ▲0.84
Dashboard /wp-admin3.31 ▼0.0444.68 ▼10.83
Posts /wp-admin/edit.php3.36 ▲0.0045.07 ▼8.36
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.51 ▼19.25
Media Library /wp-admin/upload.php3.24 ▲0.0034.76 ▲0.18

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Delete bbpress roles
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.34 ▼0.932.05 ▲0.1241.88 ▼10.37
Dashboard /wp-admin2,209 ▲184.83 ▼1.01103.96 ▼1.2139.61 ▼2.98
Posts /wp-admin/edit.php2,086 ▼32.04 ▲0.0136.87 ▼0.9534.67 ▼0.95
Add New Post /wp-admin/post-new.php1,514 ▼1417.60 ▼0.51714.87 ▲87.1952.89 ▲1.34
Media Library /wp-admin/upload.php1,388 ▲34.12 ▼0.12115.45 ▲11.7248.55 ▲4.64

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbpress-role-deleter/delete-bbpress-roles.php:12

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: roles, bbpress, uninstall, delete

bbpress-role-deleter/delete-bbpress-roles.php 92% from 13 tests

"Delete bbpress roles" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("bbpress-role-deleter.php" instead of "delete-bbpress-roles.php")

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
No dangerous file extensions were detected10 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11910

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin