83% bbpress-admin-replies

Code Review | bbPress - Admin Answers

WordPress plugin bbPress - Admin Answers scored83%from 54 tests.

About plugin

  • Plugin page: bbpress-admin-rep...
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.0.1
  • WordPress version: 6.3.1
  • First release: Aug 27, 2014
  • Latest release: Oct 11, 2014
  • Number of updates: 45
  • Update frequency: every 1.0 days
  • Top authors: daniluk4000 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /2,132 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.26MB] [CPU: ▼16.66ms] Passed 4 tests

A check of server-side resources used by bbPress - Admin Answers
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0634.25 ▼5.25
Dashboard /wp-admin3.40 ▲0.1047.40 ▼4.38
Posts /wp-admin/edit.php3.37 ▲0.0140.97 ▼5.33
Add New Post /wp-admin/post-new.php4.69 ▼1.1940.21 ▼51.68
Media Library /wp-admin/upload.php3.32 ▲0.0936.76 ▲2.68

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for bbPress - Admin Answers
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,677 ▼6913.17 ▼1.201.12 ▼0.8121.36 ▼26.12
Dashboard /wp-admin2,206 ▲185.86 ▲0.98109.71 ▼9.6142.20 ▼3.83
Posts /wp-admin/edit.php1,076 ▼1,0101.53 ▼0.477.58 ▼27.9730.72 ▼7.06
Add New Post /wp-admin/post-new.php45 ▼1,4880.44 ▼22.700.06 ▼662.3310.82 ▼44.42
Media Library /wp-admin/upload.php1,388 ▼34.15 ▼0.0393.50 ▼11.5466.82 ▲21.76

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • recovery_mode_email_last_sent
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbpress-admin-replies/replies.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbpress-admin-replies/replies.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side


Plugin configuration 83% from 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
6 plugin tags: bbpress, forum, forums, admin replies, replies...

bbpress-admin-replies/bbpress-admin-answers.php 62% from 13 tests

"bbPress - Admin Answers" version 2.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bbpress-admin-replies.php" instead of "bbpress-admin-answers.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 155 characters long)
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
  • Domain Path: The domain path should be prefixed with a forward slash character ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin435 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PO File35968

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity30.50
▷ Minimum class complexity27.00
▷ Maximum class complexity34.00
Average method complexity3.81
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.11MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshots/Screenshot 1.png103.09KB63.43KB▼ 38.47%
screenshots/Screenshot 2.png12.10KB6.93KB▼ 42.73%