83% ls-buddypress-activity-plus-tabs-extension

Code Review | LS Buddypress Activity plus tabs extension

WordPress plugin LS Buddypress Activity plus tabs extension scored83%from 54 tests.

About plugin

  • Plugin page: ls-buddypress-act...
  • Plugin version: 4.0
  • PHP version: 7.4.16
  • WordPress compatibility: WP 4.3+
  • WordPress version: 6.3.1
  • First release: Aug 2, 2013
  • Latest release: Jan 27, 2023
  • Number of updates: 44
  • Update frequency: every 78.8 days
  • Top authors: lenasterg (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

30+ active /8,634 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼2.27MB] [CPU: ▼427,038.46ms] Passed 4 tests

Analyzing server-side resources used by LS Buddypress Activity plus tabs extension
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0245.01 ▲1.43
Dashboard /wp-admin3.36 ▼9.1456.78 ▼1,708,134.80
Posts /wp-admin/edit.php3.41 ▲0.0252.50 ▲3.53
Add New Post /wp-admin/post-new.php5.94 ▲0.0289.21 ▼20.23
Media Library /wp-admin/upload.php3.29 ▲0.0237.22 ▼0.24

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for LS Buddypress Activity plus tabs extension
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.39 ▼0.261.77 ▲0.0446.22 ▲3.59
Dashboard /wp-admin2,198 ▲185.57 ▲0.0486.13 ▼4.9540.71 ▼0.43
Posts /wp-admin/edit.php2,103 ▲31.96 ▼0.0335.03 ▼1.4736.73 ▼0.40
Add New Post /wp-admin/post-new.php1,404 ▼12217.96 ▼5.14615.39 ▼154.0256.09 ▼33.38
Media Library /wp-admin/upload.php1,391 ▼64.19 ▲0.02100.04 ▼6.3344.91 ▼6.04

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ls-buddypress-activity-plus-tabs-extension/loader.php:45

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: These screenshots require images: #1 (Tabs (Links, Videos, Images) in group's navigation bar), #2 (BuddyPress Group's Videos widget), #3 (BuddyPress Group's Videos widget in a single group in frontend)
  • Tested up to: Invalid plugin version format
  • Requires at least: Invalid plugin version format
Please take inspiration from this readme.txt

ls-buddypress-activity-plus-tabs-extension/loader.php 85% from 13 tests

"LS Buddypress Activity plus tabs extension" version 4.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("ls-buddypress-activity-plus-tabs-extension.php" instead of "loader.php")
  • Requires at least: Please use periods and digits for the required version (ex. "7.0" instead of "WP 4.3")

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 detected616 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP7122114616
CSS11160

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity12.50
▷ Minimum class complexity12.00
▷ Maximum class complexity13.00
Average method complexity4.83
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
6 PNG files occupy 0.31MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/chain_16x16.png0.41KB0.33KB▼ 20.14%
screenshot-1.png86.95KB32.24KB▼ 62.93%
screenshot-2.png24.44KB13.53KB▼ 44.62%
images/16-video-square_16x16.png0.37KB0.22KB▼ 40.31%
screenshot-3.png200.72KB57.60KB▼ 71.30%