10% buddymenu-buddylinks

Code Review | BuddyMenu BuddyLinks

WordPress plugin BuddyMenu BuddyLinks scored10%from 54 tests.

About plugin

  • Plugin page: buddymenu-buddylinks
  • Plugin version: 2.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.7
  • WordPress version: 6.3.1
  • First release: Jan 6, 2013
  • Latest release: Oct 25, 2013
  • Number of updates: 16
  • Update frequency: every 18.3 days
  • Top authors: leehodson (100%)

Code review

54 tests

User reviews

17 reviews

Install metrics

100+ active /13,297 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/buddymenu-buddylinks/buddymenu.php+1798
    Function create_function() is deprecated

Server metrics [RAM: ▼1.97MB] [CPU: ▼63.11ms] Passed 4 tests

An overview of server-side resources used by BuddyMenu BuddyLinks
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.70 ▼40.03
Dashboard /wp-admin2.05 ▼1.304.99 ▼61.99
Posts /wp-admin/edit.php2.05 ▼1.317.11 ▼48.80
Add New Post /wp-admin/post-new.php2.05 ▼3.845.08 ▼101.61
Media Library /wp-admin/upload.php2.05 ▼1.187.39 ▼29.93

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_buddymenu
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for BuddyMenu BuddyLinks
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲4514.69 ▲0.321.70 ▼0.0337.12 ▼8.46
Dashboard /wp-admin2,195 ▲185.62 ▼0.0592.96 ▼1.8139.86 ▼4.96
Posts /wp-admin/edit.php2,097 ▼32.02 ▼0.0039.36 ▲0.4533.70 ▼6.18
Add New Post /wp-admin/post-new.php1,526 ▼223.58 ▲0.54682.34 ▼12.2256.10 ▼2.76
Media Library /wp-admin/upload.php1,400 ▼34.14 ▼0.13109.36 ▲12.5345.23 ▼0.37

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/buddymenu-buddylinks/buddymenu.php+1798
    Function create_function() is deprecated
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_buddymenu
    • can_compress_scripts
    • 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
Even though no errors were found, this is by no means an exhaustive test

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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddymenu-buddylinks/buddymenu.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% 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:
  • Screenshots: These screenshots require images: #1 (screenshot-1), #2 (screenshot-2), #3 (screenshot-3), #4 (screenshot-4)
You can take inspiration from this readme.txt

buddymenu-buddylinks/buddymenu.php 85% from 13 tests

The principal PHP file in "BuddyMenu BuddyLinks" v. 2.2.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("buddymenu-buddylinks.php" instead of "buddymenu.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 364 characters long)

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
Good job! No executable or dangerous file extensions detected2,296 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1291822,254
CSS123042

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity40.00
▷ Minimum class complexity40.00
▷ Maximum class complexity40.00
Average method complexity10.75
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.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
22 PNG files occupy 0.31MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/edit-profile.png1.45KB1.37KB▼ 5.20%
screenshot-4.png93.83KB28.10KB▼ 70.06%
img/members.png1.45KB1.36KB▼ 6.59%
img/settings.png1.81KB1.42KB▼ 21.49%
img/profile.png1.58KB1.40KB▼ 11.30%