83% buddypress-wall

Code Review | BuddyPress Wall

WordPress plugin BuddyPress Wall scored83%from 54 tests.

About plugin

  • Plugin page: buddypress-wall
  • Plugin version: 0.9.4
  • PHP version: 7.4.16
  • WordPress compatibility: WP 3.4, BuddyPress 1.5+
  • WordPress version: 6.3.1
  • First release: Aug 2, 2013
  • Latest release: Mar 21, 2015
  • Number of updates: 27
  • Update frequency: every 22.1 days
  • Top authors: megainfo (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

90+ active /38,561 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

Server-side resources used by BuddyPress Wall
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.01 ▼6.13
Dashboard /wp-admin3.31 ▲0.0049.56 ▲3.64
Posts /wp-admin/edit.php3.36 ▲0.0046.85 ▲1.92
Add New Post /wp-admin/post-new.php5.89 ▲0.0099.73 ▲4.35
Media Library /wp-admin/upload.php3.23 ▲0.0030.96 ▼0.49

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for BuddyPress Wall
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.70 ▼0.874.49 ▲2.7742.31 ▼1.52
Dashboard /wp-admin2,206 ▲184.87 ▼0.21109.37 ▲3.8942.43 ▲0.24
Posts /wp-admin/edit.php2,092 ▲32.06 ▲0.0639.60 ▲4.8635.97 ▲3.37
Add New Post /wp-admin/post-new.php1,542 ▲2318.22 ▼4.92603.08 ▼77.7468.37 ▲4.47
Media Library /wp-admin/upload.php1,391 ▼04.19 ▼0.0496.70 ▼6.3946.50 ▲0.08

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

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)
Everything seems fine, however 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 take a closer look at the following
  • 16× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/buddypress-wall/includes/templates/bp-default/activity/activity-wall-loop.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/buddypress-wall/includes/templates/bp-legacy/buddypress/activity/index-wall.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/buddypress-wall/includes/templates/bp-default/activity/entry-wall.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/buddypress-wall/includes/templates/bp-default/groups/single/home-wall.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/buddypress-wall/includes/templates/bp-legacy/buddypress/activity/activity-wall-loop.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/buddypress-wall/includes/templates/bp-legacy/buddypress/activity/post-wall-form.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bp_has_groups() in wp-content/plugins/buddypress-wall/includes/templates/bp-legacy/buddypress/groups/single/home-wall.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/buddypress-wall/includes/templates/bp-legacy/buddypress/members/single/home-wall.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bp_group_activity_feed_link() in wp-content/plugins/buddypress-wall/includes/templates/bp-legacy/buddypress/groups/single/activity-wall.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bp_get_options_nav() in wp-content/plugins/buddypress-wall/includes/templates/bp-default/members/single/activity-wall.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tested up to: Invalid plugin version format
  • Requires at least: Invalid plugin version format
  • Screenshots: These screenshots require images: #1 (**New comment system (Like Facebook)** - A member can write a new comment just by typing a comment and pressing Enter to send or Esc to cancel.), #2 (**Write in the Wall of you friend** - Member can write in the wall of his friends.), #3 (**Activity Member wall** - The Activity tab is now Wall Tab, all activities personal, friends and groups are printed are orderd in one screen : News Feed.), #4 (**I-Like/Unlike system** - Member can “Like/Unlike” a post.)
You can look at the official readme.txt

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

"BuddyPress Wall" version 0.9.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Requires at least: Required version number formatted incorrectly (ex. "7.0" instead of "WP 3.4, BuddyPress 1.5")
  • Main file name: Name the main plugin file the same as the plugin slug ("buddypress-wall.php" instead of "loader.php")

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
Everything looks great! No dangerous files found in this plugin2,453 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
PHP279075021,821
PO File1108198292
JavaScript27357281
CSS1161059

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity9.33
▷ Minimum class complexity1.00
▷ Maximum class complexity23.00
Average method complexity1.93
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods27
▷ Static methods00.00%
▷ Public methods27100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions30
▷ Named functions30100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.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
6 PNG files occupy 0.38MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png86.05KB32.24KB▼ 62.54%
includes/images/badge.png40.82KB21.95KB▼ 46.22%
screenshot-1.png113.35KB41.92KB▼ 63.02%
screenshot-3.png82.06KB29.81KB▼ 63.67%
screenshot-4.png29.13KB11.39KB▼ 60.91%