84% activitystream-extension

Code Review | ActivityStream extension

WordPress plugin ActivityStream extension scored84%from 54 tests.

About plugin

  • Plugin page: activitystream-ex...
  • Plugin version: 1.3.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-6.4
  • WordPress version: 6.3.1
  • First release: Apr 6, 2009
  • Latest release: Nov 29, 2023
  • Number of updates: 64
  • Update frequency: every 83.7 days
  • Top authors: pfefferle (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /7,182 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼9.39ms] Passed 4 tests

Analyzing server-side resources used by ActivityStream extension
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0342.59 ▼16.62
Dashboard /wp-admin3.33 ▼0.0255.89 ▼5.91
Posts /wp-admin/edit.php3.38 ▲0.0248.72 ▼2.08
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.71 ▼12.95
Media Library /wp-admin/upload.php3.25 ▲0.0238.00 ▲2.48

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for ActivityStream extension
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5714.34 ▼0.361.71 ▼0.2037.24 ▼7.56
Dashboard /wp-admin2,195 ▲175.56 ▼0.1295.95 ▼19.4842.69 ▼2.57
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0536.15 ▼4.6833.32 ▼4.98
Add New Post /wp-admin/post-new.php1,526 ▼923.20 ▼0.14663.05 ▲71.4357.73 ▲5.73
Media Library /wp-admin/upload.php1,394 ▼34.15 ▼0.0495.54 ▼1.8642.19 ▼1.18

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • 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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_singular() in wp-content/plugins/activitystream-extension/templates/feed-as2-comments.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/activitystream-extension/activitystream-extension.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_feed_link() in wp-content/plugins/activitystream-extension/templates/feed-as2.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function feed_content_type() in wp-content/plugins/activitystream-extension/templates/feed-as1.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function feed_content_type() in wp-content/plugins/activitystream-extension/templates/feed-as1-comments.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: activity stream, activitystreams, json-ld, feed, atom...

activitystream-extension/activitystream-extension.php Passed 13 tests

"ActivityStream extension" version 1.3.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
73 characters long description:
An extensions which adds several ActivityStreams (activitystrea.ms) Feeds

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 detected689 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity42.00
▷ Minimum class complexity42.00
▷ Maximum class complexity42.00
Average method complexity3.41
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods17100.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin