83% buddypress-follow-me

Code Review | BuddyPress FollowMe

WordPress plugin BuddyPress FollowMe scored83%from 54 tests.

About plugin

  • Plugin page: buddypress-follow-me
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: WP 3.4, BuddyPress 1.5+
  • WordPress version: 6.3.1
  • First release: Oct 14, 2012
  • Latest release: Apr 18, 2013
  • Number of updates: 40
  • Update frequency: every 4.7 days
  • Top authors: megainfo (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

10+ active /11,972 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.00MB] [CPU: ▼3.69ms] Passed 4 tests

Server-side resources used by BuddyPress FollowMe
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.90 ▼3.25
Dashboard /wp-admin3.31 ▲0.0048.39 ▼7.18
Posts /wp-admin/edit.php3.36 ▲0.0051.48 ▼2.41
Add New Post /wp-admin/post-new.php5.89 ▲0.00103.12 ▲2.75
Media Library /wp-admin/upload.php3.23 ▲0.0038.03 ▼1.91

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for BuddyPress FollowMe
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.10 ▼0.041.77 ▼0.4441.06 ▼3.08
Dashboard /wp-admin2,195 ▲215.62 ▼0.0695.08 ▲3.2542.64 ▼2.27
Posts /wp-admin/edit.php2,103 ▲32.03 ▲0.0541.97 ▼0.2436.69 ▼0.52
Add New Post /wp-admin/post-new.php1,526 ▼223.20 ▼0.13682.48 ▲46.7660.22 ▼1.30
Media Library /wp-admin/upload.php1,394 ▼64.20 ▲0.02101.93 ▼4.7543.81 ▼2.79

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Parse error
      syntax error, unexpected '&', expecting ')' in wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/buddypress-follow-me/includes/templates/members/single/follow/follow-loop.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bp_follow_is_bp_default() in wp-content/plugins/buddypress-follow-me/includes/templates/members/single/follow.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

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
You can look at the official readme.txt

buddypress-follow-me/loader.php 85% from 13 tests

The principal PHP file in "BuddyPress FollowMe" v. 1.2.2 is loaded by WordPress automatically on each request
The following require your attention:
  • Requires at least: Periods and digits should be used for the required version number (ex. "7.0" instead of "WP 3.4, BuddyPress 1.5")
  • Main file name: The principal plugin file should be the same as the plugin slug ("buddypress-follow-me.php" instead of "loader.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,159 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP164701,0351,007
PO File13641111
JavaScript18241

PHP code Passed 2 tests

This is a short overview 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.32
Average class complexity6.50
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods22
▷ Static methods00.00%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions55
▷ Named functions55100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
3 PNG files occupy 0.17MB with 0.10MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png48.37KB21.26KB▼ 56.04%
screenshot-1.png70.45KB22.42KB▼ 68.18%
screenshot-2.png53.19KB23.50KB▼ 55.83%