84% buddypress-extended-profile-translation

Code Review | BuddyPress Extended Profile Translation

WordPress plugin BuddyPress Extended Profile Translation scored84%from 54 tests.

About plugin

  • Plugin page: buddypress-extend...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.0
  • WordPress version: 6.3.1
  • First release: Mar 7, 2015
  • Latest release: Dec 9, 2018
  • Number of updates: 13
  • Update frequency: every 105.7 days
  • Top authors: mechter (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,814 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.59ms] Passed 4 tests

An overview of server-side resources used by BuddyPress Extended Profile Translation
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.47 ▼15.35
Dashboard /wp-admin3.34 ▲0.0445.65 ▼8.35
Posts /wp-admin/edit.php3.39 ▲0.0453.78 ▲3.64
Add New Post /wp-admin/post-new.php5.92 ▲0.0488.19 ▼2.29
Media Library /wp-admin/upload.php3.26 ▲0.0439.52 ▲4.33

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

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

Browser metrics Passed 4 tests

A check of browser resources used by BuddyPress Extended Profile Translation
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.21 ▼0.081.82 ▲0.0940.43 ▼5.12
Dashboard /wp-admin2,198 ▲185.64 ▼0.0195.83 ▲2.4442.65 ▲4.05
Posts /wp-admin/edit.php2,100 ▼31.95 ▼0.0238.58 ▼2.7435.64 ▼1.81
Add New Post /wp-admin/post-new.php1,533 ▲523.19 ▲0.08660.41 ▼32.9155.00 ▲4.29
Media Library /wp-admin/upload.php1,403 ▲94.24 ▲0.03111.66 ▲11.0644.05 ▼0.78

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 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
Please fix the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-extended-profile-translation/includes/admin-xprofile.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-extended-profile-translation/includes/admin-xprofile.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: bp_enable_multiblog, multilingual, localization, multisite, buddypress...

buddypress-extended-profile-translation/buddypress-extended-profile-translation.php Passed 13 tests

The entry point to "BuddyPress Extended Profile Translation" version 1.0 is a PHP file that has certain tags in its header comment area
54 characters long description:
Multilingual Extended Profiles in multisite BuddyPress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin241 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23511178
CSS10063

PHP code Passed 2 tests

Analyzing 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.60
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%
Functions7
▷ Named functions571.43%
▷ Anonymous functions228.57%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin