89% bp-gdpr

Code Review | BuddyPress GDPR

WordPress plugin BuddyPress GDPR scored 89% from 54 tests.

About plugin

  • Plugin page: bp-gdpr
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.6-5.1
  • WordPress version: 6.3.1
  • First release: May 29, 2018
  • Latest release: Jun 7, 2019
  • Number of updates: 6
  • Update frequency: every 62.3 days
  • Top authors: BuddyBoss (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active / 5,455 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.21ms] Passed 4 tests

This is a short check of server-side resources used by BuddyPress GDPR
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.71 ▼4.74
Dashboard /wp-admin3.33 ▲0.0243.82 ▼3.15
Posts /wp-admin/edit.php3.44 ▲0.0845.96 ▼0.00
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.98 ▼20.94
Media Library /wp-admin/upload.php3.25 ▲0.0234.53 ▲4.05
BuddyPress GDPR /wp-admin/options-general.php?page=buddyboss-bp-gdpr3.2129.90

Server storage [IO: ▲0.09MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by BuddyPress GDPR
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.17 ▼1.201.67 ▼0.2440.76 ▼7.05
Dashboard /wp-admin2,213 ▲224.85 ▼0.09100.15 ▼2.7940.18 ▼2.73
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0441.18 ▼0.0937.11 ▼2.10
Add New Post /wp-admin/post-new.php1,541 ▲2723.34 ▲5.90673.90 ▲35.2055.60 ▲5.53
Media Library /wp-admin/upload.php1,392 ▲14.18 ▼0.02101.02 ▲3.4444.20 ▲0.90
BuddyPress GDPR /wp-admin/options-general.php?page=buddyboss-bp-gdpr8082.0324.1026.56

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • 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
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: buddypress, data, european, anonymous, gdpr...

bp-gdpr/buddypress-gdpr.php 85% from 13 tests

This is the main PHP file of "BuddyPress GDPR" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bp-gdpr.php" instead of "buddypress-gdpr.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,559 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP156134511,382
PO File177164177

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity14.83
▷ Minimum class complexity4.00
▷ Maximum class complexity24.00
Average method complexity3.19
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes12
▷ Abstract classes18.33%
▷ Concrete classes1191.67%
▷ Final classes11100.00%
Methods76
▷ Static methods1114.47%
▷ Public methods7294.74%
▷ Protected methods22.63%
▷ Private methods22.63%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin