84% bbpress-monster-widget

Code Review | bbPress Monster Widget

WordPress plugin bbPress Monster Widget scored84%from 54 tests.

About plugin

  • Plugin page: bbpress-monster-w...
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 17, 2014
  • Latest release: Jul 31, 2016
  • Number of updates: 8
  • Update frequency: every 81.9 days
  • Top authors: mercime (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,875 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.90ms] Passed 4 tests

An overview of server-side resources used by bbPress Monster Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.71 ▼6.15
Dashboard /wp-admin3.33 ▲0.0251.34 ▼3.77
Posts /wp-admin/edit.php3.38 ▲0.0248.53 ▲1.55
Add New Post /wp-admin/post-new.php5.91 ▲0.0289.71 ▼3.41
Media Library /wp-admin/upload.php3.25 ▲0.0233.82 ▼2.27

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by bbPress Monster Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2813.92 ▼0.431.62 ▼0.1242.62 ▼4.16
Dashboard /wp-admin2,198 ▲185.61 ▼0.0488.95 ▼11.9940.44 ▼2.87
Posts /wp-admin/edit.php2,100 ▲32.01 ▲0.0236.71 ▼0.4535.76 ▲0.11
Add New Post /wp-admin/post-new.php1,531 ▲323.13 ▼0.02665.99 ▲59.6562.26 ▲13.76
Media Library /wp-admin/upload.php1,403 ▲34.11 ▼0.09101.72 ▼2.3943.14 ▼3.46

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
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

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
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbpress-monster-widget/bbpress-monster-widget.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Requires at least: Invalid plugin version format
  • Tested up to: Invalid plugin version format
Please take inspiration from this readme.txt

bbpress-monster-widget/bbpress-monster-widget.php Passed 13 tests

The main file in "bbPress Monster Widget" v. 0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
111 characters long description:
A widget that allows for quick and easy testing of multiple bbPress widgets. Not intended for production sites.

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

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.25
▷ 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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin