10% buddypress-summary-tab

Code Review | BP Summary Page

WordPress plugin BP Summary Page scored10%from 54 tests.

About plugin

  • Plugin page: buddypress-summar...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.5.1
  • WordPress version: 6.3.1
  • First release: Mar 13, 2013
  • Latest release: Mar 15, 2013
  • Number of updates: 11
  • Update frequency: every 36.4 days
  • Top authors: ktraff (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,392 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Warning in wp-content/plugins/buddypress-summary-tab/bp-summary-page.php+11
    Use of undefined constant BPSP_ROOT_PATH - assumed 'BPSP_ROOT_PATH' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▼1.96MB] [CPU: ▼48.52ms] Passed 4 tests

This is a short check of server-side resources used by BP Summary Page
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.445.86 ▼31.69
Dashboard /wp-admin2.05 ▼1.265.59 ▼38.37
Posts /wp-admin/edit.php2.05 ▼1.314.71 ▼39.05
Add New Post /wp-admin/post-new.php2.05 ▼3.845.52 ▼84.95
Media Library /wp-admin/upload.php2.05 ▼1.184.99 ▼30.85

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for BP Summary Page
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.20 ▼1.182.62 ▲0.9256.86 ▲15.74
Dashboard /wp-admin2,203 ▲175.77 ▲0.8293.71 ▼11.5438.22 ▼1.29
Posts /wp-admin/edit.php2,089 ▼32.06 ▲0.0937.91 ▲0.6229.95 ▼2.92
Add New Post /wp-admin/post-new.php1,519 ▼1423.09 ▲0.08594.44 ▼64.3654.51 ▼5.59
Media Library /wp-admin/upload.php1,388 ▼04.23 ▲0.0196.85 ▼1.8442.04 ▲0.44

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Warning in wp-content/plugins/buddypress-summary-tab/bp-summary-page.php+11
    Use of undefined constant BPSP_ROOT_PATH - assumed 'BPSP_ROOT_PATH' (this will throw an Error in a future version of PHP)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/buddypress-summary-tab/pages/style.php
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      Use of undefined constant BPSP_ROOT_PATH - assumed 'BPSP_ROOT_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/buddypress-summary-tab/bp-summary-page.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/buddypress-summary-tab/bp-summary-page.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bp_summary_biography() in wp-content/plugins/buddypress-summary-tab/pages/view.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
4 plugin tags: buddypress, buddy, biography, summary

buddypress-summary-tab/bp-summary-page.php 92% from 13 tests

"BP Summary Page" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("buddypress-summary-tab.php" instead of "bp-summary-page.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected192 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP35011192

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin