78% peepsomigrate

Code Review | BuddyPress to PeepSo Migration Tool

WordPress plugin BuddyPress to PeepSo Migration Tool scored78%from 54 tests.

About plugin

  • Plugin page: peepsomigrate
  • 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: Aug 31, 2015
  • Latest release: Nov 28, 2023
  • Number of updates: 242
  • Update frequency: every 12.5 days
  • Top authors: peepso (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /15,068 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

A check of server-side resources used by BuddyPress to PeepSo Migration Tool
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0033.70 ▼7.89
Dashboard /wp-admin3.31 ▲0.0045.66 ▼3.98
Posts /wp-admin/edit.php3.36 ▲0.0047.66 ▲4.71
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.69 ▼6.87
Media Library /wp-admin/upload.php3.23 ▲0.0033.01 ▼0.42

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by BuddyPress to PeepSo Migration Tool
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5314.67 ▲0.411.96 ▲0.1340.92 ▼4.25
Dashboard /wp-admin2,195 ▲185.62 ▼0.0392.96 ▼5.8240.57 ▼0.23
Posts /wp-admin/edit.php2,103 ▲32.00 ▼0.0138.05 ▲2.0034.82 ▲1.59
Add New Post /wp-admin/post-new.php1,526 ▼023.20 ▼0.05582.46 ▼55.3248.62 ▼5.31
Media Library /wp-admin/upload.php1,394 ▼64.16 ▼0.0596.06 ▼2.1341.99 ▲2.12

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/peepsomigrate/templates/migrate/progress_bar.php
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'PeepsoMigrate' not found in wp-content/plugins/peepsomigrate/templates/migrate/dashboard.php:4
    • > PHP Notice
      Undefined variable: label in wp-content/plugins/peepsomigrate/templates/migrate/progress_bar.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/peepsomigrate/templates/migrate/progress.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/peepsomigrate/templates/migrate/header.php:1
    • > PHP Notice
      Undefined variable: class in wp-content/plugins/peepsomigrate/templates/migrate/progress_bar.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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
These attributes need to be fixed:
  • Tags: There are too many tags (22 tag instead of maximum 10)
The official readme.txt might help

peepsomigrate/peepsomigrate.php Passed 13 tests

This is the main PHP file of "BuddyPress to PeepSo Migration Tool" version 6.2.7.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
42 characters long description:
Migration plugin from BuddyPress to PeepSo

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin2,040 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP7415981,855
CSS1289185

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity167.00
▷ Minimum class complexity74.00
▷ Maximum class complexity260.00
Average method complexity8.72
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods43
▷ Static methods613.95%
▷ Public methods3990.70%
▷ Protected methods00.00%
▷ Private methods49.30%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants114.29%
▷ Class constants685.71%
▷ Public constants6100.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
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/error.png3.43KB1.97KB▼ 42.66%
assets/images/tick.png4.59KB2.12KB▼ 53.81%
assets/images/logo-icon_20x20.png0.55KB0.71KB0.00%