10% bbp-move-topics

Code Review | bbPress Move Topics

WordPress plugin bbPress Move Topics scored10%from 54 tests.

About plugin

  • Plugin page: bbp-move-topics
  • Plugin version: 1.1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.9.4
  • WordPress version: 6.3.1
  • First release: Oct 14, 2015
  • Latest release: Mar 11, 2018
  • Number of updates: 28
  • Update frequency: every 31.4 days
  • Top authors: casiepa (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active /5,611 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > User error in wp-content/plugins/bbp-move-topics/bbp-move-topics.php+517
    Please install and activate bbPress before activating this plugin.

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

A check of server-side resources used by bbPress Move Topics
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0047.70 ▲4.44
Dashboard /wp-admin3.31 ▼0.0448.83 ▼12.50
Posts /wp-admin/edit.php3.36 ▲0.0046.77 ▼0.51
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.14 ▼14.55
Media Library /wp-admin/upload.php3.23 ▲0.0034.18 ▼10.12

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

Browser metrics Passed 4 tests

A check of browser resources used by bbPress Move Topics
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.43 ▲0.051.77 ▲0.2046.43 ▲9.01
Dashboard /wp-admin2,209 ▲245.85 ▼0.04110.75 ▲6.2542.44 ▼1.38
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0634.68 ▼1.0333.39 ▼4.89
Add New Post /wp-admin/post-new.php1,514 ▼023.50 ▲5.95652.73 ▼32.4853.46 ▲2.66
Media Library /wp-admin/upload.php1,388 ▲64.23 ▲0.0594.97 ▲0.2341.24 ▼6.31

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

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

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 fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbp-move-topics/includes/posttotopic.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: bbp move topics, post to topic, bbpress, comments to replies

bbp-move-topics/bbp-move-topics.php Passed 13 tests

The principal PHP file in "bbPress Move Topics" v. 1.1.6 is loaded by WordPress automatically on each request
97 characters long description:
Move topics from one forum to another, convert post/comments into topic/replies in the same site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected650 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP29684650

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions11
▷ Named functions1090.91%
▷ Anonymous functions19.09%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin