83% suffusion-buddypress-pack

Code Review | Suffusion BuddyPress Pack

WordPress plugin Suffusion BuddyPress Pack scored83%from 54 tests.

About plugin

  • Plugin page: suffusion-buddypr...
  • Plugin version: 1.13
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 15, 2010
  • Latest release: Dec 3, 2012
  • Number of updates: 26
  • Update frequency: every 28.8 days
  • Top authors: sayontan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /23,881 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.10MB] [CPU: ▼9.79ms] Passed 4 tests

A check of server-side resources used by Suffusion BuddyPress Pack
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1142.27 ▲1.90
Dashboard /wp-admin3.42 ▲0.0746.40 ▼14.93
Posts /wp-admin/edit.php3.53 ▲0.1746.07 ▼2.32
Add New Post /wp-admin/post-new.php6.00 ▲0.1181.69 ▼20.47
Media Library /wp-admin/upload.php3.34 ▲0.1134.60 ▼1.45

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 302 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Suffusion BuddyPress Pack: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2914.80 ▲0.421.68 ▼0.5343.32 ▼3.22
Dashboard /wp-admin2,206 ▲184.85 ▼1.05106.84 ▲0.2538.72 ▼7.00
Posts /wp-admin/edit.php2,092 ▲31.99 ▼0.0438.98 ▲1.5936.29 ▲4.54
Add New Post /wp-admin/post-new.php1,535 ▲1623.36 ▲0.12655.85 ▲18.9862.75 ▲12.65
Media Library /wp-admin/upload.php1,388 ▲34.30 ▲0.1096.97 ▼5.4542.02 ▼1.32

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 243× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/suffusion-buddypress-pack/template-1.6/blogs/create.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bp_group_has_members() in wp-content/plugins/suffusion-buddypress-pack/template-1.2/groups/single/members.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/suffusion-buddypress-pack/template-1.6/groups/single/forum/topic.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/suffusion-buddypress-pack/template-1.5/forums/single/forum.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/suffusion-buddypress-pack/template-1.5/forums/single/forum-header.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/suffusion-buddypress-pack/template-1.6/groups/single/send-invites.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/suffusion-buddypress-pack/template-1.6/jet-event-system/events/single/plugins.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/suffusion-buddypress-pack/template-1.6/groups/single/home.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bp_is_my_profile() in wp-content/plugins/suffusion-buddypress-pack/template-1.5/members/single/settings.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/suffusion-buddypress-pack/template-1.6/activity/comment.php:15

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% 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 to be fixed:
  • Requires at least: The plugin version is formatted incorrectly
  • Tested up to: The plugin version is formatted incorrectly
You can take inspiration from this readme.txt

suffusion-buddypress-pack/suffusion-bp-pack.php 85% from 13 tests

The principal PHP file in "Suffusion BuddyPress Pack" v. 1.13 is loaded by WordPress automatically on each request
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 168 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("suffusion-buddypress-pack.php" instead of "suffusion-bp-pack.php")

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
No dangerous file extensions were detected11,928 lines of code in 160 files:
LanguageFilesBlank linesComment linesLines of code
PHP1574,12445910,616
CSS31961971,312

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity32.50
▷ Minimum class complexity8.00
▷ Maximum class complexity57.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes150.00%
▷ Concrete classes150.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods24100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants13100.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
46 compressed PNG files occupy 0.07MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
template-1.5/jet-event-system/events/css/images/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%
include/images/bg-gray-1.png0.52KB0.97KB0.00%
template-1.2/jet-event-system/events/css/images/ui-bg_glass_95_fef1ec_1x400.png0.12KB0.14KB0.00%
template-1.2/jet-event-system/events/css/images/ui-bg_flat_0_aaaaaa_40x100.png0.18KB0.08KB▼ 51.67%
template-1.6/jet-event-system/events/css/images/ui-icons_cd0a0a_256x240.png4.27KB4.11KB▼ 3.78%