84% activity-feed-anywhere

Code Review | Activity Feed Anywhere

WordPress plugin Activity Feed Anywhere scored 84% from 54 tests.

About plugin

  • Plugin page: activity-feed-any...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Feb 10, 2023
  • Latest release: Feb 10, 2023
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: bouncingsprout (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 188 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
Install script ran successfully

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

This is a short check of server-side resources used by Activity Feed Anywhere
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.91 ▼2.70
Dashboard /wp-admin3.31 ▲0.0058.27 ▲4.36
Posts /wp-admin/edit.php3.36 ▲0.0049.16 ▼17.73
Add New Post /wp-admin/post-new.php5.89 ▲0.0098.55 ▲5.89
Media Library /wp-admin/upload.php3.23 ▲0.0040.05 ▲0.98

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

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

Browser metrics Passed 4 tests

Activity Feed Anywhere: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲1113.13 ▼1.281.89 ▼0.0043.03 ▼3.20
Dashboard /wp-admin2,206 ▲34.84 ▼0.97105.78 ▲4.1845.73 ▲4.54
Posts /wp-admin/edit.php2,089 ▲32.01 ▼0.0134.60 ▼5.7435.02 ▼2.50
Add New Post /wp-admin/post-new.php1,534 ▲123.12 ▲0.05631.32 ▼63.7955.16 ▼8.54
Media Library /wp-admin/upload.php1,385 ▼34.25 ▲0.0897.79 ▼16.0940.83 ▼6.50

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/activity-feed-anywhere/classes/class-bs-activity-feed-anywhere.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: activity feed, activity, stream, buddypress, buddyboss

activity-feed-anywhere/activity-feed-anywhere.php 92% from 13 tests

"Activity Feed Anywhere" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected242 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP599164242

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods950.00%
▷ Public methods1477.78%
▷ Protected methods00.00%
▷ Private methods422.22%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants6
▷ Global constants583.33%
▷ Class constants116.67%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected