94% activitystream-extension

Code Review | ActivityStream extension

WordPress plugin ActivityStream extension scored 94% from 54 tests.

About plugin

  • Plugin page: activitystream-ex...
  • Plugin version: 1.3.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-5.9
  • WordPress version: 5.9.2
  • First release: Apr 6, 2009
  • Latest release: Jan 28, 2022
  • Number of updates: 60
  • Update frequency: every 78.1 days
  • Top authors: pfefferle (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 5,476 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼287.86ms] Passed 4 tests

Analyzing server-side resources used by ActivityStream extension
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.1555.19 ▼0.84
Dashboard /wp-admin3.51 ▲0.1033.53 ▼0.27
Posts /wp-admin/edit.php3.73 ▲0.0937.67 ▼0.91
Add New Post /wp-admin/post-new.php6.97 ▼0.00101.97 ▼1,149.42
Media Library /wp-admin/upload.php3.38 ▲0.0924.54 ▼0.21

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for ActivityStream extension
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,799 ▲4515.81 ▲0.145.86 ▼0.302.37 ▼0.16
Dashboard /wp-admin2,895 ▲416.12 ▼0.07115.01 ▼24.85158.08 ▼5.72
Posts /wp-admin/edit.php2,688 ▼63.24 ▼0.0063.65 ▲0.81140.71 ▼0.51
Add New Post /wp-admin/post-new.php1,752 ▼020.91 ▼0.07455.49 ▲4.17156.32 ▲2.97
Media Library /wp-admin/upload.php1,698 ▼05.51 ▲0.03136.71 ▼15.43180.65 ▼8.02

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > 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 feed_content_type() in wp-content/plugins/activitystream-extension/templates/feed-as1-comments.php:12
    • > 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 is_singular() in wp-content/plugins/activitystream-extension/templates/feed-as2-comments.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function feed_content_type() in wp-content/plugins/activitystream-extension/templates/feed-as1.php:12

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)
Everything seems fine, but this is not an exhaustive test


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: json, atom, activitystreams, activity stream, rss...

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

The entry point to "ActivityStream extension" version 1.3.7 is a PHP file that has certain tags in its header comment area
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 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin690 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin