84% bbpress-featured-replies

Code Review | bbPress - Featured Replies

WordPress plugin bbPress - Featured Replies scored 84% from 54 tests.

About plugin

  • Plugin page: bbpress-featured-...
  • Plugin version: 0.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.8.1
  • WordPress version: 6.3.1
  • First release: Apr 13, 2014
  • Latest release: Sep 6, 2014
  • Number of updates: 12
  • Update frequency: every 12.1 days
  • Top authors: jjeaton (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,759 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 gracefully, with no errors

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

Server-side resources used by bbPress - Featured Replies
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.70 ▼0.52
Dashboard /wp-admin3.31 ▲0.0047.37 ▼1.45
Posts /wp-admin/edit.php3.36 ▲0.0050.36 ▲2.20
Add New Post /wp-admin/post-new.php5.89 ▲0.00104.17 ▲2.11
Media Library /wp-admin/upload.php3.23 ▲0.0033.98 ▼2.22

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

bbPress - Featured Replies: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.29 ▼1.304.22 ▲2.1943.58 ▲6.69
Dashboard /wp-admin2,206 ▲185.89 ▲0.9698.13 ▼15.3441.38 ▼2.76
Posts /wp-admin/edit.php2,089 ▲32.04 ▲0.0340.79 ▲0.7540.22 ▲1.18
Add New Post /wp-admin/post-new.php1,537 ▲422.84 ▼0.30642.83 ▼54.8959.76 ▲4.82
Media Library /wp-admin/upload.php1,388 ▼04.21 ▲0.0297.09 ▼11.6542.58 ▼1.28

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 does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • 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
Even though everything seems fine, this is not an exhaustive test

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 take a closer look at the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bbpress-featured-replies/includes/widget.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/bbpress-featured-replies/bbpress-featured-replies.php:462

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
4 plugin tags: replies, featured, featured replies, bbpress

bbpress-featured-replies/bbpress-featured-replies.php 92% from 13 tests

The main file in "bbPress - Featured Replies" v. 0.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 177 characters long)

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 plugin381 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2169107347
JavaScript12234

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.31
Average class complexity26.00
▷ Minimum class complexity10.00
▷ Maximum class complexity42.00
Average method complexity2.85
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods27
▷ Static methods622.22%
▷ Public methods2281.48%
▷ Protected methods00.00%
▷ Private methods518.52%
Functions1
▷ Named functions1100.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
No PNG images were found in this plugin