83% buddypress-multilingual

Code Review | BuddyPress Multilingual

WordPress plugin BuddyPress Multilingual scored 83% from 54 tests.

About plugin

  • Plugin page: buddypress-multil...
  • Plugin version: 1.7.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Oct 5, 2009
  • Latest release: Aug 11, 2023
  • Number of updates: 114
  • Update frequency: every 44.4 days
  • Top authors: jozik (65.79%)strategio (11.4%)AmirHelzer (7.89%)dgwatkins (7.02%)mihaimihai (6.14%)

Code review

54 tests

User reviews

37 reviews

Install metrics

7,000+ active / 117,992 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼0.68ms] Passed 4 tests

An overview of server-side resources used by BuddyPress Multilingual
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0247.78 ▲1.54
Dashboard /wp-admin3.33 ▲0.0255.14 ▲2.45
Posts /wp-admin/edit.php3.38 ▲0.0255.32 ▲3.50
Add New Post /wp-admin/post-new.php5.91 ▲0.0296.77 ▼10.21
Media Library /wp-admin/upload.php3.25 ▲0.0239.75 ▲5.79

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for BuddyPress Multilingual
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲413.20 ▼1.205.50 ▲3.5945.34 ▲2.25
Dashboard /wp-admin2,210 ▲44.86 ▼0.94102.65 ▼5.5641.29 ▼0.72
Posts /wp-admin/edit.php2,095 ▲61.97 ▼0.0540.01 ▲1.0235.00 ▲0.01
Add New Post /wp-admin/post-new.php1,541 ▼123.10 ▲4.74675.46 ▲39.0155.57 ▼12.82
Media Library /wp-admin/upload.php1,392 ▲14.19 ▲0.0096.58 ▼3.7643.69 ▼0.20

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however 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
Almost there! Just fix the following items
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Interface 'IWPML_Backend_Action' not found in wp-content/plugins/buddypress-multilingual/includes/class.filters.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'IWPML_Backend_Action' not found in wp-content/plugins/buddypress-multilingual/includes/class-bpml-compatibility.php:3
    • > PHP Fatal error
      Uncaught Error: Interface 'IWPML_Backend_Action' not found in wp-content/plugins/buddypress-multilingual/includes/class.upgrade.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'IWPML_Backend_Action' not found in wp-content/plugins/buddypress-multilingual/includes/class.groups.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'IWPML_Backend_Action' not found in wp-content/plugins/buddypress-multilingual/includes/class.xprofile.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/buddypress-multilingual/sitepress-bp.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === buddypress-multilingual === )
  • Screenshots: These screenshots do not have images: #1 (Language switcher in the navigation), #2 (Message in other language), #3 (Activity stream), #4 (Profile)
The official readme.txt might help

buddypress-multilingual/sitepress-bp.php 92% from 13 tests

Analyzing the main PHP file in "BuddyPress Multilingual" version 1.7.0
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("buddypress-multilingual.php" instead of "sitepress-bp.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
Success! There were no dangerous files found in this plugin1,394 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP172784541,368
JavaScript11014
XML1009
JSON1003

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity22.09
▷ Minimum class complexity1.00
▷ Maximum class complexity71.00
Average method complexity3.07
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods114
▷ Static methods65.26%
▷ Public methods8372.81%
▷ Protected methods32.63%
▷ Private methods2824.56%
Functions17
▷ Named functions1270.59%
▷ Anonymous functions529.41%
Constants9
▷ Global constants333.33%
▷ Class constants666.67%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 compressed PNG files occupy 0.33MB
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png129.13KB139.06KB0.00%
screenshot-4.png81.53KB86.17KB0.00%
screenshot-3.png48.71KB50.30KB0.00%
screenshot-2.png76.39KB80.84KB0.00%