84% buddypress-groups-import

Code Review | BuddyPress Groups Import

WordPress plugin BuddyPress Groups Import scored84%from 54 tests.

About plugin

  • Plugin page: buddypress-groups...
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.5
  • WordPress version: 6.3.1
  • First release: Mar 20, 2014
  • Latest release: May 12, 2016
  • Number of updates: 6
  • Update frequency: every 130.8 days
  • Top authors: trkr (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /3,045 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.20ms] Passed 4 tests

Analyzing server-side resources used by BuddyPress Groups Import
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.24 ▲1.99
Dashboard /wp-admin3.31 ▲0.0046.15 ▼6.71
Posts /wp-admin/edit.php3.36 ▲0.0045.56 ▲1.00
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.79 ▼18.84
Media Library /wp-admin/upload.php3.23 ▲0.0035.02 ▼0.25

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by BuddyPress Groups Import
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.10 ▼0.291.79 ▲0.1745.88 ▲3.55
Dashboard /wp-admin2,195 ▲155.57 ▼0.0981.61 ▼6.6739.69 ▼4.14
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0034.21 ▼3.0335.64 ▼2.03
Add New Post /wp-admin/post-new.php1,526 ▼021.18 ▼2.09759.48 ▲70.4554.37 ▼15.61
Media Library /wp-admin/upload.php1,403 ▲64.21 ▲0.0295.93 ▼16.2943.88 ▼3.99

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely 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
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-groups-import/bpgi.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: settings, forum, bbpress, buddypress, csv...

buddypress-groups-import/bpgi.php 92% from 13 tests

The primary PHP file in "BuddyPress Groups Import" version 0.3 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("buddypress-groups-import.php" instead of "bpgi.php")

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 plugin440 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PO File27986235
PHP13838175
HTML17430

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions4
▷ Named functions4100.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
2 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png54.29KB26.63KB▼ 50.96%
screenshot-2.png13.27KB4.89KB▼ 63.13%