10% buddypress-activity-tags

Code Review | BuddyPress Activity Tags

WordPress plugin BuddyPress Activity Tags scored10%from 54 tests.

About plugin

  • Plugin page: buddypress-activi...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: BuddyPress 1.2.5-3.8.1
  • WordPress version: 6.3.1
  • First release: Sep 7, 2010
  • Latest release: Apr 8, 2015
  • Number of updates: 10
  • Update frequency: every 167.4 days
  • Top authors: aliciagh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /5,904 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/buddypress-activity-tags/bp-activity-tags.php+79
    Methods with the same name as their class will not be constructors in a future version of PHP; Bp_Activity_Tags_Widget has a deprecated constructor

Server metrics [RAM: ▼1.78MB] [CPU: ▼53.51ms] Passed 4 tests

A check of server-side resources used by BuddyPress Activity Tags
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.21 ▼1.255.24 ▼37.04
Dashboard /wp-admin2.23 ▼1.077.11 ▼43.52
Posts /wp-admin/edit.php2.23 ▼1.126.79 ▼38.92
Add New Post /wp-admin/post-new.php2.23 ▼3.665.92 ▼94.56
Media Library /wp-admin/upload.php2.23 ▼1.007.04 ▼27.61

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for BuddyPress Activity Tags
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.26 ▼1.164.58 ▲2.7244.60 ▼6.11
Dashboard /wp-admin2,209 ▲245.86 ▼0.0494.74 ▼8.3740.07 ▼3.25
Posts /wp-admin/edit.php2,092 ▲32.00 ▼0.0437.25 ▲1.9830.33 ▼3.49
Add New Post /wp-admin/post-new.php1,538 ▲1023.05 ▲4.81579.56 ▼63.6152.47 ▲2.54
Media Library /wp-admin/upload.php1,388 ▲34.26 ▲0.0496.09 ▼1.7640.84 ▼1.59

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/buddypress-activity-tags/bp-activity-tags.php+79
    Methods with the same name as their class will not be constructors in a future version of PHP; Bp_Activity_Tags_Widget has a deprecated constructor
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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 fix the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATH/wp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/buddypress-activity-tags/bp-activity-tags.php on line 41
    • > PHP Warning
      require_once(ABSPATH/wp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/buddypress-activity-tags/bp-activity-tags.php on line 41
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/buddypress-activity-tags/bp-activity-tags.php on line 41

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots require images: #1 (Widget configuration.), #2 (Widget.)
The official readme.txt might help

buddypress-activity-tags/bp-activity-tags.php 85% from 13 tests

The principal PHP file in "BuddyPress Activity Tags" v. 1.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Requires at least: Required version number should use periods and dots only (ex. "7.0" instead of "BuddyPress 1.2.5")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("buddypress-activity-tags.php" instead of "bp-activity-tags.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected735 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PO File4133153379
PHP18681334
CSS19222

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity34.00
▷ Minimum class complexity34.00
▷ Maximum class complexity34.00
Average method complexity5.12
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png30.06KB9.99KB▼ 66.76%
screenshot-1.png48.16KB14.08KB▼ 70.77%