93% move-bbpress-multisite

Code Review | Move bbPress Multisite

WordPress plugin Move bbPress Multisite scored 93% from 54 tests.

About plugin

  • Plugin page: move-bbpress-mult...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7
  • WordPress version: 5.8.1
  • First release: Feb 22, 2017
  • Latest release: Feb 22, 2017
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: stiofansisland (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 754 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.18MB] [CPU: ▼146.20ms] Passed 4 tests

A check of server-side resources used by Move bbPress Multisite
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.98 ▲0.2641.25 ▲16.80
Dashboard /wp-admin3.27 ▲0.2246.35 ▼7.51
Posts /wp-admin/edit.php3.32 ▲0.2145.67 ▼10.30
Add New Post /wp-admin/post-new.php5.57 ▲0.1392.81 ▼565.22
Media Library /wp-admin/upload.php3.15 ▲0.1534.03 ▼1.75

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Move bbPress Multisite
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,707 ▲11115.99 ▲0.527.81 ▼1.9148.69 ▼0.45
Dashboard /wp-admin2,971 ▲346.04 ▲0.05134.82 ▼31.08112.81 ▼9.54
Posts /wp-admin/edit.php2,740 ▲12.69 ▲0.0174.67 ▲4.4693.15 ▼1.24
Add New Post /wp-admin/post-new.php1,508 ▼17518.36 ▼0.42358.75 ▼32.26112.61 ▼1.33
Media Library /wp-admin/upload.php1,811 ▲75.03 ▲0.02152.45 ▲2.47128.86 ▲3.54

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Bbpress_Ms_Move_Copy' not found in wp-content/plugins/move-bbpress-multisite/admin/partials/bbpress-ms-move-admin-display-delete.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/move-bbpress-multisite/admin/partials/bbpress-ms-move-admin-display.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Bbpress_Ms_Move_Copy' not found in wp-content/plugins/move-bbpress-multisite/admin/partials/bbpress-ms-move-admin-display-copy.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: multisite, bbpress

move-bbpress-multisite/bbpress-ms-move.php 77% from 13 tests

The main file in "Move bbPress Multisite" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 150 characters long)
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("move-bbpress-multisite.php" instead of "bbpress-ms-move.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,538 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP133855071,054
JavaScript111331375
CSS15467
PO File1101042

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity13.43
▷ Minimum class complexity1.00
▷ Maximum class complexity86.00
Average method complexity2.58
▷ Minimum method complexity1.00
▷ Maximum method complexity45.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods55
▷ Static methods35.45%
▷ Public methods5192.73%
▷ Protected methods00.00%
▷ Private methods47.27%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected