90% bbpress-bulk-unsubscribe

Code Review | bbPress Bulk Unsubscribe

WordPress plugin bbPress Bulk Unsubscribe scored90%from 54 tests.

About plugin

  • Plugin page: bbpress-bulk-unsu...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.4
  • WordPress version: 6.3.1
  • First release: May 21, 2015
  • Latest release: Mar 14, 2020
  • Number of updates: 6
  • Update frequency: every 293.2 days
  • Top authors: tareq1988 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,586 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Server-side resources used by bbPress Bulk Unsubscribe
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0235.47 ▼12.30
Dashboard /wp-admin3.33 ▲0.0344.66 ▼1.82
Posts /wp-admin/edit.php3.38 ▲0.0245.55 ▼4.87
Add New Post /wp-admin/post-new.php5.91 ▲0.0286.05 ▼7.83
Media Library /wp-admin/upload.php3.25 ▲0.0232.59 ▼2.59

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for bbPress Bulk Unsubscribe
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.22 ▼1.535.45 ▲3.6541.22 ▼1.01
Dashboard /wp-admin2,200 ▲125.84 ▲0.90107.39 ▼3.0536.64 ▼4.51
Posts /wp-admin/edit.php2,089 ▼32.04 ▼0.0840.83 ▼1.7435.88 ▼2.37
Add New Post /wp-admin/post-new.php1,514 ▼617.53 ▼5.67674.11 ▲78.7352.08 ▼6.60
Media Library /wp-admin/upload.php1,388 ▲64.18 ▼0.1398.30 ▼2.2340.13 ▼4.69

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: topic, unsubscribe, bulk, forum, bbpress

bbpress-bulk-unsubscribe/unsubscribe.php 92% from 13 tests

The main PHP file in "bbPress Bulk Unsubscribe" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("bbpress-bulk-unsubscribe.php" instead of "unsubscribe.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin112 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13579112

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods5100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected