83% peepso-tools-buddyboss-migrator

Code Review | BuddyBoss to PeepSo Migration Tool

WordPress plugin BuddyBoss to PeepSo Migration Tool scored83%from 54 tests.

About plugin

  • Plugin page: peepso-tools-budd...
  • Plugin version: 6.2.7.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.4
  • WordPress version: 6.3.1
  • First release: Sep 21, 2022
  • Latest release: Nov 28, 2023
  • Number of updates: 43
  • Update frequency: every 10.2 days
  • Top authors: peepso (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,116 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
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.78ms] Passed 4 tests

A check of server-side resources used by BuddyBoss to PeepSo Migration Tool
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.30 ▼0.36
Dashboard /wp-admin3.31 ▲0.0045.91 ▼4.55
Posts /wp-admin/edit.php3.36 ▲0.0053.00 ▲3.47
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.73 ▼9.66
Media Library /wp-admin/upload.php3.23 ▲0.0035.58 ▲3.79

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by BuddyBoss to PeepSo Migration Tool
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.67 ▲0.321.72 ▲0.0444.03 ▲2.34
Dashboard /wp-admin2,195 ▲215.47 ▼0.1796.51 ▼3.0342.30 ▼2.65
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0539.30 ▼3.2436.16 ▼0.62
Add New Post /wp-admin/post-new.php1,526 ▼523.70 ▲0.67668.88 ▼22.1954.62 ▼5.38
Media Library /wp-admin/upload.php1,400 ▲34.17 ▼0.0998.03 ▼2.7242.71 ▼1.81

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'PeepsoMigrateBB' not found in wp-content/plugins/peepso-tools-buddyboss-migrator/templates/migrate/dashboard.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/peepso-tools-buddyboss-migrator/templates/migrate/progress.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/peepso-tools-buddyboss-migrator/templates/migrate/header.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/peepso-tools-buddyboss-migrator/templates/migrate/progress_bar.php:4

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 94% from 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
Attributes that require attention:
  • Tags: Too many tags (22 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

peepso-tools-buddyboss-migrator/peepsomigratebuddyboss.php 85% from 13 tests

"BuddyBoss to PeepSo Migration Tool" version 6.2.7.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("peepso-tools-buddyboss-migrator.php" instead of "peepsomigratebuddyboss.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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 detected2,686 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP75701272,501
CSS1289185

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity227.50
▷ Minimum class complexity66.00
▷ Maximum class complexity389.00
Average method complexity9.79
▷ Minimum method complexity1.00
▷ Maximum method complexity65.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods46
▷ Static methods613.04%
▷ Public methods4189.13%
▷ Protected methods00.00%
▷ Private methods510.87%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.00%
Constants7
▷ Global constants114.29%
▷ Class constants685.71%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/tick.png4.59KB2.12KB▼ 53.81%
assets/images/logo-icon_20x20.png0.55KB0.71KB0.00%
assets/images/error.png3.43KB1.97KB▼ 42.66%