90% bbpress-sort-topic-replies

Code Review | bbPress - Sort topic replies

WordPress plugin bbPress - Sort topic replies scored 90% from 54 tests.

About plugin

  • Plugin page: bbpress-sort-topi...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.5.2
  • WordPress version: 6.3.1
  • First release: Mar 28, 2014
  • Latest release: May 28, 2016
  • Number of updates: 18
  • Update frequency: every 44.0 days
  • Top authors: SandyRig (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

400+ active / 5,118 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by bbPress - Sort topic replies
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0132.85 ▼11.06
Dashboard /wp-admin3.31 ▲0.0146.86 ▼2.05
Posts /wp-admin/edit.php3.36 ▲0.0147.71 ▲2.38
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.03 ▲12.57
Media Library /wp-admin/upload.php3.24 ▲0.0135.92 ▲0.04
Forums Sort Options /wp-admin/options-general.php?page=forums_sort_options3.2032.47

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: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for bbPress - Sort topic replies
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▼2114.43 ▲1.251.69 ▼0.1839.48 ▼5.01
Dashboard /wp-admin2,204 ▲14.86 ▼1.00106.05 ▲11.0941.71 ▲2.17
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0739.22 ▲5.5135.59 ▲0.99
Add New Post /wp-admin/post-new.php1,537 ▲423.31 ▲0.29662.56 ▼9.4349.68 ▼2.79
Media Library /wp-admin/upload.php1,386 ▼54.14 ▼0.11106.91 ▲7.8845.75 ▲1.80
Forums Sort Options /wp-admin/options-general.php?page=forums_sort_options8942.1824.2624.24

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 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: sort, replies, bbpress, topic

bbpress-sort-topic-replies/bbPress_sort_topic_replies.php 92% from 13 tests

The principal PHP file in "bbPress - Sort topic replies" v. 1.0.3 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("bbpress-sort-topic-replies.php" instead of "bbPress_sort_topic_replies.php")

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 detected245 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13546245

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.56
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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