89% buddypress-user-language

Code Review | Buddypress User Language

WordPress plugin Buddypress User Language scored89%from 54 tests.

About plugin

  • Plugin page: buddypress-user-l...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.5.2
  • WordPress version: 6.3.1
  • First release: Aug 2, 2013
  • Latest release: Feb 8, 2016
  • Number of updates: 6
  • Update frequency: every 153.3 days
  • Top authors: webilop (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

20+ active /6,127 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.63ms] Passed 4 tests

A check of server-side resources used by Buddypress User Language
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0340.30 ▼0.57
Dashboard /wp-admin3.34 ▲0.0349.95 ▼2.27
Posts /wp-admin/edit.php3.39 ▲0.0350.55 ▼3.37
Add New Post /wp-admin/post-new.php5.92 ▲0.0390.25 ▼12.31
Media Library /wp-admin/upload.php3.26 ▲0.0339.10 ▲2.50

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Buddypress User Language
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.72 ▼0.041.92 ▲0.1342.85 ▼5.32
Dashboard /wp-admin2,198 ▲185.57 ▼0.0994.19 ▼4.3938.84 ▼0.95
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0339.20 ▼7.7234.20 ▼5.55
Add New Post /wp-admin/post-new.php1,526 ▼022.97 ▲0.01674.53 ▲53.1457.49 ▲9.46
Media Library /wp-admin/upload.php1,403 ▼04.19 ▲0.0098.89 ▼2.6546.25 ▲2.30

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: Please describe screenshot #0 in buddypress-user-language/assets to your readme.txt
  • Screenshots: Screenshot #1 (screenshot1.png illustrates the User Language options available in the frontend. It allows you to select the languages that will be used in the backend and the frontend as default for every buddypress member.) image required
You can look at the official readme.txt

buddypress-user-language/buddypress-user-language.php Passed 13 tests

The main PHP file in "Buddypress User Language" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
105 characters long description:
Allows backend users to set the language displayed in the back-end and front-end of your buddypress site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin140 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12339140

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected