93% 1-click-migration

Code Review | 1 Click WordPress Migration Plugin

WordPress plugin 1 Click WordPress Migration Plugin scored 93% from 54 tests.

About plugin

  • Plugin page: 1-click-migration
  • Plugin version: 1.6.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 5.9.2
  • First release: Jul 5, 2019
  • Latest release: Jan 24, 2022
  • Number of updates: 74
  • Update frequency: every 12.7 days
  • Top authors: 1clickmigration (100%)

Code review

54 tests

User reviews

19 reviews

Install metrics

300+ active / 8,255 total downloads

Benchmarks

Plugin footprint Passed 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: ▲1.32MB] [CPU: ▼290.50ms] Passed 4 tests

Analyzing server-side resources used by 1 Click WordPress Migration Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.89 ▲1.3859.47 ▲10.63
Dashboard /wp-admin4.73 ▲1.3239.86 ▲8.63
Posts /wp-admin/edit.php4.95 ▲1.3144.28 ▲6.88
Add New Post /wp-admin/post-new.php8.26 ▲1.2997.57 ▼1,182.42
Media Library /wp-admin/upload.php4.67 ▲1.3831.43 ▲4.92
One Click Migration /wp-admin/tools.php?page=one-click-migration4.5928.86

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 292 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by 1 Click WordPress Migration Plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,800 ▲4615.91 ▲0.136.51 ▲0.292.44 ▼0.67
Dashboard /wp-admin2,894 ▲436.13 ▼0.02118.23 ▼12.78160.00 ▼2.01
Posts /wp-admin/edit.php2,690 ▲63.23 ▼0.0262.29 ▼7.47139.92 ▼9.40
Add New Post /wp-admin/post-new.php1,714 ▲4620.76 ▲3.23434.71 ▲25.03158.80 ▲2.60
Media Library /wp-admin/upload.php1,703 ▲85.45 ▼0.09141.23 ▼23.81187.38 ▼28.88
One Click Migration /wp-admin/tools.php?page=one-click-migration1,7007.23295.54160.05

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables

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 everything seems fine, this is not an exhaustive test

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
Please fix the following
  • 88× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/1-click-migration/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/1-click-migration/vendor/guzzlehttp/psr7/src/PumpStream.php:16
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/1-click-migration/vendor/guzzlehttp/psr7/src/LimitStream.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'PhpZip\\Model\\Extra\\ZipExtraField' not found in wp-content/plugins/1-click-migration/vendor/nelexa/zip/src/Model/Extra/Fields/ApkAlignmentExtraField.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'PhpZip\\Model\\Extra\\Fields\\AbstractUnicodeExtraField' not found in wp-content/plugins/1-click-migration/vendor/nelexa/zip/src/Model/Extra/Fields/UnicodePathExtraField.php:50
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/1-click-migration/vendor/psr/http-message/src/RequestInterface.php:24
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\UploadedFileInterface' not found in wp-content/plugins/1-click-migration/vendor/guzzlehttp/psr7/src/UploadedFile.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/1-click-migration/vendor/guzzlehttp/guzzle/src/Pool.php:20
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/1-click-migration/vendor/guzzlehttp/psr7/src/BufferStream.php:14
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/1-click-migration/vendor/guzzlehttp/psr7/src/Request.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention: You can take inspiration from this readme.txt

1-click-migration/one-click-migration.php 92% from 13 tests

This is the main PHP file of "1 Click WordPress Migration Plugin" version 1.6.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("1-click-migration.php" instead of "one-click-migration.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin49,380 lines of code in 266 files:
LanguageFilesBlank linesComment linesLines of code
PHP2298,60524,81541,342
Markdown171,28304,959
CSS380491,565
JSON11001,010
JavaScript313646460
YAML12025
Dockerfile18010
make1409

PHP code 50% from 2 tests

A short review of cyclomatic complexity and code structure
These items need your attention
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 104)
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity30.48
▷ Minimum class complexity1.00
▷ Maximum class complexity631.00
Average method complexity3.97
▷ Minimum method complexity1.00
▷ Maximum method complexity104.00
Code structure
Namespaces35
Interfaces25
Traits2
Classes180
▷ Abstract classes52.78%
▷ Concrete classes17597.22%
▷ Final classes1810.29%
Methods2,204
▷ Static methods27512.48%
▷ Public methods1,97389.52%
▷ Protected methods662.99%
▷ Private methods1657.49%
Functions186
▷ Named functions7138.17%
▷ Anonymous functions11561.83%
Constants453
▷ Global constants337.28%
▷ Class constants42092.72%
▷ Public constants420100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin