78% buddyextender

Code Review | BuddyExtender

WordPress plugin BuddyExtender scored78%from 54 tests.

About plugin

  • Plugin page: buddyextender
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.7
  • WordPress version: 6.3.1
  • First release: Apr 28, 2016
  • Latest release: Feb 17, 2023
  • Number of updates: 13
  • Update frequency: every 191.2 days
  • Top authors: tw2113 (53.85%)vegasgeek (53.85%)

Code review

54 tests

User reviews

9 reviews

Install metrics

100+ active /5,491 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.01ms] Passed 4 tests

A check of server-side resources used by BuddyExtender
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.80 ▼1.05
Dashboard /wp-admin3.31 ▲0.0051.93 ▲0.77
Posts /wp-admin/edit.php3.36 ▲0.0047.44 ▼1.32
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.54 ▼6.42
Media Library /wp-admin/upload.php3.23 ▲0.0038.35 ▲3.16
BuddyExtender /wp-admin/options-general.php?page=bpext_options3.0023.40

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for BuddyExtender
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.081.98 ▲0.2940.39 ▼5.20
Dashboard /wp-admin2,195 ▲185.58 ▼0.0286.06 ▲0.9937.91 ▲1.02
Posts /wp-admin/edit.php2,097 ▼61.96 ▼0.0137.12 ▼0.2934.96 ▲0.12
Add New Post /wp-admin/post-new.php1,536 ▲222.69 ▲4.43673.31 ▼6.8449.51 ▼15.24
Media Library /wp-admin/upload.php1,397 ▼34.15 ▼0.0898.91 ▼0.6243.20 ▼5.16
BuddyExtender /wp-admin/options-general.php?page=bpext_options280.420.153.47

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
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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 fix the following
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddyextender/loader.php:394
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddyextender/vendor/CMB2/init.php:75
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/buddyextender/vendor/helpscout/helpscout-dashboard-widget.php:116
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/buddyextender/classes/class-admin.php:55
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/buddyextender/vendor/helpscout/views/system-info.php:11

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
    • > GET request to /wp-admin/options-general.php?page=bpext_options
    • > Network (severe)
    wp-admin/options-general.php?page=bpext_options - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: buddypress, settings

buddyextender/loader.php 77% from 13 tests

The main PHP script in "BuddyExtender" version 1.0.2 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("buddyextender.php" instead of "loader.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin44,918 lines of code in 165 files:
LanguageFilesBlank linesComment linesLines of code
PO File11912,73116,33529,151
CSS102,0252,0498,517
PHP211,2443,0524,649
Sass11174231,931
JavaScript4164121670

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity43.67
▷ Minimum class complexity3.00
▷ Maximum class complexity135.00
Average method complexity3.31
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes18
▷ Abstract classes00.00%
▷ Concrete classes18100.00%
▷ Final classes00.00%
Methods332
▷ Static methods3510.54%
▷ Public methods27281.93%
▷ Protected methods5516.57%
▷ Private methods51.51%
Functions30
▷ Named functions30100.00%
▷ Anonymous functions00.00%
Constants73
▷ Global constants1317.81%
▷ Class constants6082.19%
▷ Public constants60100.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
17 compressed PNG files occupy 0.12MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/CMB2/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%
vendor/CMB2/images/ui-bg_glass_55_fbf9ee_1x400.png0.12KB0.14KB0.00%
vendor/helpscout/assets/img/pluginize.png2.25KB2.23KB▼ 0.78%
vendor/CMB2/images/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%
assets/images/apppresser.png53.71KB27.30KB▼ 49.17%