78% peepso-tools-ultimate-member-migrator

Code Review | PeepSoTools: UltimateMember to PeepSo Migration Tool

WordPress plugin PeepSoTools: UltimateMember to PeepSo Migration Tool scored78%from 54 tests.

About plugin

  • Plugin page: peepso-tools-ulti...
  • 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: Oct 31, 2018
  • Latest release: Nov 28, 2023
  • Number of updates: 181
  • Update frequency: every 10.2 days
  • Top authors: peepso (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /5,729 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.01MB] [CPU: ▼5.88ms] Passed 4 tests

Server-side resources used by PeepSoTools: UltimateMember to PeepSo Migration Tool
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.11 ▼6.43
Dashboard /wp-admin3.31 ▼0.0443.87 ▼15.13
Posts /wp-admin/edit.php3.36 ▲0.0049.16 ▲3.04
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.85 ▼4.99
Media Library /wp-admin/upload.php3.23 ▲0.0039.69 ▲9.85

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for PeepSoTools: UltimateMember to PeepSo Migration Tool
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6814.67 ▲0.701.95 ▲0.2642.36 ▼1.86
Dashboard /wp-admin2,195 ▲185.61 ▲0.0789.21 ▼3.9241.90 ▼3.75
Posts /wp-admin/edit.php2,103 ▲31.95 ▼0.0640.00 ▼1.7836.47 ▲0.97
Add New Post /wp-admin/post-new.php1,526 ▼023.53 ▲0.25659.52 ▼32.9555.79 ▼10.26
Media Library /wp-admin/upload.php1,400 ▲34.26 ▲0.09107.03 ▲8.2346.98 ▲4.51

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/peepso-tools-ultimate-member-migrator/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 'PeepSoTemplate' not found in wp-content/plugins/peepso-tools-ultimate-member-migrator/templates/migrate/progress.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/peepso-tools-ultimate-member-migrator/templates/migrate/header.php:1
    • > PHP Notice
      Undefined variable: label in wp-content/plugins/peepso-tools-ultimate-member-migrator/templates/migrate/progress_bar.php on line 14
    • > PHP Fatal error
      Uncaught Error: Class 'PeepSoUM' not found in wp-content/plugins/peepso-tools-ultimate-member-migrator/templates/migrate/dashboard.php:4
    • > PHP Notice
      Undefined variable: class in wp-content/plugins/peepso-tools-ultimate-member-migrator/templates/migrate/progress_bar.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Screenshots: Please add images for these screenshots: #1 (screenshot-1.png), #2 (screenshot-2.png), #3 (screenshot-3.png), #4 (screenshot-4.png)
Please take inspiration from this readme.txt

peepso-tools-ultimate-member-migrator/peepsomigrate.php 85% from 13 tests

The principal PHP file in "PeepSoTools: UltimateMember to PeepSo Migration Tool" v. 6.2.7.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("peepso-tools-ultimate-member-migrator.php" instead of "peepsomigrate.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,633 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP7316661,448
CSS1289185

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity60.00
▷ Minimum class complexity1.00
▷ Maximum class complexity176.00
Average method complexity5.34
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods36
▷ Static methods719.44%
▷ Public methods3186.11%
▷ Protected methods00.00%
▷ Private methods513.89%
Functions7
▷ Named functions00.00%
▷ Anonymous functions7100.00%
Constants6
▷ Global constants00.00%
▷ Class constants6100.00%
▷ 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/error.png3.43KB1.97KB▼ 42.66%
assets/images/logo-icon_20x20.png0.55KB0.71KB0.00%