72% gd-members-directory-for-bbpress

Code Review | GD Members Directory for bbPress

WordPress plugin GD Members Directory for bbPress scored72%from 54 tests.

About plugin

  • Plugin page: gd-members-direct...
  • Plugin version: 2.5
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.3
  • WordPress version: 6.3.1
  • First release: Dec 29, 2020
  • Latest release: Jul 16, 2023
  • Number of updates: 22
  • Update frequency: every 42.2 days
  • Top authors: GDragoN (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /2,294 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by GD Members Directory for bbPress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.61 ▲0.41
Dashboard /wp-admin3.31 ▲0.0045.99 ▼0.76
Posts /wp-admin/edit.php3.36 ▲0.0045.76 ▼4.88
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.17 ▼22.45
Media Library /wp-admin/upload.php3.23 ▲0.0034.01 ▼0.66
GD Members Directory /wp-admin/options-general.php?page=gd-members-directory-for-bbpress3.0124.37

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

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

Browser metrics Passed 4 tests

A check of browser resources used by GD Members Directory for bbPress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.55 ▼0.841.55 ▼0.1641.64 ▼5.55
Dashboard /wp-admin2,209 ▲215.91 ▲0.90105.71 ▼9.1941.14 ▼1.26
Posts /wp-admin/edit.php2,089 ▼32.01 ▲0.0339.59 ▼3.6535.40 ▼0.71
Add New Post /wp-admin/post-new.php1,519 ▼2323.36 ▲5.19681.70 ▲53.6552.79 ▲2.14
Media Library /wp-admin/upload.php1,388 ▼34.24 ▼0.05112.41 ▲16.6347.95 ▲5.84
GD Members Directory /wp-admin/options-general.php?page=gd-members-directory-for-bbpress280.440.073.70

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 25% from 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 0% 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
Please take a closer look at the following
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/gd-members-directory-for-bbpress/forms/content-about-whatsnew.php
    • > /wp-content/plugins/gd-members-directory-for-bbpress/d4plib/forms/footer.php
    • > /wp-content/plugins/gd-members-directory-for-bbpress/d4plib/forms/content-dashboard.php
  • 59× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/gd-members-directory-for-bbpress/forms/content-tools-remove.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Dev4Press\\v42\\Functions\\panel() in wp-content/plugins/gd-members-directory-for-bbpress/d4plib/forms/sidebar-settings-full.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/gd-members-directory-for-bbpress/d4plib/forms/sidebar-dashboard.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/gd-members-directory-for-bbpress/d4plib/forms/content-features-index.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/gd-members-directory-for-bbpress/forms/content-dashboard.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Dev4Press\\v42\\Functions\\panel() in wp-content/plugins/gd-members-directory-for-bbpress/d4plib/forms/sidebar-tools.php:5
    • > PHP Warning
      Use of undefined constant GDMED_PATH - assumed 'GDMED_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/gd-members-directory-for-bbpress/forms/content-install.php on line 12
    • > PHP Warning
      include(): Failed opening 'GDMED_PATHforms/content-about-minor.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/gd-members-directory-for-bbpress/forms/content-about-whatsnew.php on line 1
    • > PHP Warning
      Use of undefined constant GDMED_PATH - assumed 'GDMED_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/gd-members-directory-for-bbpress/forms/content-update.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/gd-members-directory-for-bbpress/templates/default/extras/members-directory.php:1

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=gd-members-directory-for-bbpress
    • > Network (severe)
    wp-admin/options-general.php?page=gd-members-directory-for-bbpress - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: widget, members, filter, dev4press, search...

gd-members-directory-for-bbpress/gd-members-directory-for-bbpress.php 92% from 13 tests

The primary PHP file in "GD Members Directory for bbPress" version 2.5 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 173 characters long)

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
Success! There were no dangerous files found in this plugin34,399 lines of code in 355 files:
LanguageFilesBlank linesComment linesLines of code
PHP1874,4362,09515,236
CSS471,1543910,562
Sass501,096265,622
JavaScript693041202,951
Markdown212028

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity14.67
▷ Minimum class complexity1.00
▷ Maximum class complexity148.00
Average method complexity2.58
▷ Minimum method complexity1.00
▷ Maximum method complexity65.00
Code structure
Namespaces39
Interfaces0
Traits3
Classes119
▷ Abstract classes3731.09%
▷ Concrete classes8268.91%
▷ Final classes22.44%
Methods1,100
▷ Static methods18917.18%
▷ Public methods83375.73%
▷ Protected methods23421.27%
▷ Private methods333.00%
Functions32
▷ Named functions3093.75%
▷ Anonymous functions26.25%
Constants53
▷ Global constants611.32%
▷ Class constants4788.68%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 compressed PNG files occupy 0.06MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
d4plib/resources/gfx/buy_me_a_coffee.png7.73KB7.79KB0.00%
d4plib/resources/libraries/flags/img/flag_placeholder.png0.09KB0.09KB0.00%
d4plib/resources/libraries/flags/img/flags_responsive.png54.14KB57.01KB0.00%