90% sensei-buddypress

Code Review | BuddyPress for Sensei

WordPress plugin BuddyPress for Sensei scored90%from 54 tests.

About plugin

  • Plugin page: sensei-buddypress
  • Plugin version: 1.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.8.2
  • WordPress version: 6.3.1
  • First release: Jun 14, 2015
  • Latest release: Sep 18, 2018
  • Number of updates: 34
  • Update frequency: every 35.4 days
  • Top authors: BuddyBoss (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

100+ active /19,711 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by BuddyPress for Sensei
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.26 ▼5.60
Dashboard /wp-admin3.31 ▼0.0472.21 ▲3.86
Posts /wp-admin/edit.php3.36 ▲0.0053.35 ▼0.52
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.70 ▼14.19
Media Library /wp-admin/upload.php3.23 ▲0.0039.21 ▲4.06

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

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

Browser metrics Passed 4 tests

BuddyPress for Sensei: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.34 ▼0.211.65 ▼0.1836.65 ▼5.93
Dashboard /wp-admin2,198 ▲215.63 ▲0.0387.62 ▲0.4336.57 ▼3.42
Posts /wp-admin/edit.php2,103 ▲31.98 ▼0.0536.88 ▲0.6636.29 ▲5.23
Add New Post /wp-admin/post-new.php1,526 ▼223.56 ▲0.48641.46 ▲41.8661.45 ▲16.39
Media Library /wp-admin/upload.php1,400 ▼04.21 ▲0.0298.22 ▼3.0341.47 ▼5.64

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 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 Passed 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
Congratulations! This plugin passed the SRP test

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 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 23 tag instead of maximum 10
You can take inspiration from this readme.txt

sensei-buddypress/sensei-buddypress.php Passed 13 tests

"BuddyPress for Sensei" version 1.2.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
109 characters long description:
Integrate the WooThemes Sensei plugin with BuddyPress, so you can add social activity to your education site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin4,974 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP157348372,310
JSON2001,459
PO File3299323735
CSS33751365
JavaScript5689105

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity28.00
▷ Minimum class complexity7.00
▷ Maximum class complexity81.00
Average method complexity3.23
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods97
▷ Static methods88.25%
▷ Public methods9496.91%
▷ Protected methods00.00%
▷ Private methods33.09%
Functions44
▷ Named functions44100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/jquery-ui/redmond/images/ui-bg_glass_75_d0e5f5_1x400.png0.12KB0.16KB0.00%
assets/jquery-ui/redmond/images/ui-bg_glass_95_fef1ec_1x400.png0.12KB0.14KB0.00%
assets/jquery-ui/redmond/images/ui-bg_inset-hard_100_fcfdfd_1x100.png0.11KB0.09KB▼ 15.18%
assets/jquery-ui/redmond/images/ui-bg_flat_0_aaaaaa_40x100.png0.18KB0.08KB▼ 51.67%
assets/jquery-ui/redmond/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png3.38KB1.68KB▼ 50.10%