83% 1-click-migration

Code Review | 1 Click WordPress Migration Plugin - 100% FREE

WordPress plugin 1 Click WordPress Migration Plugin - 100% FREE scored83%from 54 tests.

About plugin

  • Plugin page: 1-click-migration
  • Plugin version: 2.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: Jul 5, 2019
  • Latest release: Nov 14, 2023
  • Number of updates: 104
  • Update frequency: every 15.3 days
  • Top authors: 1clickmigration (100%)

Code review

54 tests

User reviews

26 reviews

Install metrics

400+ active /13,077 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲1.31MB] [CPU: ▲2.51ms] Passed 4 tests

A check of server-side resources used by 1 Click WordPress Migration Plugin - 100% FREE
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.77 ▲1.3046.61 ▲7.98
Dashboard /wp-admin4.67 ▲1.3261.66 ▲1.57
Posts /wp-admin/edit.php4.72 ▲1.3650.85 ▼0.33
Add New Post /wp-admin/post-new.php7.19 ▲1.3098.03 ▲0.80
Media Library /wp-admin/upload.php4.53 ▲1.3045.72 ▲15.38
One Click Migration /wp-admin/tools.php?page=one-click-migration4.5041.01

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 326 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by 1 Click WordPress Migration Plugin - 100% FREE
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3214.34 ▼0.371.90 ▲0.1249.00 ▲1.24
Dashboard /wp-admin2,199 ▲225.73 ▲0.0987.21 ▼3.9442.51 ▲3.51
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0634.43 ▼2.9035.48 ▲4.69
Add New Post /wp-admin/post-new.php1,529 ▼023.13 ▼0.20591.65 ▼13.8257.14 ▼4.58
Media Library /wp-admin/upload.php1,404 ▲14.23 ▲0.0397.39 ▼3.8142.97 ▲0.05
One Click Migration /wp-admin/tools.php?page=one-click-migration1,3977.00226.1061.40

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 90× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\UriInterface' not found in wp-content/plugins/1-click-migration/vendor/guzzlehttp/psr7/src/Uri.php:13
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/1-click-migration/vendor/guzzlehttp/psr7/src/InflateStream.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\Finder\\Comparator\\Comparator' not found in wp-content/plugins/1-click-migration/vendor/symfony/finder/Comparator/NumberComparator.php:35
    • > 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/OldUnixExtraField.php:56
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/1-click-migration/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php:7
    • > 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/ExtendedTimestampExtraField.php:67
    • > PHP Fatal error
      Uncaught Error: Class 'PhpZip\\Exception\\RuntimeException' not found in wp-content/plugins/1-click-migration/vendor/nelexa/zip/src/Exception/InvalidArgumentException.php:12
    • > 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 'PhpZip\\Constants\\DosAttrs' not found in wp-content/plugins/1-click-migration/vendor/nelexa/zip/src/Util/FileAttribUtil.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib\\Crypt\\Base' not found in wp-content/plugins/1-click-migration/vendor/phpseclib/phpseclib/phpseclib/Crypt/RC4.php:54

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 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
  • Screenshots: Please describe screenshot #1 in 1-click-migration/assets to your readme.txt
The official readme.txt is a good inspiration

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

The entry point to "1 Click WordPress Migration Plugin - 100% FREE" version 2.1 is a PHP file that has certain tags in its header comment area
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 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin63,862 lines of code in 269 files:
LanguageFilesBlank linesComment linesLines of code
PHP2318,63624,81741,447
JavaScript43,2842,15914,399
Markdown171,28304,959
CSS390502,003
JSON11001,010
YAML12025
Dockerfile18010
make1409

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
The following items need your attention
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 104)
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity30.57
▷ 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,209
▷ Static methods28012.68%
▷ Public methods1,97889.54%
▷ Protected methods662.99%
▷ Private methods1657.47%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
26 PNG files occupy 0.09MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/check.png0.43KB0.53KB0.00%
images/cloud-download.png0.34KB0.33KB▼ 1.45%
images/mail.png0.39KB0.26KB▼ 32.16%
images/refresh.png0.44KB0.34KB▼ 22.25%
images/warning.png0.51KB0.35KB▼ 31.27%