84% xserver-migrator

Code Review | Xserver Migrator

WordPress plugin Xserver Migrator scored84%from 54 tests.

About plugin

  • Plugin page: xserver-migrator
  • Plugin version: 1.6.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.29-5.7
  • WordPress version: 6.3.1
  • First release: Nov 30, 2018
  • Latest release: Jun 21, 2021
  • Number of updates: 37
  • Update frequency: every 25.5 days
  • Top authors: xserverjp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20,000+ active /94,723 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼3.03ms] Passed 4 tests

An overview of server-side resources used by Xserver Migrator
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1944.73 ▼3.69
Dashboard /wp-admin3.52 ▲0.1752.52 ▼11.94
Posts /wp-admin/edit.php3.57 ▲0.2148.62 ▲2.16
Add New Post /wp-admin/post-new.php6.04 ▲0.15104.64 ▲5.11
Media Library /wp-admin/upload.php3.38 ▲0.1537.92 ▲1.37

Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
Please fix the following
  • The plugin illegally modified 3 files (0.23KB) outside of "wp-content/plugins/xserver-migrator/" and "wp-content/uploads/"
    • (new file) wp-content/xserver-migrator/migrator.log
    • (new file) wp-content/xserver-migrator/.htaccess
    • (new file) wp-content/xserver-migrator/index.php
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Xserver Migrator
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.24 ▼0.695.06 ▲3.2843.00 ▼1.77
Dashboard /wp-admin2,209 ▲185.85 ▼0.01104.82 ▼1.6542.03 ▼1.59
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0333.77 ▼2.6633.77 ▼2.47
Add New Post /wp-admin/post-new.php1,533 ▼223.29 ▲0.11677.18 ▲21.2655.81 ▼3.03
Media Library /wp-admin/upload.php1,388 ▼34.23 ▲0.0296.83 ▼5.0039.86 ▼2.38

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

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
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/xserver-migrator/xserver-migrator.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: xserver

xserver-migrator/xserver-migrator.php 92% from 13 tests

The main PHP file in "Xserver Migrator" ver. 1.6.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 201 characters long)

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
Good job! No executable or dangerous file extensions detected1,087 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP172784561,087

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity10.60
▷ Minimum class complexity1.00
▷ Maximum class complexity57.00
Average method complexity2.48
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes15
▷ Abstract classes16.67%
▷ Concrete classes1493.33%
▷ Final classes00.00%
Methods92
▷ Static methods3740.22%
▷ Public methods5660.87%
▷ Protected methods44.35%
▷ Private methods3234.78%
Functions5
▷ Named functions120.00%
▷ Anonymous functions480.00%
Constants5
▷ Global constants480.00%
▷ Class constants120.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin