83% bbpress-addon-for-membermouse

Code Review | MemberMouse bbPress Extension

WordPress plugin MemberMouse bbPress Extension scored 83% from 54 tests.

About plugin

  • Plugin page: bbpress-addon-for...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.5
  • WordPress version: 6.3.1
  • First release: May 26, 2015
  • Latest release: Nov 24, 2020
  • Number of updates: 7
  • Update frequency: every 287.6 days
  • Top authors: membermouse (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 2,025 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
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.64ms] Passed 4 tests

This is a short check of server-side resources used by MemberMouse bbPress Extension
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0636.71 ▼10.06
Dashboard /wp-admin3.37 ▲0.0743.07 ▼1.50
Posts /wp-admin/edit.php3.42 ▲0.0747.25 ▲1.46
Add New Post /wp-admin/post-new.php5.97 ▲0.0879.52 ▼12.44
Media Library /wp-admin/upload.php3.29 ▲0.0736.10 ▲2.17

Server storage [IO: ▲0.02MB] [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: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

MemberMouse bbPress Extension: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.26 ▼1.021.63 ▼0.2138.89 ▼4.43
Dashboard /wp-admin2,211 ▲264.87 ▼0.01114.73 ▲12.1043.15 ▲3.16
Posts /wp-admin/edit.php2,094 ▲52.02 ▲0.0139.61 ▲3.9735.95 ▲1.28
Add New Post /wp-admin/post-new.php1,541 ▲2118.54 ▼4.75643.63 ▼27.0961.89 ▼0.70
Media Library /wp-admin/upload.php1,390 ▲54.21 ▼0.0093.51 ▼17.7639.32 ▼9.22

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

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/bbpress-addon-for-membermouse/index.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/bbpress-addon-for-membermouse/index.php:22
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/bbpress-addon-for-membermouse/index.php on line 15

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 90% 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
Attributes that require attention:
  • Screenshots: These screenshots require images: #1 (Make sure the MemberMouse plugin is activated.), #3 (Create a new forum or click on an existing forum that you want protected.), #9 (Click the `Update` button to save your settings.)
  • Plugin Name: Please specify the plugin name on the first line ( === bbpress-addon-for-membermouse === )
You can look at the official readme.txt

bbpress-addon-for-membermouse/index.php 92% from 13 tests

The main PHP file in "MemberMouse bbPress Extension" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("bbpress-addon-for-membermouse.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected370 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP15717329
JavaScript14041

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity98.00
▷ Minimum class complexity98.00
▷ Maximum class complexity98.00
Average method complexity11.78
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/protected.png0.53KB0.45KB▼ 16.33%
images/lock.png0.73KB0.91KB0.00%