10% bbp-follow-users

Code Review | bbP Follow Users

WordPress plugin bbP Follow Users scored10%from 54 tests.

About plugin

  • Plugin page: bbp-follow-users
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 16, 2016
  • Latest release: Jul 3, 2016
  • Number of updates: 5
  • Update frequency: every 3.4 days
  • Top authors: kcbluewave890 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,284 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/bbp-follow-users/includes/class-bbpress-list-widget.php+103
    Function create_function() is deprecated

Server metrics [RAM: ▼1.89MB] [CPU: ▼49.99ms] Passed 4 tests

A check of server-side resources used by bbP Follow Users
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.375.12 ▼35.72
Dashboard /wp-admin2.11 ▼1.197.07 ▼42.57
Posts /wp-admin/edit.php2.11 ▼1.248.69 ▼40.11
Add New Post /wp-admin/post-new.php2.11 ▼3.775.98 ▼81.56
Media Library /wp-admin/upload.php2.11 ▼1.125.92 ▼27.95

Server storage [IO: ▲0.01MB] [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: 6 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_bbpresslist_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by bbP Follow Users
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,951 ▲20514.00 ▼0.6812.99 ▲11.1945.34 ▲0.04
Dashboard /wp-admin2,203 ▲125.80 ▲0.91102.79 ▼12.8438.38 ▼5.18
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0238.13 ▲2.2534.52 ▼2.78
Add New Post /wp-admin/post-new.php1,533 ▼922.74 ▲4.43676.55 ▲72.7662.82 ▲10.64
Media Library /wp-admin/upload.php1,388 ▼04.21 ▼0.0293.62 ▼5.0344.08 ▲2.41

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/bbp-follow-users/includes/class-bbpress-list-widget.php+103
    Function create_function() is deprecated
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_bbpresslist_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 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
Please fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bbp-follow-users/includes/class-bbpress-list-widget.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/bbp-follow-users/bbpresslist.php:17

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Requires at least: Invalid plugin version format
  • Tested up to: Invalid plugin version format
Please take inspiration from this readme.txt

bbp-follow-users/bbpresslist.php 85% from 13 tests

The main PHP script in "bbP Follow Users" version 1.1 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("bbp-follow-users.php" instead of "bbpresslist.php")
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin245 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP487122220
JavaScript111325

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity8.67
▷ Minimum class complexity4.00
▷ Maximum class complexity16.00
Average method complexity2.77
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin