84% personalized-activity-for-buddypress-fwa

Code Review | Personalized Activity for Buddypress - Following & Admin

WordPress plugin Personalized Activity for Buddypress - 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 13, 2021
  • Latest release: Nov 13, 2021
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: crossbow6 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /330 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: ▼5.89ms] Passed 4 tests

An overview of server-side resources used by Personalized Activity for Buddypress - Following & Admin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.50 ▼0.30
Dashboard /wp-admin3.31 ▼0.0346.15 ▼12.63
Posts /wp-admin/edit.php3.36 ▲0.0142.30 ▼4.11
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.98 ▼6.37
Media Library /wp-admin/upload.php3.24 ▲0.0132.94 ▼0.44

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Personalized Activity for Buddypress - Following & Admin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.17 ▼0.211.80 ▼0.0943.53 ▲3.71
Dashboard /wp-admin2,195 ▲235.67 ▲0.0282.20 ▼16.4936.72 ▼8.47
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0135.88 ▲0.5235.33 ▼4.03
Add New Post /wp-admin/post-new.php1,526 ▼022.99 ▼0.63642.02 ▼22.9356.97 ▼17.83
Media Library /wp-admin/upload.php1,400 ▲34.21 ▼0.04108.44 ▲4.1146.30 ▼0.84

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/personalized-activity-for-buddypress-fwa/personalized-activity-for-buddypress-FwA.php:35

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: social network, buddypress, community

personalized-activity-for-buddypress-fwa/personalized-activity-for-buddypress-FwA.php 85% from 13 tests

The principal PHP file in "Personalized Activity for Buddypress - Following & Admin" v. 1.0.3 is loaded by WordPress automatically on each request
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 149 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("personalized-activity-for-buddypress-fwa.php" instead of "personalized-activity-for-buddypress-FwA.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
Good job! No executable or dangerous file extensions detected13 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP191313

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
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 images were found in this plugin