84% personalized-activity-for-buddypress-frfwa

Code Review | Personalized Activity for Buddypress - Friends, Following, Admin

WordPress plugin Personalized Activity for Buddypress - Friends, Following, Admin scored84%from 54 tests.

About plugin

  • Plugin page: personalized-acti...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.8.2
  • WordPress version: 6.3.1
  • First release: Nov 10, 2021
  • Latest release: Nov 13, 2021
  • Number of updates: 11
  • Update frequency: every 0.3 days
  • Top authors: crossbow6 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /367 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Personalized Activity for Buddypress - Friends, Following, Admin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.08 ▼0.45
Dashboard /wp-admin3.31 ▼0.0346.90 ▼11.44
Posts /wp-admin/edit.php3.36 ▲0.0152.54 ▲3.99
Add New Post /wp-admin/post-new.php5.89 ▲0.0181.07 ▼16.54
Media Library /wp-admin/upload.php3.23 ▲0.0134.37 ▼2.57

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Personalized Activity for Buddypress - Friends, Following, Admin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.24 ▼1.201.79 ▼0.0543.91 ▲2.75
Dashboard /wp-admin2,206 ▲184.84 ▼0.05106.79 ▲3.3836.31 ▼9.61
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0439.94 ▲3.6134.90 ▲0.50
Add New Post /wp-admin/post-new.php1,514 ▼517.68 ▼5.41593.66 ▼68.8852.94 ▼2.25
Media Library /wp-admin/upload.php1,388 ▼04.25 ▲0.0295.62 ▼18.2841.49 ▼8.93

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/personalized-activity-for-buddypress-frfwa/personalized-activity-for-buddypress-FrFwA.php:40

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: friends only activity, friends and followers activity, community, personalized activity, buddypress...

personalized-activity-for-buddypress-frfwa/personalized-activity-for-buddypress-FrFwA.php 85% from 13 tests

The entry point to "Personalized Activity for Buddypress - Friends, Following, Admin" version 1.0.3 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 178 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("personalized-activity-for-buddypress-frfwa.php" instead of "personalized-activity-for-buddypress-FrFwA.php")

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
Everything looks great! No dangerous files found in this plugin15 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1101515

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin