68% wpsynchro

Code Review | WP Synchro - WordPress Migration Plugin for Database & Files

WordPress plugin WP Synchro - WordPress Migration Plugin for Database & Files scored68%from 54 tests.

About plugin

  • Plugin page: wpsynchro
  • Plugin version: 1.11.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.4
  • WordPress version: 6.3.1
  • First release: Jul 10, 2018
  • Latest release: Nov 24, 2023
  • Number of updates: 50
  • Update frequency: every 39.3 days
  • Top authors: wpsynchro (98%)daevsupport (4%)

Code review

54 tests

User reviews

25 reviews

Install metrics

4,000+ active /54,120 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.28MB] [CPU: ▼4.41ms] Passed 4 tests

A check of server-side resources used by WP Synchro - WordPress Migration Plugin for Database & Files
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1834.59 ▼6.94
Dashboard /wp-admin3.67 ▲0.3347.34 ▼10.07
Posts /wp-admin/edit.php3.72 ▲0.3750.69 ▲1.40
Add New Post /wp-admin/post-new.php6.19 ▲0.3096.39 ▼2.02
Media Library /wp-admin/upload.php3.53 ▲0.3037.24 ▲1.98
Logs /wp-admin/admin.php?page=wpsynchro_log3.5534.13
Support /wp-admin/admin.php?page=wpsynchro_support3.7639.47
/wp-admin/admin.php?page=wpsynchro_menu3.6835.90
Changelog /wp-admin/admin.php?page=wpsynchro_changelog3.5533.90
Setup /wp-admin/admin.php?page=wpsynchro_setup3.5733.67
/wp-admin/admin.php?page=wpsynchro_addedit3.6634.24
Overview /wp-admin/admin.php?page=wpsynchro_overview3.6831.97
/wp-admin/admin.php?page=wpsynchro_run3.5533.83

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

A short overview of filesystem and database impact
It is recommended to fix the following issues
  • Illegal file modification found: 1 file (1.31KB) outside of "wp-content/plugins/wpsynchro/" and "wp-content/uploads/"
    • (new file) wp-content/mu-plugins/wpsynchro-mu-plugin-compat.php
Filesystem: 116 new files
Database: 2 new tables, 8 new options
New tables
wp_wpsynchro_file_population_list
wp_wpsynchro_sync_list
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
wpsynchro_muplugin_enabled
theysaidso_admin_options
db_upgraded
widget_recent-posts
wpsynchro_dbversion

Browser metrics Passed 4 tests

WP Synchro - WordPress Migration Plugin for Database & Files: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,855 ▲9314.54 ▲0.161.87 ▼0.0642.30 ▼0.50
Dashboard /wp-admin2,238 ▲585.57 ▼0.0989.80 ▼10.1242.77 ▲2.69
Posts /wp-admin/edit.php2,141 ▲381.95 ▼0.0739.64 ▼4.5135.13 ▼4.05
Add New Post /wp-admin/post-new.php1,559 ▲3223.17 ▲0.06596.40 ▲5.9456.76 ▲8.82
Media Library /wp-admin/upload.php1,441 ▲384.21 ▼0.0296.34 ▼4.2741.85 ▲0.23
Logs /wp-admin/admin.php?page=wpsynchro_log8602.5786.8128.14
Support /wp-admin/admin.php?page=wpsynchro_support9222.8288.3540.58
/wp-admin/admin.php?page=wpsynchro_menu1,0022.5633.3152.37
Changelog /wp-admin/admin.php?page=wpsynchro_changelog8422.5531.2029.58
Setup /wp-admin/admin.php?page=wpsynchro_setup9732.7530.9328.36
/wp-admin/admin.php?page=wpsynchro_addedit1,1053.0441.4730.30
Overview /wp-admin/admin.php?page=wpsynchro_overview1,0052.5634.2539.93
/wp-admin/admin.php?page=wpsynchro_run8272.7332.2523.41

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-content/plugins/wpsynchro/src/Utilities/Activation.php+126
    unlink(wp-content/uploads/wpsynchro//.): Is a directory
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wpsynchro_support
    • > POST request to /?action=wpsynchro_masterdata&type%5B0%5D=dbtables&type%5B1%5D=filedetails&token=535e046872aa9dcce8ac3e1535c1874a25cf3dc883f297a0bb1c3d7e28ca78d3
    • > User notice in wp-content/plugins/wpsynchro/src/API/MasterData.php+561
    __clean_error_info

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
The following issues need your attention
  • 34× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WPSynchro\\API\\WPSynchroService' not found in wp-content/plugins/wpsynchro/src/API/FileTransfer.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'WPSynchro\\API\\WPSynchroService' not found in wp-content/plugins/wpsynchro/src/API/ClientSyncDatabase.php:15
    • > PHP Fatal error
      Uncaught Error: Interface 'WPSynchro\\Logger\\LoggerInterface' not found in wp-content/plugins/wpsynchro/src/Logger/NullLogger.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WPSynchro\\API\\WPSynchroService' not found in wp-content/plugins/wpsynchro/src/API/StatusFileChanges.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'WPSynchro\\API\\WPSynchroService' not found in wp-content/plugins/wpsynchro/src/API/DatabaseBackup.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'WPSynchro\\API\\WPSynchroService' not found in wp-content/plugins/wpsynchro/src/API/Migrate.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'WPSynchro\\API\\WPSynchroService' not found in wp-content/plugins/wpsynchro/src/API/SaveMigration.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'WPSynchro\\API\\WPSynchroService' not found in wp-content/plugins/wpsynchro/src/API/ExecuteAction.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'WPSynchro\\API\\WPSynchroService' not found in wp-content/plugins/wpsynchro/src/API/VerifyMigration.php:20
    • > PHP Fatal error
      Uncaught Error: Interface 'WPSynchro\\Transport\\RemoteConnection' not found in wp-content/plugins/wpsynchro/src/Transport/RemoteTestTransport.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
5 plugin tags: migration, migrate, database, clone, files

wpsynchro/wpsynchro.php Passed 13 tests

"WP Synchro - WordPress Migration Plugin for Database & Files" version 1.11.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
87 characters long description:
Professional migration plugin for WordPress - Migration of database and files made easy

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 plugin8,804 lines of code in 109 files:
LanguageFilesBlank linesComment linesLines of code
PHP1031,6782,8838,778
CSS213012
JSON20012
JavaScript2012

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity14.11
▷ Minimum class complexity1.00
▷ Maximum class complexity91.00
Average method complexity3.64
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces22
Interfaces3
Traits1
Classes87
▷ Abstract classes11.15%
▷ Concrete classes8698.85%
▷ Final classes00.00%
Methods450
▷ Static methods439.56%
▷ Public methods40590.00%
▷ Protected methods00.00%
▷ Private methods4510.00%
Functions34
▷ Named functions411.76%
▷ Anonymous functions3088.24%
Constants27
▷ Global constants725.93%
▷ Class constants2074.07%
▷ Public constants20100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
dist/ad1a7bb1dc057be5c9a6929d1aaa4f7d.png8.11KB3.99KB▼ 50.79%