84% moving-users

Code Review | Moving Users

WordPress plugin Moving Users scored84%from 54 tests.

About plugin

  • Plugin page: moving-users
  • Plugin version: 1.02
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Mar 31, 2021
  • Latest release: Oct 29, 2023
  • Number of updates: 12
  • Update frequency: every 78.5 days
  • Top authors: Katsushi Kawamori (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,621 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.83ms] Passed 4 tests

This is a short check of server-side resources used by Moving Users
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.13 ▼9.20
Dashboard /wp-admin3.33 ▲0.0345.00 ▼2.76
Posts /wp-admin/edit.php3.38 ▲0.0246.89 ▲0.49
Add New Post /wp-admin/post-new.php5.91 ▲0.0393.68 ▼3.85
Media Library /wp-admin/upload.php3.25 ▲0.0334.62 ▲2.42
Export /wp-admin/admin.php?page=movingusers-generate-json3.2232.49
Moving Users /wp-admin/admin.php?page=movingusers3.2233.17
Import /wp-admin/admin.php?page=movingusers-update-db3.2236.18

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

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

Browser metrics Passed 4 tests

Moving Users: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲3414.28 ▼0.131.68 ▼0.3141.96 ▼4.51
Dashboard /wp-admin2,220 ▲405.63 ▼0.0486.04 ▼9.0041.38 ▼2.06
Posts /wp-admin/edit.php2,131 ▲312.04 ▲0.0641.03 ▲1.5237.00 ▲1.19
Add New Post /wp-admin/post-new.php1,551 ▲2523.35 ▲0.25603.52 ▼48.5958.87 ▼1.05
Media Library /wp-admin/upload.php1,425 ▲254.20 ▲0.0396.18 ▼1.3339.98 ▼3.10
Export /wp-admin/admin.php?page=movingusers-generate-json8372.0326.3229.35
Moving Users /wp-admin/admin.php?page=movingusers8572.0028.6731.47
Import /wp-admin/admin.php?page=movingusers-update-db8612.0025.3433.36

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/moving-users/lib/class-movingusers.php:45
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/moving-users/lib/class-movingusersadmin.php:50
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/moving-users/lib/class-movingusers.php:45

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: users, user, moving

moving-users/movingusers.php 92% from 13 tests

The main file in "Moving Users" v. 1.02 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("moving-users.php" instead of "movingusers.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
There were no executable files found in this plugin649 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP491186649

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity50.00
▷ Minimum class complexity25.00
▷ Maximum class complexity75.00
Average method complexity4.23
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods1493.33%
▷ Protected methods00.00%
▷ Private methods16.67%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected