10% buddypress-activity-sidebar-widget-resubmission

Code Review | Buddypress Activity Widget

WordPress plugin Buddypress Activity Widget scored 10% from 54 tests.

About plugin

  • Plugin page: buddypress-activi...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 15, 2013
  • Latest release: Sep 15, 2013
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: rameshwor.maharjan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 3,000 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/buddypress-activity-sidebar-widget-resubmission/buddypress-activity-widget.php+87
    Methods with the same name as their class will not be constructors in a future version of PHP; WebAvenue_Activity_Widget has a deprecated constructor

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

An overview of server-side resources used by Buddypress Activity Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.20 ▼14.50
Dashboard /wp-admin3.31 ▲0.0046.74 ▼8.76
Posts /wp-admin/edit.php3.36 ▲0.0049.54 ▼1.61
Add New Post /wp-admin/post-new.php5.89 ▲0.0098.04 ▼5.12
Media Library /wp-admin/upload.php3.23 ▲0.0040.63 ▲3.04

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Buddypress Activity Widget
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.74 ▲0.441.74 ▼0.8241.42 ▼8.11
Dashboard /wp-admin2,206 ▲214.85 ▼1.04110.30 ▼18.3343.87 ▼5.26
Posts /wp-admin/edit.php2,092 ▲32.04 ▲0.0241.27 ▲3.9437.83 ▲4.70
Add New Post /wp-admin/post-new.php1,411 ▼13117.89 ▼0.18568.87 ▼136.9646.14 ▼6.27
Media Library /wp-admin/upload.php1,388 ▼04.13 ▼0.09104.40 ▼5.7445.10 ▼2.39

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/buddypress-activity-sidebar-widget-resubmission/buddypress-activity-widget.php:43

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% 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:
  • Requires at least: The plugin version is formatted incorrectly
  • Tested up to: The plugin version is formatted incorrectly
You can look at the official readme.txt

buddypress-activity-sidebar-widget-resubmission/buddypress-activity-widget.php 85% from 13 tests

The principal PHP file in "Buddypress Activity Widget" v. 1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("buddypress-activity-sidebar-widget-resubmission.php" instead of "buddypress-activity-widget.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 204 characters long)

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

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity22.50
▷ Minimum class complexity3.00
▷ Maximum class complexity42.00
Average method complexity5.78
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
PNG images were not found in this plugin