93% buddypress-activity-anywhere

Code Review | Buddypress Activity Anywhere

WordPress plugin Buddypress Activity Anywhere scored 93% from 54 tests.

About plugin

  • Plugin page: buddypress-activi...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.8.1
  • WordPress version: 5.8.1
  • First release: Feb 11, 2013
  • Latest release: Apr 12, 2014
  • Number of updates: 28
  • Update frequency: every 15.2 days
  • Top authors: ninjew (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 2,276 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼147.25ms] Passed 4 tests

A check of server-side resources used by Buddypress Activity Anywhere
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0227.45 ▼0.99
Dashboard /wp-admin3.08 ▲0.0134.64 ▼5.68
Posts /wp-admin/edit.php3.13 ▲0.0245.73 ▲11.60
Add New Post /wp-admin/post-new.php5.44 ▼0.0074.50 ▼581.70
Media Library /wp-admin/upload.php3.02 ▲0.0224.75 ▼0.63

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Buddypress Activity Anywhere: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,666 ▲6516.00 ▼0.034.94 ▼5.2276.18 ▲2.30
Dashboard /wp-admin2,930 ▲376.10 ▼0.07114.99 ▼18.04171.19 ▼1.82
Posts /wp-admin/edit.php2,740 ▲33.24 ▲0.0165.37 ▲2.24133.85 ▼4.11
Add New Post /wp-admin/post-new.php3,698 ▼3720.11 ▲1.74443.98 ▼3.63160.31 ▼22.12
Media Library /wp-admin/upload.php1,752 ▲35.46 ▼0.07150.61 ▼4.34187.33 ▼12.24

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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 fix the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/buddypress-activity-anywhere/form-templates/default/form.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-activity-anywhere/bp-activity-anywhere.php:149

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention: The official readme.txt might help

buddypress-activity-anywhere/bp-activity-anywhere.php 85% from 13 tests

"Buddypress Activity Anywhere" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("buddypress-activity-anywhere.php" instead of "bp-activity-anywhere.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected549 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PO File13939135

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions14100.00%
▷ Anonymous functions00.00%
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
buttons/bpqa-button-light-blue.png3.20KB0.51KB▼ 84.15%
buttons/bpqa-button-red.png3.20KB0.49KB▼ 84.71%
buttons/bpqa-button-purple.png3.21KB0.49KB▼ 84.64%
buttons/bpqa-button-green.png3.21KB0.50KB▼ 84.53%