90% buddypress-edit-activity

Code Review | BuddyPress Edit Activity

WordPress plugin BuddyPress Edit Activity scored90%from 54 tests.

About plugin

  • Plugin page: buddypress-edit-a...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.4
  • WordPress version: 6.3.1
  • First release: Jan 14, 2015
  • Latest release: Apr 23, 2020
  • Number of updates: 29
  • Update frequency: every 66.5 days
  • Top authors: BuddyBoss (100%)

Code review

54 tests

User reviews

18 reviews

Install metrics

1,000+ active /71,873 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by BuddyPress Edit Activity
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.98 ▼1.05
Dashboard /wp-admin3.31 ▲0.0153.56 ▲1.42
Posts /wp-admin/edit.php3.36 ▲0.0053.89 ▲6.37
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.62 ▼9.24
Media Library /wp-admin/upload.php3.23 ▲0.0034.74 ▼3.65

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by BuddyPress Edit Activity
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲6313.35 ▼1.271.55 ▼0.5241.35 ▼3.17
Dashboard /wp-admin2,212 ▲205.80 ▲0.9096.06 ▼14.1041.69 ▲2.48
Posts /wp-admin/edit.php2,097 ▲82.03 ▲0.0339.67 ▼2.0235.68 ▼4.24
Add New Post /wp-admin/post-new.php1,522 ▼617.68 ▼0.58654.24 ▲14.3260.85 ▲7.18
Media Library /wp-admin/upload.php1,397 ▲94.19 ▼0.0797.94 ▼13.5044.22 ▼0.56

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

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)
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: You are using too many tags: 14 tag instead of maximum 10
Please take inspiration from this readme.txt

buddypress-edit-activity/buddypress-edit-activity.php Passed 13 tests

The entry point to "BuddyPress Edit Activity" version 1.1.1 is a PHP file that has certain tags in its header comment area
49 characters long description:
Edit BuddyPress activity posts from the front-end

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,235 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP4164262534
PO File6167256488
JavaScript33371201
JSON10012

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity42.00
▷ Minimum class complexity25.00
▷ Maximum class complexity59.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods42
▷ Static methods24.76%
▷ Public methods3378.57%
▷ Protected methods00.00%
▷ Private methods921.43%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants5
▷ Global constants5100.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