68% duplicator

Code Review | Duplicator - WordPress Migration Plugin

WordPress plugin Duplicator - WordPress Migration Plugin scored 68% from 54 tests.

About plugin

  • Plugin page: duplicator
  • Plugin version: 1.4.4
  • PHP compatiblity: 5.3.8+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 5.9.2
  • First release: Jun 7, 2011
  • Latest release: Feb 2, 2022
  • Number of updates: 1,173
  • Update frequency: every 3.3 days
  • Top authors: cory@lamle.org (98.89%)bobriley (1.19%)

Code review

54 tests

User reviews

3476 reviews

Install metrics

1,000,000+ active / 28,466,751 total downloads


Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲1.81MB] [CPU: ▼282.61ms] Passed 4 tests

An overview of server-side resources used by Duplicator - WordPress Migration Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.1855.11 ▲3.25
Dashboard /wp-admin5.79 ▲2.3958.81 ▲24.08
Posts /wp-admin/edit.php6.02 ▲2.3852.45 ▲14.84
Add New Post /wp-admin/post-new.php9.26 ▲2.29110.16 ▼1,157.03
Media Library /wp-admin/upload.php5.68 ▲2.3835.91 ▲8.51
Settings /wp-admin/admin.php?page=duplicator-settings5.8138.82
Packages /wp-admin/admin.php?page=duplicator5.8441.09
Go Pro! /wp-admin/admin.php?page=duplicator-gopro5.7238.22
Tools /wp-admin/admin.php?page=duplicator-tools6.03117.42

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

Input-output and database impact of this plugin
Please try to fix the following items
  • You have illegally modified 4 files (0.29KB) outside of "wp-content/plugins/duplicator/" and "wp-content/uploads/"
    • (new file) wp-content/backups-dup-lite/index.php
    • (new file) wp-content/backups-dup-lite/tmp/.empty
    • (new file) wp-content/backups-dup-lite/.htaccess
    • (new file) wp-content/backups-dup-lite/robots.txt
Filesystem: 324 new files
Database: 1 new table, 2 new options
New tables
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Duplicator - WordPress Migration Plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,868 ▲11415.86 ▲0.185.83 ▼0.922.36 ▼0.38
Dashboard /wp-admin2,993 ▲1326.09 ▼0.09118.91 ▼17.52151.98 ▼10.47
Posts /wp-admin/edit.php2,798 ▲1043.29 ▲0.0568.05 ▲3.68139.14 ▼5.52
Add New Post /wp-admin/post-new.php1,697 ▲717.42 ▼0.82430.46 ▲22.74154.62 ▼6.94
Media Library /wp-admin/upload.php1,804 ▲1065.59 ▲0.08134.56 ▼4.37186.70 ▼4.70
Settings /wp-admin/admin.php?page=duplicator-settings1,6324.5190.50145.53
Packages /wp-admin/admin.php?page=duplicator1,6863.0388.08148.31
Go Pro! /wp-admin/admin.php?page=duplicator-gopro1,8003.3590.32124.92
Tools /wp-admin/admin.php?page=duplicator-tools10,3363.57211.46151.07

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/duplicator/uninstall.php+11
    Constant DUPLICATOR_LITE_PHP_MINIMUM_VERSION already defined

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

SRP 0% 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 items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/duplicator/installer/dup-installer/index.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'DupLiteSnapLibUtil' not found in wp-content/plugins/duplicator/lib/fileops/fileops.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected


Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Add an image for screenshot #1 (Main Interface for all Packages)
The official readme.txt might help

duplicator/duplicator.php Passed 13 tests

The main file in "Duplicator - WordPress Migration Plugin" v. 1.4.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
127 characters long description:
Migrate and backup a copy of your WordPress files and database. Duplicate and move a site from one location to another quickly.

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
It is important to fix the following items
  • Do not distribute dangerous files with your plugin
    • .bin - Binary Executable in Windows, macOS, Linux
      • wp-content/plugins/duplicator/lib/dup_archive/daws/dawslock.bin
44,282 lines of code in 221 files:
LanguageFilesBlank linesComment linesLines of code
PO File18228942,140

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity21.92
▷ Minimum class complexity1.00
▷ Maximum class complexity239.00
Average method complexity4.20
▷ Minimum method complexity1.00
▷ Maximum method complexity66.00
Code structure
▷ Abstract classes116.29%
▷ Concrete classes16493.71%
▷ Final classes84.88%
▷ Static methods67457.41%
▷ Public methods98183.56%
▷ Protected methods383.24%
▷ Private methods15513.20%
▷ Named functions4794.00%
▷ Anonymous functions36.00%
▷ Global constants11036.18%
▷ Class constants19463.82%
▷ Public constants194100.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
42 PNG files occupy 0.28MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/5star.png11.80KB3.83KB▼ 67.58%
installer/dup-installer/favicon/favicon-32x32.png2.89KB1.63KB▼ 43.75%
assets/css/images/ui-icons_cd0a0a_256x240.png4.27KB4.11KB▼ 3.78%
installer/dup-installer/assets/images/ui-icons_cd0a0a_256x240.png4.44KB4.17KB▼ 6.02%