89% bbp-gdpr

Code Review | bbPress GDPR

WordPress plugin bbPress GDPR scored89%from 54 tests.

About plugin

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

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /3,257 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼7.10ms] Passed 4 tests

Server-side resources used by bbPress GDPR
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.97 ▼4.82
Dashboard /wp-admin3.31 ▼0.0448.58 ▼19.43
Posts /wp-admin/edit.php3.36 ▲0.0048.65 ▼3.07
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.03 ▲2.94
Media Library /wp-admin/upload.php3.23 ▲0.0036.91 ▼1.09

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for bbPress GDPR
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.28 ▼0.131.87 ▲0.1739.54 ▼2.89
Dashboard /wp-admin2,195 ▲245.61 ▼0.1990.70 ▲0.3541.01 ▼4.68
Posts /wp-admin/edit.php2,103 ▲62.02 ▼0.0238.78 ▼1.8135.39 ▼3.60
Add New Post /wp-admin/post-new.php1,528 ▲12423.13 ▲5.24649.69 ▲44.1249.16 ▼0.61
Media Library /wp-admin/upload.php1,403 ▼04.23 ▲0.0598.22 ▼11.2644.37 ▼3.73

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5, #6 in bbp-gdpr/assets to your readme.txt
You can look at the official readme.txt

bbp-gdpr/bbpress-gdpr.php 85% from 13 tests

The entry point to "bbPress GDPR" version 1.0.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bbp-gdpr.php" instead of "bbpress-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 programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected643 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP6161121584
PO File1182059

PHP code Passed 2 tests

An short overview of 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.30
Average class complexity14.50
▷ Minimum class complexity12.00
▷ Maximum class complexity16.00
Average method complexity2.92
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods27
▷ Static methods13.70%
▷ Public methods2488.89%
▷ Protected methods27.41%
▷ Private methods13.70%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
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
There were not PNG files found in your plugin