10% bp-groups-import-users

Code Review | BP GROUPS IMPORT USERS

WordPress plugin BP GROUPS IMPORT USERS scored10%from 54 tests.

About plugin

  • Plugin page: bp-groups-import-...
  • Plugin version: 1.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.3.2
  • WordPress version: 6.3.1
  • First release: Jul 27, 2017
  • Latest release: Feb 2, 2020
  • Number of updates: 5
  • Update frequency: every 184.0 days
  • Top authors: VibeThemes (80%)hklatiyan (40%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /3,151 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
You still need to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method bp_group_import_users_class::activate() should not be called statically

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

Analyzing server-side resources used by BP GROUPS IMPORT USERS
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.61 ▼4.85
Dashboard /wp-admin3.33 ▲0.0349.51 ▼7.17
Posts /wp-admin/edit.php3.38 ▲0.0351.39 ▼1.21
Add New Post /wp-admin/post-new.php5.91 ▲0.0386.28 ▼21.26
Media Library /wp-admin/upload.php3.25 ▲0.0337.65 ▼1.45

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for BP GROUPS IMPORT USERS
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▼0.161.80 ▼0.3045.30 ▲2.46
Dashboard /wp-admin2,209 ▲214.90 ▼0.19101.77 ▼14.5540.34 ▼3.26
Posts /wp-admin/edit.php2,086 ▼31.97 ▼0.0235.27 ▼0.6232.78 ▼0.95
Add New Post /wp-admin/post-new.php1,542 ▲2818.13 ▲0.62645.16 ▼54.4158.41 ▲0.30
Media Library /wp-admin/upload.php1,382 ▼64.38 ▲0.2496.90 ▼14.4146.58 ▲0.42

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method bp_group_import_users_class::deactivate() should not be called statically
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: import, import bulk users, bp groups import users, import users, bp

bp-groups-import-users/bp_groups_import_users.php 85% from 13 tests

The primary PHP file in "BP GROUPS IMPORT USERS" version 1.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("bp-groups-import-users.php" instead of "bp_groups_import_users.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
No dangerous file extensions were detected117 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24938117

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods116.67%
▷ Public methods583.33%
▷ Protected methods00.00%
▷ Private methods116.67%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin