89% bbp-bulk-unsubscribe

Code Review | BBP Bulk Unsubscribe

WordPress plugin BBP Bulk Unsubscribe scored89%from 54 tests.

About plugin

  • Plugin page: bbp-bulk-unsubscribe
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.7.4
  • WordPress version: 6.3.1
  • First release: Mar 22, 2017
  • Latest release: Apr 3, 2017
  • Number of updates: 4
  • Update frequency: every 4.2 days
  • Top authors: VibeThemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,021 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼5.45ms] Passed 4 tests

An overview of server-side resources used by BBP Bulk Unsubscribe
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1043.95 ▲2.31
Dashboard /wp-admin3.40 ▲0.1047.45 ▼4.88
Posts /wp-admin/edit.php3.51 ▲0.1644.95 ▼1.76
Add New Post /wp-admin/post-new.php5.98 ▲0.0980.29 ▼17.46
Media Library /wp-admin/upload.php3.32 ▲0.0938.91 ▲3.78

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by BBP Bulk Unsubscribe
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.27 ▼1.091.77 ▲0.0544.81 ▲1.40
Dashboard /wp-admin2,206 ▲185.85 ▼0.03108.23 ▲2.2942.30 ▲3.05
Posts /wp-admin/edit.php2,089 ▲212.01 ▼0.0133.05 ▼2.2433.45 ▲1.19
Add New Post /wp-admin/post-new.php1,533 ▼023.44 ▲0.21703.11 ▲3.0348.43 ▼9.83
Media Library /wp-admin/upload.php1,388 ▲34.21 ▲0.0493.94 ▼6.6541.74 ▼4.70

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
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

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
Looking good! No server-side errors or output 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 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes: You can look at the official readme.txt

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

The principal PHP file in "BBP Bulk Unsubscribe" v. 1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin512 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP317872509
JavaScript1002
CSS1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity27.50
▷ Minimum class complexity5.00
▷ Maximum class complexity50.00
Average method complexity3.52
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods21
▷ Static methods29.52%
▷ Public methods1990.48%
▷ Protected methods00.00%
▷ Private methods29.52%
Functions2
▷ Named functions2100.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
There are no PNG files in this plugin