90% bbpress-canned-replies

Code Review | bbPress - Canned Replies

WordPress plugin bbPress - Canned Replies scored90%from 54 tests.

About plugin

  • Plugin page: bbpress-canned-re...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.1
  • WordPress version: 6.3.1
  • First release: Jul 30, 2013
  • Latest release: Dec 17, 2014
  • Number of updates: 15
  • Update frequency: every 33.9 days
  • Top authors: mordauk (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

30+ active /4,061 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.15ms] Passed 4 tests

An overview of server-side resources used by bbPress - Canned Replies
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0437.84 ▼3.54
Dashboard /wp-admin3.35 ▼0.0049.43 ▼11.87
Posts /wp-admin/edit.php3.40 ▲0.0454.41 ▲6.86
Add New Post /wp-admin/post-new.php5.93 ▲0.0495.77 ▼9.72
Media Library /wp-admin/upload.php3.27 ▲0.0435.73 ▲0.52

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for bbPress - Canned Replies
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,872 ▲11113.47 ▼0.888.13 ▲6.3239.26 ▼1.79
Dashboard /wp-admin2,195 ▲185.65 ▼0.0487.15 ▼4.2340.60 ▼1.79
Posts /wp-admin/edit.php2,097 ▼31.99 ▲0.0139.33 ▲4.1435.71 ▼2.00
Add New Post /wp-admin/post-new.php1,526 ▼023.18 ▼0.54647.60 ▼71.0052.70 ▼8.69
Media Library /wp-admin/upload.php1,400 ▼04.11 ▼0.2498.09 ▼8.8641.39 ▼3.68

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

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


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:
  • Screenshots: These screenshots require images: #1 (Canned Replies admin), #2 (Canned Replies front end)
Please take inspiration from this readme.txt

bbpress-canned-replies/bbpress-canned-replies.php Passed 13 tests

The primary PHP file in "bbPress - Canned Replies" version 1.1 is used by WordPress to initiate all plugin functionality
85 characters long description:
Allows you to create and quickly insert pre-defined responses in bbPress forum topics

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin214 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PO File1131447

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.11
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods777.78%
▷ Protected methods00.00%
▷ Private methods222.22%
▷ 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

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png76.78KB31.20KB▼ 59.37%
screenshot-2.png18.19KB7.49KB▼ 58.82%