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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.04 ▲0.58 | 47.35 ▲1.19 |
Dashboard /wp-admin | 3.88 ▲0.58 | 53.66 ▼3.11 |
Posts /wp-admin/edit.php | 3.93 ▲0.57 | 55.89 ▼0.92 |
Add New Post /wp-admin/post-new.php | 6.48 ▲0.59 | 93.42 ▼4.91 |
Media Library /wp-admin/upload.php | 3.80 ▲0.57 | 44.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲85 | 13.60 ▼0.71 | 1.87 ▼0.06 | 41.99 ▼2.26 |
Dashboard /wp-admin | 2,222 ▲31 | 5.82 ▲0.84 | 103.62 ▼0.11 | 90.16 ▲47.48 |
Posts /wp-admin/edit.php | 2,117 ▲25 | 2.02 ▼0.04 | 37.25 ▼5.83 | 34.82 ▼2.12 |
Add New Post /wp-admin/post-new.php | 1,697 ▲169 | 22.35 ▼0.71 | 770.38 ▲90.13 | 58.95 ▼9.60 |
Media Library /wp-admin/upload.php | 1,419 ▲31 | 4.21 ▼0.04 | 108.87 ▲5.90 | 48.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 61 | 1,118 | 2,735 | 4,480 |
JSON | 5 | 2 | 0 | 208 |
Markdown | 2 | 32 | 0 | 83 |
CSS | 1 | 0 | 0 | 45 |
XML | 1 | 0 | 0 | 12 |
SVG | 3 | 0 | 0 | 3 |
JavaScript | 1 | 0 | 1 | 1 |
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 code | 0.37 |
Average class complexity | 11.28 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 24 | |
Interfaces | 0 | |
Traits | 2 | |
Classes | 44 | |
▷ Abstract classes | 6 | 13.64% |
▷ Concrete classes | 38 | 86.36% |
▷ Final classes | 0 | 0.00% |
Methods | 311 | |
▷ Static methods | 51 | 16.40% |
▷ Public methods | 271 | 87.14% |
▷ Protected methods | 21 | 6.75% |
▷ Private methods | 19 | 6.11% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 9 | |
▷ Global constants | 4 | 44.44% |
▷ Class constants | 5 | 55.56% |
▷ Public constants | 5 | 100.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