84% bbpress-auto-subscribe-for-new-topics-and-replies

Code Review | bbPress auto subscribe for new topics and replies

WordPress plugin bbPress auto subscribe for new topics and replies scored84%from 54 tests.

About plugin

  • Plugin page: bbpress-auto-subs...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.7.1
  • WordPress version: 6.3.1
  • First release: Feb 27, 2014
  • Latest release: Mar 18, 2016
  • Number of updates: 11
  • Update frequency: every 96.0 days
  • Top authors: quan_flo (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

100+ active /4,132 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.00MB] [CPU: ▼8.09ms] Passed 4 tests

A check of server-side resources used by bbPress auto subscribe for new topics and replies
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.59 ▼3.65
Dashboard /wp-admin3.31 ▼0.0350.58 ▼19.29
Posts /wp-admin/edit.php3.36 ▲0.0151.40 ▲3.84
Add New Post /wp-admin/post-new.php5.91 ▲0.0395.96 ▼9.14
Media Library /wp-admin/upload.php3.24 ▲0.0138.44 ▼0.27

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for bbPress auto subscribe for new topics and replies
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲12213.50 ▼0.858.76 ▲7.1446.93 ▲5.77
Dashboard /wp-admin2,197 ▲205.63 ▲0.0389.55 ▼3.7638.95 ▼2.05
Posts /wp-admin/edit.php2,108 ▲82.00 ▼0.0039.16 ▲3.3336.29 ▼0.70
Add New Post /wp-admin/post-new.php1,535 ▲918.25 ▼5.03609.39 ▼67.4164.12 ▲8.31
Media Library /wp-admin/upload.php1,402 ▲24.19 ▲0.02100.89 ▼14.7643.90 ▼5.04

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

Smoke tests 75% from 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 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
Please fix the following
  • 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-auto-subscribe-for-new-topics-and-replies/bbpress-auto-subscribe-for-new-topics-and-replies.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

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
5 plugin tags: forum, bbpress, subscription, reply, topic

bbpress-auto-subscribe-for-new-topics-and-replies/bbpress-auto-subscribe-for-new-topics-and-replies.php 92% from 13 tests

"bbPress auto subscribe for new topics and replies" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 168 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin57 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1113737
JavaScript10020

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions5
▷ Named functions5100.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