84% newest-replies-first-in-bbpress

Code Review | Newest replies first in bbPress

WordPress plugin Newest replies first in bbPress scored 84% from 54 tests.

About plugin

  • Plugin page: newest-replies-fi...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.4
  • WordPress version: 6.3.1
  • First release: Aug 6, 2020
  • Latest release: Sep 23, 2023
  • Number of updates: 7
  • Update frequency: every 163.7 days
  • Top authors: jeroenpeters1986 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 570 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
The plugin installed gracefully, with no errors

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

Server-side resources used by Newest replies first in bbPress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.18 ▼1.47
Dashboard /wp-admin3.31 ▲0.0048.68 ▼1.41
Posts /wp-admin/edit.php3.36 ▲0.0049.80 ▼0.18
Add New Post /wp-admin/post-new.php5.89 ▲0.0096.86 ▲4.61
Media Library /wp-admin/upload.php3.24 ▲0.0035.46 ▼0.43

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Newest replies first in bbPress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.34 ▼1.041.73 ▼0.3345.70 ▼2.35
Dashboard /wp-admin2,206 ▲214.86 ▼1.00112.21 ▼1.3742.75 ▼0.82
Posts /wp-admin/edit.php2,092 ▼02.03 ▼0.0638.82 ▼1.6636.48 ▼0.21
Add New Post /wp-admin/post-new.php1,533 ▲1923.37 ▲5.85621.06 ▲1.6148.05 ▼13.64
Media Library /wp-admin/upload.php1,382 ▼64.29 ▲0.0896.30 ▼8.1441.73 ▼2.84

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

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 | 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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/newest-replies-first-in-bbpress/newest-replies-first-in-bbpress.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Plugin Name: Please specify the plugin name on the first line ( === newest-replies-first-in-bbpress === )
The official readme.txt might help

newest-replies-first-in-bbpress/newest-replies-first-in-bbpress.php Passed 13 tests

The main PHP file in "Newest replies first in bbPress" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
40 characters long description:
View the newest replies first in bbPress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin6 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1376

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin