84% siteground-migrator

Code Review | SiteGround Migrator

WordPress plugin SiteGround Migrator scored84%from 54 tests.

About plugin

Code review

54 tests

User reviews

339 reviews

Install metrics

90,000+ active /1,629,233 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.58MB] [CPU: ▼1.94ms] Passed 4 tests

Analyzing server-side resources used by SiteGround Migrator
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.04 ▲0.5847.35 ▲1.19
Dashboard /wp-admin3.88 ▲0.5853.66 ▼3.11
Posts /wp-admin/edit.php3.93 ▲0.5755.89 ▼0.92
Add New Post /wp-admin/post-new.php6.48 ▲0.5993.42 ▼4.91
Media Library /wp-admin/upload.php3.80 ▲0.5744.27 ▲5.62

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 86 new files
Database: no new tables, 9 new options
New WordPress options
theysaidso_admin_options
siteground_migrator_encryption_key
siteground_migrator_temp_directory
siteground_migrator_is_siteground_env
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for SiteGround Migrator
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8513.60 ▼0.711.87 ▼0.0641.99 ▼2.26
Dashboard /wp-admin2,222 ▲315.82 ▲0.84103.62 ▼0.1190.16 ▲47.48
Posts /wp-admin/edit.php2,117 ▲252.02 ▼0.0437.25 ▼5.8334.82 ▼2.12
Add New Post /wp-admin/post-new.php1,697 ▲16922.35 ▼0.71770.38 ▲90.1358.95 ▼9.60
Media Library /wp-admin/upload.php1,419 ▲314.21 ▼0.04108.87 ▲5.9048.54 ▲2.33

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 27× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Trait 'SiteGround_Migrator\\Helper\\Log_Service_Trait' not found in wp-content/plugins/siteground-migrator/core/Api_Service/Api_Service.php on line 15
    • > PHP Fatal error
      Uncaught Error: Class 'ShuttleExport\\DBConn\\DBConn' not found in wp-content/plugins/siteground-migrator/vendor/2createStudio/ShuttleExport/src/DBConn/Mysqli.php:5
    • > PHP Warning
      include(): Failed opening 'wp-content/plugins/siteground-migrator/vendor/2createStudio/ShuttleExport/vendor/autoload.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/siteground-migrator/vendor/2createStudio/ShuttleExport/demo.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/siteground-migrator/templates/email-templates/sg_migrator_successful_errors.php:87
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/siteground-migrator/react-strings.php:4
    • > PHP Fatal error
      Trait 'SiteGround_Migrator\\Helper\\Log_Service_Trait' not found in wp-content/plugins/siteground-migrator/core/Directory_Service/Directory_Service.php on line 11
    • > PHP Fatal error
      Uncaught Error: Class 'ShuttleExport\\DBConn\\DBConn' not found in wp-content/plugins/siteground-migrator/vendor/2createStudio/ShuttleExport/src/DBConn/Mysql.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'ShuttleExport\\Dump_File\\Dump_File' not found in wp-content/plugins/siteground-migrator/vendor/2createStudio/ShuttleExport/src/Dump_File/Gzip.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'SiteGround_Migrator\\Background_Process\\WP_Async_Request' not found in wp-content/plugins/siteground-migrator/core/Background_Process/Siteground_WP_Background_Process.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'SiteGround_Migrator\\Rest\\Rest_Helper' not found in wp-content/plugins/siteground-migrator/core/Rest/Rest_Helper_Transfer_Service.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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
5 plugin tags: transfer, migration, automatic transfer, automatic migration, siteground

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

The primary PHP file in "SiteGround Migrator" version 2.0.9 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

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
Success! There were no dangerous files found in this plugin4,832 lines of code in 74 files:
LanguageFilesBlank linesComment linesLines of code
PHP611,1182,7354,480
JSON520208
Markdown232083
CSS10045
XML10012
SVG3003
JavaScript1011

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity11.28
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.52
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces24
Interfaces0
Traits2
Classes44
▷ Abstract classes613.64%
▷ Concrete classes3886.36%
▷ Final classes00.00%
Methods311
▷ Static methods5116.40%
▷ Public methods27187.14%
▷ Protected methods216.75%
▷ Private methods196.11%
Functions4
▷ Named functions125.00%
▷ Anonymous functions375.00%
Constants9
▷ Global constants444.44%
▷ Class constants555.56%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin