90% bp-emails-for-bbp

Code Review | BP Emails for BBP

WordPress plugin BP Emails for BBP scored90%from 54 tests.

About plugin

  • Plugin page: bp-emails-for-bbp
  • Plugin version: 0.2.3
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.0-4.9.1
  • WordPress version: 6.3.1
  • First release: May 14, 2016
  • Latest release: Jan 16, 2018
  • Number of updates: 11
  • Update frequency: every 55.6 days
  • Top authors: thebrandonallen (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /2,599 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by BP Emails for BBP
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.85 ▼3.71
Dashboard /wp-admin3.32 ▲0.0144.19 ▼1.32
Posts /wp-admin/edit.php3.37 ▲0.0143.10 ▼5.88
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.11 ▼13.90
Media Library /wp-admin/upload.php3.24 ▲0.0133.10 ▲0.77

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for BP Emails for BBP
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲6514.47 ▼0.111.62 ▼0.0843.02 ▼2.67
Dashboard /wp-admin2,214 ▲265.86 ▲0.9599.17 ▼6.7943.48 ▼0.72
Posts /wp-admin/edit.php2,099 ▲102.03 ▼0.0034.68 ▼9.5238.63 ▲1.91
Add New Post /wp-admin/post-new.php1,547 ▲3323.25 ▲5.72642.23 ▼9.4252.80 ▼8.65
Media Library /wp-admin/upload.php1,399 ▲144.22 ▼0.0095.63 ▼6.6246.56 ▲2.96

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: bbpress, buddypress, email

bp-emails-for-bbp/bp-emails-for-bbp.php Passed 13 tests

"BP Emails for BBP" version 0.2.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
77 characters long description:
Send bbPress forum and topic subscription emails using Buddypress' email API.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected543 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP7182601495
Markdown120048

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity16.00
▷ Minimum class complexity12.00
▷ Maximum class complexity26.00
Average method complexity3.88
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes120.00%
▷ Concrete classes480.00%
▷ Final classes00.00%
Methods28
▷ Static methods27.14%
▷ Public methods1657.14%
▷ Protected methods1035.71%
▷ Private methods27.14%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin