84% multisite-bbpress-slave

Code Review | Multisite bbPress Slave

WordPress plugin Multisite bbPress Slave scored84%from 54 tests.

About plugin

  • Plugin page: multisite-bbpress...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.1.1
  • WordPress version: 6.3.1
  • First release: Mar 8, 2015
  • Latest release: Mar 10, 2015
  • Number of updates: 5
  • Update frequency: every 0.6 days
  • Top authors: mechter (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /945 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Server-side resources used by Multisite bbPress Slave
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0144.55 ▲2.33
Dashboard /wp-admin3.31 ▲0.0151.42 ▼0.12
Posts /wp-admin/edit.php3.36 ▲0.0145.44 ▼6.03
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.66 ▼11.23
Media Library /wp-admin/upload.php3.24 ▲0.0138.32 ▲4.51

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Multisite bbPress Slave
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.312.01 ▲0.0339.82 ▼0.58
Dashboard /wp-admin2,198 ▲185.63 ▲0.0286.73 ▼3.5146.21 ▲7.62
Posts /wp-admin/edit.php2,100 ▼31.97 ▼0.0434.98 ▼7.1637.58 ▼0.15
Add New Post /wp-admin/post-new.php1,527 ▲122.94 ▼0.54680.25 ▼38.6159.47 ▲8.69
Media Library /wp-admin/upload.php1,400 ▼04.18 ▼0.22100.76 ▼7.9847.61 ▲0.30

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • 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
Even though everything seems fine, this is not 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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/multisite-bbpress-slave/multisite-bbpress-slave.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: bbpress, multisite

multisite-bbpress-slave/multisite-bbpress-slave.php Passed 13 tests

The principal PHP file in "Multisite bbPress Slave" v. 1.0 is loaded by WordPress automatically on each request
49 characters long description:
Make sub sites use the main site's bbPress forums

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 detected179 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14044179

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions28
▷ Named functions1035.71%
▷ Anonymous functions1864.29%
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
No PNG images were found in this plugin