83% bbpress-auto-suggest-topics-based-on-new-topic-title

Code Review | bbPress Live Topic Suggestions

WordPress plugin bbPress Live Topic Suggestions scored 83% from 54 tests.

About plugin

  • Plugin page: bbpress-auto-sugg...
  • Plugin version: 1.0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.9
  • WordPress version: 6.3.1
  • First release: May 15, 2014
  • Latest release: Jun 25, 2015
  • Number of updates: 24
  • Update frequency: every 44.3 days
  • Top authors: adbox (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

70+ active / 5,037 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

A check of server-side resources used by bbPress Live Topic Suggestions
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.66 ▼2.70
Dashboard /wp-admin3.32 ▲0.0151.83 ▲1.30
Posts /wp-admin/edit.php3.37 ▲0.0144.97 ▼3.09
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.07 ▼9.88
Media Library /wp-admin/upload.php3.24 ▲0.0136.17 ▲2.94

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for bbPress Live Topic Suggestions
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.25 ▼1.061.80 ▼0.1541.97 ▼0.35
Dashboard /wp-admin2,209 ▲184.87 ▼1.00100.42 ▼13.0540.67 ▼1.66
Posts /wp-admin/edit.php2,092 ▲32.13 ▲0.1338.49 ▼1.5534.66 ▼3.38
Add New Post /wp-admin/post-new.php1,533 ▼923.31 ▲4.88689.74 ▲72.9957.77 ▼2.62
Media Library /wp-admin/upload.php1,391 ▼04.16 ▼0.0798.67 ▼4.8540.36 ▼3.16

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbpress-auto-suggest-topics-based-on-new-topic-title/modules/module.enqueue.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbpress-auto-suggest-topics-based-on-new-topic-title/modules/module.get-data.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/bbpress-auto-suggest-topics-based-on-new-topic-title/bbpress-live-topic-suggestions.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/bbpress-auto-suggest-topics-based-on-new-topic-title/modules/module.settings.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbpress-auto-suggest-topics-based-on-new-topic-title/modules/module.print-searchresults.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (Example of auto-suggested topics.) image missing
  • Donate link: Please fix this invalid URI: ""
You can look at the official readme.txt

bbpress-auto-suggest-topics-based-on-new-topic-title/bbpress-live-topic-suggestions.php 85% from 13 tests

The entry point to "bbPress Live Topic Suggestions" version 1.0.9 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 175 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bbpress-auto-suggest-topics-based-on-new-topic-title.php" instead of "bbpress-live-topic-suggestions.php")

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
There were no executable files found in this plugin870 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript812696629
PHP55931153
Markdown222042
JSON10029
HTML11017

PHP code Passed 2 tests

A short 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.28
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin