84% bbpress-code-snippets

Code Review | bbPress Code Snippets

WordPress plugin bbPress Code Snippets scored84%from 54 tests.

About plugin

  • Plugin page: bbpress-code-snip...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 21, 2012
  • Latest release: Feb 18, 2013
  • Number of updates: 8
  • Update frequency: every 15.0 days
  • Top authors: themeblvd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /3,105 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Server-side resources used by bbPress Code Snippets
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.13 ▼3.73
Dashboard /wp-admin3.33 ▼0.0144.93 ▼9.08
Posts /wp-admin/edit.php3.38 ▲0.0248.20 ▲7.51
Add New Post /wp-admin/post-new.php5.91 ▲0.0278.01 ▼12.10
Media Library /wp-admin/upload.php3.25 ▲0.0232.31 ▼2.76

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

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

Browser metrics Passed 4 tests

A check of browser resources used by bbPress Code Snippets
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.18 ▼1.412.00 ▲0.3143.67 ▼0.07
Dashboard /wp-admin2,206 ▲144.84 ▼0.0898.62 ▼9.4238.25 ▲1.11
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0238.50 ▼1.6536.74 ▲0.67
Add New Post /wp-admin/post-new.php1,533 ▼423.26 ▲4.70682.71 ▲57.2459.91 ▲0.33
Media Library /wp-admin/upload.php1,388 ▲34.17 ▼0.0495.86 ▼0.7442.47 ▲2.17

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 detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

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
Even though no errors were found, this is by no means an exhaustive test

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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbpress-code-snippets/bbpress-code-snippets.php:63

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: replies, code, pre, snippets, topics...

bbpress-code-snippets/bbpress-code-snippets.php Passed 13 tests

The entry point to "bbPress Code Snippets" version 1.0.3 is a PHP file that has certain tags in its header comment area
73 characters long description:
Automatically display HTML/PHP code posted in bbPress topics and replies.

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
Good job! No executable or dangerous file extensions detected53 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1277653

PHP code Passed 2 tests

An overview 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.12
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin