89% follow-bbpress

Code Review | Follow for bbPress

WordPress plugin Follow for bbPress scored89%from 54 tests.

About plugin

  • Plugin page: follow-bbpress
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.1-5.2.4
  • WordPress version: 6.3.1
  • First release: Oct 26, 2019
  • Latest release: Jun 27, 2020
  • Number of updates: 61
  • Update frequency: every 4.0 days
  • Top authors: mostafadeveloper (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /918 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼17.18ms] Passed 4 tests

Server-side resources used by Follow for bbPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1645.73 ▲0.74
Dashboard /wp-admin3.46 ▲0.1654.32 ▼6.67
Posts /wp-admin/edit.php3.58 ▲0.2254.34 ▲0.60
Add New Post /wp-admin/post-new.php6.04 ▲0.1692.17 ▼63.37
Media Library /wp-admin/upload.php3.38 ▲0.1639.77 ▲4.16

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: 1 new table, 6 new options
New tables
bbpress_follow
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Follow for bbPress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲10513.85 ▼0.5210.13 ▲7.9239.49 ▼7.47
Dashboard /wp-admin2,199 ▲195.55 ▼0.1085.12 ▼8.5343.30 ▲2.52
Posts /wp-admin/edit.php2,113 ▲131.98 ▼0.0435.78 ▲0.0735.06 ▼0.10
Add New Post /wp-admin/post-new.php1,539 ▲1321.41 ▼1.62693.90 ▲13.4967.23 ▲15.63
Media Library /wp-admin/upload.php1,416 ▲134.22 ▲0.0195.48 ▼8.8942.71 ▼5.00

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

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
Even though everything seems fine, this is not an exhaustive test

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
No output text or server-side errors detected on direct access of PHP files

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 Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: user, topic, shortcode, follow, bbpress...

follow-bbpress/follow-for-bbpress.php 85% from 13 tests

The primary PHP file in "Follow for bbPress" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("follow-bbpress.php" instead of "follow-for-bbpress.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
No dangerous file extensions were detected1,365 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP58572638
CSS2522318
JavaScript14215263
PO File2104158146

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions27
▷ Named functions2385.19%
▷ Anonymous functions414.81%
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
PNG images were not found in this plugin