94% lh-buddypress-export-xprofile-data

Code Review | LH Buddypress Export Xprofile Data

WordPress plugin LH Buddypress Export Xprofile Data scored 94% from 54 tests.

About plugin

  • Plugin page: lh-buddypress-exp...
  • Plugin version: 2.00
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 5.8.1
  • First release: May 6, 2019
  • Latest release: Mar 11, 2021
  • Number of updates: 4
  • Update frequency: every 168.8 days
  • Top authors: shawfactor (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

400+ active / 2,126 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by LH Buddypress Export Xprofile Data
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1532.54 ▲10.29
Dashboard /wp-admin3.09 ▲0.0434.82 ▼6.09
Posts /wp-admin/edit.php3.14 ▲0.0444.12 ▲3.78
Add New Post /wp-admin/post-new.php5.46 ▲0.0291.33 ▼560.47
Media Library /wp-admin/upload.php3.03 ▲0.0333.52 ▼6.31

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for LH Buddypress Export Xprofile Data
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10815.79 ▲0.268.59 ▼0.8848.34 ▲0.33
Dashboard /wp-admin2,970 ▲395.89 ▼0.05138.10 ▼5.32107.31 ▼7.29
Posts /wp-admin/edit.php2,736 ▼32.69 ▲0.0169.24 ▲5.1490.55 ▼10.60
Add New Post /wp-admin/post-new.php1,872 ▲18219.18 ▲0.28371.60 ▼2.18112.82 ▲5.98
Media Library /wp-admin/upload.php1,804 ▼35.02 ▼0.01155.76 ▼3.83113.24 ▼20.36

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lh-buddypress-export-xprofile-data/lh-buddypress-export-xprofile-data.php:252

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% 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: csv, users, buddypress, export, xprofile

lh-buddypress-export-xprofile-data/lh-buddypress-export-xprofile-data.php 92% from 13 tests

The main PHP script in "LH Buddypress Export Xprofile Data" version 2.00 is automatically included on every request by WordPress
The following require your attention:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

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
Good job! No executable or dangerous file extensions detected336 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP27347149
JavaScript227295
CSS218092

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods337.50%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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 images were found in this plugin