77% transferito

Code Review | WordPress Migration Plugin - Transferito

WordPress plugin WordPress Migration Plugin - Transferito scored77%from 54 tests.

About plugin

  • Plugin page: transferito
  • Plugin version: 9.2.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4
  • WordPress version: 6.3.1
  • First release: Nov 27, 2017
  • Latest release: Nov 20, 2023
  • Number of updates: 77
  • Update frequency: every 28.4 days
  • Top authors: transferito (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

500+ active /15,160 total downloads

Benchmarks

Plugin footprint 81% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲7.22MB] [CPU: ▲31.15ms] 50% from 4 tests

Server-side resources used by WordPress Migration Plugin - Transferito
Please have a look at the following items
  • RAM: Total memory usage must be kept under 10MB (currently 10.50MB on /wp-admin/admin.php?page=transferito-main)
  • Extra RAM: Extra memory usage must be kept under 5MB (currently 7.22MB on /wp-admin/admin.php?page=transferito-main)
PageMemory (MB)CPU Time (ms)
Home /10.69 ▲7.2272.82 ▲32.06
Dashboard /wp-admin10.54 ▲7.1982.07 ▲13.79
Posts /wp-admin/edit.php10.65 ▲7.2989.96 ▲39.14
Add New Post /wp-admin/post-new.php13.12 ▲7.23134.78 ▲42.31
Media Library /wp-admin/upload.php10.46 ▲7.2375.57 ▲39.61
Settings /wp-admin/admin.php?page=transferito-settings10.4865.40
Start Migration /wp-admin/admin.php?page=transferito-main10.5065.85

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

Analyzing filesystem and database footprints of this plugin
Please try to fix the following items
  • Try to limit filesystem usage to 25MB (currently using 29.77MB)
Filesystem: 1,784 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

WordPress Migration Plugin - Transferito: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲9714.14 ▼0.141.89 ▲0.1835.63 ▼8.20
Dashboard /wp-admin2,224 ▲505.49 ▼0.0997.41 ▼2.2541.66 ▼2.25
Posts /wp-admin/edit.php2,129 ▲291.97 ▼0.0040.29 ▲3.5436.23 ▲2.94
Add New Post /wp-admin/post-new.php1,551 ▲1523.05 ▼0.12666.52 ▲16.9271.04 ▲7.22
Media Library /wp-admin/upload.php1,429 ▲324.25 ▲0.0496.19 ▼10.2244.55 ▼2.17
Settings /wp-admin/admin.php?page=transferito-settings1,1471.9723.7843.67
Start Migration /wp-admin/admin.php?page=transferito-main1,6506.68116.5357.07

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 40× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/transferito/src/Views/parts/notice.php
    • > /wp-content/plugins/transferito/src/Views/html/nav/manual.html.php
    • > /wp-content/plugins/transferito/src/Views/html/modals/manual/database-detail/user.html.php
    • > /wp-content/plugins/transferito/src/Views/html/modals/manual/database-detail/name.html.php
    • > /wp-content/plugins/transferito/src/Views/parts/migration/failure.php
    • > /wp-content/plugins/transferito/src/Views/parts/migration/navigation.php
    • > /wp-content/plugins/transferito/src/Views/parts/migration/pro-tip.php
    • > /wp-content/plugins/transferito/src/Views/html/modals/manual/server-detail/host.html.php
    • > /wp-content/plugins/transferito/src/Views/html/modals/exec.html.php
    • > /wp-content/plugins/transferito/src/Views/html/modals/manual/server-detail/port.html.php
  • 755× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/transferito/aws/Aws/CodeStarconnections/Exception/CodeStarconnectionsException.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/transferito/aws/Aws/ApplicationDiscoveryService/ApplicationDiscoveryServiceClient.php:59
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/transferito/aws/Aws/LocationService/Exception/LocationServiceException.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\Api\\Parser\\AbstractParser' not found in wp-content/plugins/transferito/aws/Aws/Api/Parser/Crc32ValidatingParser.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/transferito/aws/Aws/CognitoIdentity/CognitoIdentityClient.php:56
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/transferito/aws/Aws/MediaStore/Exception/MediaStoreException.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/transferito/aws/Aws/WorkMail/Exception/WorkMailException.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/transferito/aws/Aws/Health/Exception/HealthException.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\Api\\AbstractModel' not found in wp-content/plugins/transferito/aws/Aws/Api/Operation.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/transferito/aws/Aws/Textract/TextractClient.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: migrate, wordpress migration, wordpress transfer, migrate wordpress, move...

transferito/transferito.php Passed 13 tests

This is the main PHP file of "WordPress Migration Plugin - Transferito" version 9.2.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
65 characters long description:
Quickly transfer a WordPress site and database to another server.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin64,220 lines of code in 1,763 files:
LanguageFilesBlank linesComment linesLines of code
PHP1,7278,37639,91053,853
Markdown42,53806,821
JavaScript23221,1101,707
CSS3219621,030
SVG2700809

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 179)
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity5.83
▷ Minimum class complexity1.00
▷ Maximum class complexity179.00
Average method complexity2.74
▷ Minimum method complexity1.00
▷ Maximum method complexity179.00
Code structure
Namespaces584
Interfaces45
Traits24
Classes837
▷ Abstract classes131.55%
▷ Concrete classes82498.45%
▷ Final classes253.03%
Methods2,529
▷ Static methods42616.84%
▷ Public methods1,75569.40%
▷ Protected methods1305.14%
▷ Private methods64425.46%
Functions461
▷ Named functions9019.52%
▷ Anonymous functions37180.48%
Constants308
▷ Global constants5116.56%
▷ Class constants25783.44%
▷ Public constants257100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
10 PNG files occupy 0.12MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
src/Views/Assets/images/icon__support.png0.71KB0.45KB▼ 36.94%
src/Views/Assets/images/transferito_logo.png31.78KB8.19KB▼ 74.23%
src/Views/Assets/images/cpanel_logo.png6.70KB4.08KB▼ 39.15%
src/Views/Assets/images/icon__upgrade.png48.62KB18.65KB▼ 61.65%
src/Views/Assets/images/ftp_icon.png3.77KB1.47KB▼ 61.03%