64% bbpress-like-topics

Code Review | bbPress Like Topics

WordPress plugin bbPress Like Topics scored 64% from 54 tests.

About plugin

  • Plugin page: bbpress-like-topics
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-4.1.1
  • WordPress version: 6.3.1
  • First release: Nov 20, 2014
  • Latest release: Apr 21, 2015
  • Number of updates: 22
  • Update frequency: every 6.9 days
  • Top authors: eduardo-leoni (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 2,411 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼1.91MB] [CPU: ▼54.97ms] Passed 4 tests

An overview of server-side resources used by bbPress Like Topics
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.384.11 ▼39.14
Dashboard /wp-admin2.10 ▼1.215.19 ▼48.10
Posts /wp-admin/edit.php2.10 ▼1.267.18 ▼37.98
Add New Post /wp-admin/post-new.php2.10 ▼3.795.58 ▼94.66
Media Library /wp-admin/upload.php2.10 ▼1.135.61 ▼26.81

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: 1 new table, 6 new options
New tables
wp_bbpress_likes
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for bbPress Like Topics
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,909 ▲15213.89 ▼0.427.76 ▲5.5641.95 ▼1.98
Dashboard /wp-admin2,206 ▲184.88 ▼1.00108.11 ▲0.3738.44 ▼4.45
Posts /wp-admin/edit.php2,089 ▼02.18 ▲0.1742.18 ▲6.4035.14 ▲3.30
Add New Post /wp-admin/post-new.php1,533 ▲1223.10 ▲0.02703.46 ▲19.8059.72 ▲7.24
Media Library /wp-admin/upload.php1,388 ▲34.22 ▼0.15104.66 ▲2.1246.74 ▲2.79

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie tables were found after uninstall: 1 table
    • wp_bbpress_likes
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 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
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/bbpress-like-topics/bbpress-like-topics.php:115

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 Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: bbpress, topics, likes, ajax

bbpress-like-topics/bbpress-like-topics.php Passed 13 tests

The main PHP file in "bbPress Like Topics" ver. 1.4 adds more information about the plugin and also serves as the entry point for this plugin
51 characters long description:
Let members show their love to the topics they like

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin188 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP16517156
JavaScript18032

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin