84% bbp-mentions-email-notifications

Code Review | bbPress Mentions Email Notifications

WordPress plugin bbPress Mentions Email Notifications scored84%from 54 tests.

About plugin

  • Plugin page: bbp-mentions-emai...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7.2
  • WordPress version: 6.3.1
  • First release: Feb 1, 2016
  • Latest release: Feb 28, 2017
  • Number of updates: 15
  • Update frequency: every 26.3 days
  • Top authors: elhardoum (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

70+ active /3,300 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▼2.70ms] Passed 4 tests

Analyzing server-side resources used by bbPress Mentions Email Notifications
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0938.16 ▼4.46
Dashboard /wp-admin3.39 ▲0.0947.01 ▼1.44
Posts /wp-admin/edit.php3.50 ▲0.1547.52 ▲2.23
Add New Post /wp-admin/post-new.php5.97 ▲0.0984.41 ▼7.13
Media Library /wp-admin/upload.php3.31 ▲0.0937.41 ▲3.25
/wp-admin/admin.php?page=bmen-about3.2829.70
bbP mentions /wp-admin/options-general.php?page=bmen3.2829.56

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by bbPress Mentions Email Notifications
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.59 ▼0.791.56 ▼0.5241.10 ▼10.23
Dashboard /wp-admin2,207 ▲225.77 ▼0.0793.67 ▼15.3936.24 ▼7.25
Posts /wp-admin/edit.php2,093 ▲42.03 ▲0.0438.63 ▲3.8534.64 ▼5.73
Add New Post /wp-admin/post-new.php1,536 ▲1623.45 ▲0.45669.05 ▼6.7556.20 ▼1.99
Media Library /wp-admin/upload.php1,392 ▲44.17 ▼0.0499.15 ▲4.8245.28 ▲4.12
/wp-admin/admin.php?page=bmen-about8252.0524.9629.87
bbP mentions /wp-admin/options-general.php?page=bmen9302.0221.8632.11

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 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)
Good news, no errors were detected

SRP 50% from 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 following issues need your attention
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/bbp-mentions-email-notifications/bmen.php
    • > /wp-content/plugins/bbp-mentions-email-notifications/uninstall.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Tags: You are using too many tags: 13 tag instead of maximum 10
Please take inspiration from this readme.txt

bbp-mentions-email-notifications/bmen.php 92% from 13 tests

The primary PHP file in "bbPress Mentions Email Notifications" version 1.0.3 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bbp-mentions-email-notifications.php" instead of "bmen.php")

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

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity41.00
▷ Minimum class complexity41.00
▷ Maximum class complexity41.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected