90% bp-activity-shortcode

Code Review | BuddyPress Activity Shortcode

WordPress plugin BuddyPress Activity Shortcode scored90%from 54 tests.

About plugin

  • Plugin page: bp-activity-short...
  • Plugin version: 1.1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Oct 15, 2015
  • Latest release: Aug 7, 2023
  • Number of updates: 25
  • Update frequency: every 114.1 days
  • Top authors: sbrajesh (88%)raviousprime (16%)

Code review

54 tests

User reviews

7 reviews

Install metrics

2,000+ active /41,915 total downloads


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 gracefully, with no errors

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

Analyzing server-side resources used by BuddyPress Activity Shortcode
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.76 ▲0.30
Dashboard /wp-admin3.32 ▼0.0352.11 ▼16.45
Posts /wp-admin/edit.php3.37 ▲0.0150.75 ▼8.97
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.93 ▼25.74
Media Library /wp-admin/upload.php3.24 ▲0.0138.73 ▲1.93

Server storage [IO: ▲0.03MB] [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, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for BuddyPress Activity Shortcode
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.23 ▼0.121.70 ▲0.1743.23 ▼0.27
Dashboard /wp-admin2,195 ▲155.62 ▼0.0490.86 ▼3.2239.06 ▼3.81
Posts /wp-admin/edit.php2,097 ▼31.94 ▼0.0338.89 ▲0.7835.23 ▼2.00
Add New Post /wp-admin/post-new.php1,526 ▼023.52 ▲0.11654.70 ▲16.3054.88 ▼4.64
Media Library /wp-admin/upload.php1,394 ▼64.22 ▲0.0598.00 ▼7.6843.14 ▼6.54

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

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

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: activity shortcode, sitewide activity, buddypress, buddypress activity

bp-activity-shortcode/bp-activity-as-shortcode.php 92% from 13 tests

The main PHP file in "BuddyPress Activity Shortcode" ver. 1.1.8 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bp-activity-shortcode.php" instead of "bp-activity-as-shortcode.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin419 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity17.50
▷ Minimum class complexity4.00
▷ Maximum class complexity37.00
Average method complexity4.88
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
▷ Static methods529.41%
▷ Public methods1482.35%
▷ Protected methods00.00%
▷ Private methods317.65%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.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