10% activity-reactions-for-buddypress

Code Review | Activity Reactions For Buddypress

WordPress plugin Activity Reactions For Buddypressscored 10% from 54 tests.

About plugin

  • Plugin page: activity-reaction...
  • Plugin version: 1.0.22
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.8
  • WordPress version: 5.9.2
  • First release: Jul 11, 2016
  • Latest release: Jul 28, 2017
  • Number of updates: 62
  • Update frequency: every 7.1 days
  • Top authors: arete-it (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

900+ active / 27,409 total downloads


Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-includes/class-wp-hook.php+307
    Non-static method arete_buddypress_smileys_setting::arete_create_table() should not be called statically

Server metrics [RAM: ▲0.28MB] [CPU: ▼293.41ms] Passed 4 tests

A check of server-side resources used by Activity Reactions For Buddypress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.87 ▲0.3550.42 ▼7.06
Dashboard /wp-admin3.72 ▲0.3134.70 ▲0.38
Posts /wp-admin/edit.php3.95 ▲0.3037.98 ▼2.85
Add New Post /wp-admin/post-new.php7.19 ▲0.2194.51 ▼1,164.10
Media Library /wp-admin/upload.php3.60 ▲0.3026.71 ▲1.11
Reactions /wp-admin/admin.php?page=activity-reactions-for-buddypress/activity-reactions-for-buddypress.php/settings3.5823.65
Settings /wp-admin/admin.php?page=activity-reactions-for-buddypress/activity-reactions-for-buddypress.php/ai_bp_settings3.5725.85

Server storage [IO: ▲0.26MB] [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: 27 new files
Database: 3 new tables, 1 new option
New tables
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Activity Reactions For Buddypress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,236 ▼52216.01 ▼0.040.32 ▼5.4710.23 ▲7.69
Dashboard /wp-admin2,930 ▲726.18 ▲0.01120.17 ▼20.59172.61 ▲3.35
Posts /wp-admin/edit.php2,730 ▲613.02 ▼0.2166.66 ▲2.73146.41 ▼2.17
Add New Post /wp-admin/post-new.php1,687 ▲2615.68 ▲0.11403.76 ▼9.86164.24 ▲0.59
Media Library /wp-admin/upload.php1,719 ▲215.83 ▲0.29129.71 ▼16.09222.27 ▲33.43
Reactions /wp-admin/admin.php?page=activity-reactions-for-buddypress/activity-reactions-for-buddypress.php/settings1,0172.4259.6893.85
Settings /wp-admin/admin.php?page=activity-reactions-for-buddypress/activity-reactions-for-buddypress.php/ai_bp_settings1,0152.4454.7291.55

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_arete_buddypress_smileys_manage
  • Zombie WordPress options detected upon uninstall: 1 option
    • version

Smoke tests 50% from 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 0% 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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/activity-reactions-for-buddypress/css/ai_bp_reactions_dynamic_css.php
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/activity-reactions-for-buddypress/class/class.php:159
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/activity-reactions-for-buddypress/core.php on line 3
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/activity-reactions-for-buddypress/core.php on line 3
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/activity-reactions-for-buddypress/core.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found


Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === Activity Reactions For Buddypress=== )
You can take inspiration from this readme.txt

activity-reactions-for-buddypress/activity-reactions-for-buddypress.php Passed 13 tests

This is the main PHP file of "Activity Reactions For Buddypress" version 1.0.22, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
91 characters long description:
A plugin for providing registered users option to show their reactions on activity updates.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected3,969 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity13.33
▷ Minimum class complexity6.00
▷ Maximum class complexity19.00
Average method complexity4.08
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
▷ Static methods216.67%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions44100.00%
▷ Anonymous functions00.00%
▷ 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
11 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/unlike.png0.72KB0.65KB▼ 10.53%
img/cry.png2.55KB1.75KB▼ 31.12%