84% bp-activity-autoloader

Code Review | BuddyPress Activity Autoloader

WordPress plugin BuddyPress Activity Autoloader scored 84% from 54 tests.

About plugin

  • Plugin page: bp-activity-autol...
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.0.3
  • WordPress version: 6.3.1
  • First release: Nov 29, 2013
  • Latest release: Jan 10, 2019
  • Number of updates: 7
  • Update frequency: every 266.9 days
  • Top authors: sbrajesh (85.71%)anusharma (28.57%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active / 17,155 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
This plugin's installer ran successfully

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

Server-side resources used by BuddyPress Activity Autoloader
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0137.84 ▼0.96
Dashboard /wp-admin3.31 ▲0.0045.77 ▼7.26
Posts /wp-admin/edit.php3.36 ▲0.0051.67 ▼7.14
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.46 ▼27.16
Media Library /wp-admin/upload.php3.23 ▲0.0035.48 ▼0.78

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for BuddyPress Activity Autoloader
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.27 ▼1.161.66 ▼0.1147.35 ▼2.01
Dashboard /wp-admin2,206 ▲184.81 ▼1.09115.48 ▼10.0845.45 ▼4.82
Posts /wp-admin/edit.php2,089 ▼02.03 ▼0.0936.01 ▼2.6338.18 ▼2.30
Add New Post /wp-admin/post-new.php1,534 ▼123.01 ▼0.06673.24 ▲38.91151.65 ▲92.41
Media Library /wp-admin/upload.php1,391 ▼04.22 ▲0.0896.14 ▼3.1142.20 ▼0.76

Uninstaller [IO: ▲0.00MB] [DB: ▲0.33MB] 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
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

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
Good news, no errors were detected

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 items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-activity-autoloader/bp-activity-autoloader.php:26

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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 need to be fixed:
  • Screenshots: Screenshot #1 (No screenshots) image not found
You can take inspiration from this readme.txt

bp-activity-autoloader/bp-activity-autoloader.php Passed 13 tests

Analyzing the main PHP file in "BuddyPress Activity Autoloader" version 2.0.0
96 characters long description:
Autoload next page of the BuddyPress Activity Stream when the end of the current page is reached

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
Good job! No executable or dangerous file extensions detected23 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript151215
PHP15138

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.67
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected