84% suffusion-bbpress-pack

Code Review | Suffusion bbPress Pack

WordPress plugin Suffusion bbPress Pack scored84%from 54 tests.

About plugin

  • Plugin page: suffusion-bbpress...
  • Plugin version: 1.01
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 10, 2012
  • Latest release: Jul 26, 2012
  • Number of updates: 6
  • Update frequency: every 2.8 days
  • Top authors: sayontan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,010 total downloads

Benchmarks

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 gracefully, with no errors

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

Server-side resources used by Suffusion bbPress Pack
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.40 ▼8.48
Dashboard /wp-admin3.32 ▲0.0153.25 ▲7.18
Posts /wp-admin/edit.php3.43 ▲0.0846.58 ▲3.22
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.20 ▼1.38
Media Library /wp-admin/upload.php3.24 ▲0.0131.97 ▼0.74
Suffusion bbPress Pack /wp-admin/themes.php?page=suffusion-bbpress-pack3.2128.62

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 76 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Suffusion bbPress Pack
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8514.74 ▲0.471.86 ▼0.4339.55 ▼8.22
Dashboard /wp-admin2,213 ▲254.87 ▼0.01109.35 ▲4.0337.81 ▼7.29
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.1238.49 ▲4.8934.24 ▼6.79
Add New Post /wp-admin/post-new.php1,522 ▼1423.10 ▼0.27659.25 ▼26.3557.32 ▼0.18
Media Library /wp-admin/upload.php1,386 ▲14.18 ▲0.0094.49 ▼19.4841.41 ▼5.76
Suffusion bbPress Pack /wp-admin/themes.php?page=suffusion-bbpress-pack8722.0322.4249.16

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
  • 59× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/suffusion-bbpress-pack/template/bbpress/pagination-replies.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/suffusion-bbpress-pack/template/page-front-forums.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bbp_topic_id() in wp-content/plugins/suffusion-bbpress-pack/template/bbpress/content-single-topic-lead.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/suffusion-bbpress-pack/template/single-topic.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bbp_topic_id() in wp-content/plugins/suffusion-bbpress-pack/template/bbpress/loop-single-topic.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/suffusion-bbpress-pack/template/single-forum.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/suffusion-bbpress-pack/template/single-reply.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bbp_is_single_forum() in wp-content/plugins/suffusion-bbpress-pack/template/bbpress/form-topic.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bbp_set_query_name() in wp-content/plugins/suffusion-bbpress-pack/template/bbpress/user-favorites.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bbp_wp_login_action() in wp-content/plugins/suffusion-bbpress-pack/template/bbpress/form-user-login.php:12

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 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
These attributes need your attention:
  • Tested up to: The plugin version is formatted incorrectly
  • Requires at least: The plugin version is formatted incorrectly
You can take inspiration from this readme.txt

suffusion-bbpress-pack/suffusion-bbpress-pack.php Passed 13 tests

The entry point to "Suffusion bbPress Pack" version 1.01 is a PHP file that has certain tags in its header comment area
125 characters long description:
This plugin is an add-on to the Suffusion WordPress Theme. It sets up your Suffusion installation as being bbPress compatible

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 detected3,204 lines of code in 64 files:
LanguageFilesBlank linesComment linesLines of code
PHP601,0964341,931
CSS3158751,207
JavaScript114766

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity26.00
▷ Minimum class complexity8.00
▷ Maximum class complexity44.00
Average method complexity4.33
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes150.00%
▷ Concrete classes150.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
7 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
include/images/bg-orange.png0.32KB0.62KB0.00%
include/images/bg-gray-1.png0.52KB0.97KB0.00%
include/images/bg-black.png0.17KB0.21KB0.00%
include/images/bg_green.png0.17KB0.13KB▼ 24.26%
include/images/bg-gray-2.png0.52KB1.01KB0.00%