72% gd-power-search-for-bbpress

Code Review | GD Power Search for bbPress

WordPress plugin GD Power Search for bbPress scored72%from 54 tests.

About plugin

  • Plugin page: gd-power-search-f...
  • Plugin version: 1.4.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.2
  • WordPress version: 6.3.1
  • First release: Jan 31, 2019
  • Latest release: Mar 29, 2023
  • Number of updates: 17
  • Update frequency: every 89.4 days
  • Top authors: GDragoN (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /3,995 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

An overview of server-side resources used by GD Power Search for bbPress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.40 ▼4.70
Dashboard /wp-admin3.31 ▼0.0453.56 ▼12.16
Posts /wp-admin/edit.php3.36 ▲0.0049.89 ▼1.19
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.69 ▼10.26
Media Library /wp-admin/upload.php3.23 ▲0.0037.79 ▼2.21
GD Power Search /wp-admin/options-general.php?page=gd-power-search-for-bbpress3.0026.34

Server storage [IO: ▲2.56MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
Please try to fix the following items
  • The plugin illegally modified 1 file (4.00KB) outside of "wp-content/plugins/gd-power-search-for-bbpress/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 196 new files
Database: no new tables, 10 new options
New WordPress options
dev4press_gd-power-search_settings
widget_recent-comments
widget_recent-posts
can_compress_scripts
dev4press_gd-power-search_core
dev4press_gd-power-search_info
dev4press_gd-power-search_form
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by GD Power Search for bbPress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲8613.25 ▼0.981.85 ▲0.2043.58 ▲2.64
Dashboard /wp-admin2,221 ▲155.88 ▲0.95109.69 ▼0.5445.34 ▲2.61
Posts /wp-admin/edit.php2,103 ▲31.99 ▼0.0535.43 ▼5.2635.05 ▼3.29
Add New Post /wp-admin/post-new.php1,547 ▲2122.89 ▲5.29664.31 ▼20.8758.62 ▼0.53
Media Library /wp-admin/upload.php1,394 ▼64.19 ▼0.0298.94 ▼12.6043.40 ▼2.93
GD Power Search /wp-admin/options-general.php?page=gd-power-search-for-bbpress280.440.074.94

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 10 options in the database
    • widget_recent-posts
    • db_upgraded
    • dev4press_gd-power-search_form
    • theysaidso_admin_options
    • dev4press_gd-power-search_info
    • widget_theysaidso_widget
    • can_compress_scripts
    • dev4press_gd-power-search_settings
    • dev4press_gd-power-search_core
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/gd-power-search-for-bbpress/forms/about/whatsnew.php
  • 31× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/gd-power-search-for-bbpress/forms/shared/invalid.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/gd-power-search-for-bbpress/templates/default/bbpress/power-period.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/gd-power-search-for-bbpress/forms/about/changelog.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/gd-power-search-for-bbpress/templates/default/bbpress/power-submit.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/gd-power-search-for-bbpress/gd-power-search-for-bbpress.php:35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/gd-power-search-for-bbpress/templates/default/bbpress/content-search-wrapper.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/gd-power-search-for-bbpress/forms/about/info.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bbp_search_url() in wp-content/plugins/gd-power-search-for-bbpress/templates/default/bbpress/form-search-basic.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/gd-power-search-for-bbpress/templates/default/bbpress/power-order.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/gd-power-search-for-bbpress/templates/default/bbpress/power-users-select.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
    • > GET request to /wp-admin/options-general.php?page=gd-power-search-for-bbpress
    • > Network (severe)
    wp-admin/options-general.php?page=gd-power-search-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
7 plugin tags: keywords, dev4press, filters, advanced search, forums...

gd-power-search-for-bbpress/gd-power-search-for-bbpress.php 92% from 13 tests

"GD Power Search for bbPress" version 1.4.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 164 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected15,724 lines of code in 156 files:
LanguageFilesBlank linesComment linesLines of code
PHP892,2228118,506
CSS29724373,303
SVG2003,151
JavaScript2812560520
Sass8450244

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity18.13
▷ Minimum class complexity1.00
▷ Maximum class complexity117.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity59.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes45
▷ Abstract classes1226.67%
▷ Concrete classes3373.33%
▷ Final classes00.00%
Methods467
▷ Static methods173.64%
▷ Public methods34874.52%
▷ Protected methods5010.71%
▷ Private methods6914.78%
Functions139
▷ Named functions139100.00%
▷ Anonymous functions00.00%
Constants62
▷ Global constants2235.48%
▷ Class constants4064.52%
▷ Public constants40100.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
1 PNG file occupies 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
d4plib/resources/flags/flags.png79.53KB25.86KB▼ 67.48%