10% buddypress-followers

Code Review | BuddyPress Follow

WordPress plugin BuddyPress Follow scored10%from 54 tests.

About plugin

  • Plugin page: buddypress-followers
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 27, 2010
  • Latest release: Mar 21, 2016
  • Number of updates: 15
  • Update frequency: every 141.7 days
  • Top authors: r-a-y (86.67%)apeatling (20%)

Code review

54 tests

User reviews

14 reviews

Install metrics

2,000+ active /72,871 total downloads


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
The following installer errors require your attention
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/buddypress-followers/loader.php+58
    Trying to get property 'table_prefix' of non-object

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

Analyzing server-side resources used by BuddyPress Follow
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.26 ▼1.19
Dashboard /wp-admin3.31 ▲0.0148.23 ▼10.31
Posts /wp-admin/edit.php3.36 ▲0.0047.53 ▼5.43
Add New Post /wp-admin/post-new.php5.89 ▲0.00124.58 ▲34.94
Media Library /wp-admin/upload.php3.23 ▲0.0033.52 ▼4.60

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: 1 new table, 6 new options
New tables
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for BuddyPress Follow
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.24 ▼0.151.75 ▼0.1043.51 ▼2.92
Dashboard /wp-admin2,198 ▲215.58 ▲0.0491.91 ▼8.3439.23 ▼4.68
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0136.32 ▲0.2334.76 ▼0.37
Add New Post /wp-admin/post-new.php1,531 ▲522.99 ▼0.06656.63 ▼76.6053.35 ▼16.90
Media Library /wp-admin/upload.php1,397 ▼34.32 ▲0.1099.70 ▼7.5542.57 ▼4.09

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_bp_follow
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/buddypress-followers/_inc/templates/buddypress/members/single/follow.php:2

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


Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tested up to: Invalid version format
  • Requires at least: Invalid version format
The official readme.txt might help

buddypress-followers/loader.php 85% from 13 tests

"BuddyPress Follow" version 1.2.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("buddypress-followers.php" instead of "loader.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,547 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PO File28392253

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity11.33
▷ Minimum class complexity6.00
▷ Maximum class complexity20.00
Average method complexity2.48
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
▷ Static methods523.81%
▷ Public methods2095.24%
▷ Protected methods14.76%
▷ Private methods00.00%
▷ Named functions62100.00%
▷ Anonymous functions00.00%
▷ Global constants4100.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
No PNG files were detected