10% bp-extend-widgets

Code Review | BuddyPress Extend Widgets

WordPress plugin BuddyPress Extend Widgets scored10%from 54 tests.

About plugin

  • Plugin page: bp-extend-widgets
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: WP 3.2, BuddyPress 1.5+
  • WordPress version: 6.3.1
  • First release: Mar 23, 2012
  • Latest release: Jan 4, 2015
  • Number of updates: 4
  • Update frequency: every 254.3 days
  • Top authors: slaFFik (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /5,607 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • The plugin cannot be installed
    • > Compile error in wp-content/plugins/bp-extend-widgets/bp-extend-widgets.php+65
    Cannot use $this as parameter

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

This is a short check of server-side resources used by BuddyPress Extend Widgets
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.03 ▼5.41
Dashboard /wp-admin3.31 ▼0.0447.92 ▼15.23
Posts /wp-admin/edit.php3.36 ▲0.0049.02 ▲2.64
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.11 ▼21.45
Media Library /wp-admin/upload.php3.23 ▲0.0040.56 ▲7.34

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for BuddyPress Extend Widgets
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.73 ▼0.662.29 ▲0.5145.89 ▲1.40
Dashboard /wp-admin2,206 ▲185.84 ▼0.01105.11 ▼11.6741.65 ▼0.76
Posts /wp-admin/edit.php2,089 ▼01.98 ▼0.0735.95 ▼3.2033.00 ▼4.95
Add New Post /wp-admin/post-new.php1,533 ▲523.22 ▲0.31686.68 ▲75.9453.05 ▲6.44
Media Library /wp-admin/upload.php1,391 ▼04.19 ▼0.00100.86 ▲0.3244.99 ▼0.40

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Cannot use $this as parameter in wp-content/plugins/bp-extend-widgets/bp-extend-widgets.php on line 65

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Requires at least: Version format is invalid
  • Tested up to: Version format is invalid
The official readme.txt might help

bp-extend-widgets/bp-extend-widgets.php 92% from 13 tests

The principal PHP file in "BuddyPress Extend Widgets" v. 1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Requires at least: Please use periods and digits for the required version (ex. "7.0" instead of "WP 3.2, BuddyPress 1.5")

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
There were no executable files found in this plugin121 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PO File2201864
PHP1202257

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.74
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.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
There are no PNG files in this plugin