84% bbpress-new-topics

Code Review | bbPress New Topics

WordPress plugin bbPress New Topics scored84%from 54 tests.

About plugin

  • Plugin page: bbpress-new-topics
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.3
  • WordPress version: 6.3.1
  • First release: Feb 18, 2014
  • Latest release: Aug 18, 2015
  • Number of updates: 8
  • Update frequency: every 68.2 days
  • Top authors: tinkerpriest (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

100+ active /11,336 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

An overview of server-side resources used by bbPress New Topics
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.91 ▼7.61
Dashboard /wp-admin3.32 ▲0.0247.41 ▼7.45
Posts /wp-admin/edit.php3.37 ▲0.0148.98 ▼1.51
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.72 ▼9.68
Media Library /wp-admin/upload.php3.24 ▲0.0139.85 ▲6.72

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for bbPress New Topics
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.37 ▼0.031.69 ▲0.0139.89 ▼3.46
Dashboard /wp-admin2,192 ▲155.57 ▼0.0481.73 ▼9.6138.28 ▼7.76
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0539.73 ▼3.1935.47 ▼3.40
Add New Post /wp-admin/post-new.php1,533 ▲722.96 ▲5.43632.62 ▲19.5059.91 ▲4.89
Media Library /wp-admin/upload.php1,403 ▼04.23 ▼0.00105.05 ▲5.1848.07 ▲3.92

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbpress-new-topics/bbpress-new-topics.php:42

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (All new topics and topics with unread replies have the 'New' label prepended before the title.) image missing
The official readme.txt is a good inspiration

bbpress-new-topics/bbpress-new-topics.php 92% from 13 tests

The principal PHP file in "bbPress New Topics" v. 1.0.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected105 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1356692
CSS11013

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity1.73
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin