83% better-bbpress-signature

Code Review | Better bbPress Signature

WordPress plugin Better bbPress Signature scored83%from 54 tests.

About plugin

  • Plugin page: better-bbpress-si...
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.9.1
  • WordPress version: 6.3.1
  • First release: Jan 9, 2013
  • Latest release: Aug 13, 2014
  • Number of updates: 20
  • Update frequency: every 29.1 days
  • Top authors: arun_singh (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

60+ active /10,620 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼0.91ms] Passed 4 tests

This is a short check of server-side resources used by Better bbPress Signature
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0642.75 ▲1.59
Dashboard /wp-admin3.37 ▲0.0655.08 ▲10.08
Posts /wp-admin/edit.php3.42 ▲0.0655.52 ▲6.42
Add New Post /wp-admin/post-new.php5.95 ▲0.0690.86 ▼12.30
Media Library /wp-admin/upload.php3.29 ▲0.0637.90 ▲0.64

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Better bbPress Signature
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,886 ▲15113.62 ▼1.126.03 ▲4.1041.53 ▼11.52
Dashboard /wp-admin2,206 ▲185.79 ▼0.15116.38 ▲9.8350.37 ▲10.20
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0740.44 ▼0.9835.30 ▲0.49
Add New Post /wp-admin/post-new.php1,533 ▲1423.37 ▲0.33676.62 ▲17.7559.25 ▲2.67
Media Library /wp-admin/upload.php1,385 ▼34.16 ▲0.0194.36 ▼21.8643.38 ▼5.09

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

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 everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/better-bbpress-signature/bbpress-signature.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/better-bbpress-signature/admin/GeneralSettings.php:12

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 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Donate link: Please fix this invalid url: ""
Please take inspiration from this readme.txt

better-bbpress-signature/bbpress-signature.php 85% from 13 tests

The main file in "Better bbPress Signature" v. 1.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 151 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("better-bbpress-signature.php" instead of "bbpress-signature.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin211 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP33241181
JavaScript10018
CSS12012

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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.07MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
single-forum.png32.14KB16.38KB▼ 49.03%
single-topic.png35.05KB17.67KB▼ 49.59%