90% bbpress-keyboard-shortcuts

Code Review | bbPress Keyboard Shortcuts

WordPress plugin bbPress Keyboard Shortcuts scored90%from 54 tests.

About plugin

  • Plugin page: bbpress-keyboard-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.1
  • WordPress version: 6.3.1
  • First release: Mar 7, 2015
  • Latest release: Mar 7, 2015
  • Number of updates: 2
  • Update frequency: every 5.5 days
  • Top authors: NikV (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /867 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by bbPress Keyboard Shortcuts
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.60 ▲1.66
Dashboard /wp-admin3.31 ▲0.0152.46 ▲7.94
Posts /wp-admin/edit.php3.37 ▲0.0045.15 ▲0.52
Add New Post /wp-admin/post-new.php5.90 ▲0.0082.55 ▼4.30
Media Library /wp-admin/upload.php3.24 ▲0.0038.65 ▲0.40

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for bbPress Keyboard Shortcuts
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲7014.37 ▼0.021.97 ▲0.3040.95 ▼4.56
Dashboard /wp-admin2,200 ▲295.50 ▼0.0583.69 ▼4.1638.09 ▼1.33
Posts /wp-admin/edit.php2,105 ▲81.94 ▼0.0534.18 ▼0.9532.15 ▼8.31
Add New Post /wp-admin/post-new.php1,531 ▲522.73 ▼0.81675.61 ▼9.3866.43 ▲7.94
Media Library /wp-admin/upload.php1,408 ▲144.23 ▲0.02102.12 ▲0.6045.61 ▲3.52

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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, but this is not an exhaustive test


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: bbpress, shortcuts, keyboard

bbpress-keyboard-shortcuts/bbpress-keyboard-shortcuts.php Passed 13 tests

The primary PHP file in "bbPress Keyboard Shortcuts" version 1.0 is used by WordPress to initiate all plugin functionality
44 characters long description:
Keyboard shortcuts for your bbPress install.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin35 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ 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 are no PNG files in this plugin