83% all-in-one-wp-migration

Code Review | All-in-One WP Migration

WordPress plugin All-in-One WP Migration scored83%from 54 tests.

About plugin

  • Plugin page: all-in-one-wp-mig...
  • Plugin version: 7.79
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.4
  • WordPress version: 6.3.1
  • First release: Jan 7, 2014
  • Latest release: Oct 12, 2023
  • Number of updates: 537
  • Update frequency: every 6.6 days
  • Top authors: bangelov (79.33%)yani.iliev (20.86%)

Code review

54 tests

User reviews

7264 reviews

Install metrics

5,000,000+ active /113,836,075 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲1.75MB] [CPU: ▲6.00ms] Passed 4 tests

This is a short check of server-side resources used by All-in-One WP Migration
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /5.21 ▲1.7449.10 ▲11.59
Dashboard /wp-admin5.07 ▲1.7256.08 ▼7.27
Posts /wp-admin/edit.php5.12 ▲1.7660.98 ▲17.10
Add New Post /wp-admin/post-new.php7.67 ▲1.78103.12 ▲5.26
Media Library /wp-admin/upload.php5.00 ▲1.7649.66 ▲14.40
Backups 0 /wp-admin/admin.php?page=ai1wm_backups5.0341.36
Import /wp-admin/admin.php?page=ai1wm_import5.0043.06
Schedules /wp-admin/admin.php?page=ai1wm_schedules5.0340.74
Export /wp-admin/admin.php?page=ai1wm_export5.0040.70

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

A short overview of filesystem and database impact
These are issues you should consider
  • There were 5 files (0.59KB) illegally modified outside of "wp-content/plugins/all-in-one-wp-migration/" and "wp-content/uploads/"
    • (new file) wp-content/ai1wm-backups/web.config
    • (new file) wp-content/ai1wm-backups/robots.txt
    • (new file) wp-content/ai1wm-backups/index.php
    • (new file) wp-content/ai1wm-backups/.htaccess
    • (new file) wp-content/ai1wm-backups/index.html
Filesystem: 203 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
ai1wm_secret_key

Browser metrics Passed 4 tests

Checking browser requirements for All-in-One WP Migration
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲6414.24 ▼0.111.89 ▲0.1341.32 ▲3.62
Dashboard /wp-admin2,228 ▲535.53 ▼0.3081.86 ▼32.7139.05 ▼6.59
Posts /wp-admin/edit.php2,136 ▲362.01 ▲0.0339.61 ▲1.5435.01 ▼3.77
Add New Post /wp-admin/post-new.php1,556 ▲3023.03 ▼0.66683.81 ▲9.0159.32 ▲7.90
Media Library /wp-admin/upload.php1,436 ▲364.16 ▼0.0098.51 ▼3.2345.46 ▼0.44
Backups 0 /wp-admin/admin.php?page=ai1wm_backups1,2618.77264.1083.43
Import /wp-admin/admin.php?page=ai1wm_import1,4299.03220.5754.18
Schedules /wp-admin/admin.php?page=ai1wm_schedules1,0332.0122.1034.85
Export /wp-admin/admin.php?page=ai1wm_export1,6058.94154.8049.87

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • can_compress_scripts
    • ai1wm_updater
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please take a closer look at the following
  • 159× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/all-in-one-wp-migration/lib/view/common/report-problem.php
    • > /wp-content/plugins/all-in-one-wp-migration/lib/view/common/leave-feedback.php
    • > /wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/filesystem/class-ai1wm-file-webconfig.php
    • > /wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/database/class-ai1wm-database-mysqli.php
    • > /wp-content/plugins/all-in-one-wp-migration/functions.php
    • > /wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-file.php
    • > /wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-compatibility.php
    • > /wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-webdav.php
    • > /wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/filesystem/class-ai1wm-file.php
    • > /wp-content/plugins/all-in-one-wp-migration/lib/view/common/maintenance-mode.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
  • Screenshots: Add a description for screenshot #4 in all-in-one-wp-migration/assets to your readme.txt
You can look at the official readme.txt

all-in-one-wp-migration/all-in-one-wp-migration.php 92% from 13 tests

The main PHP script in "All-in-One WP Migration" version 7.79 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis 97% from 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
There were no executable files found in this plugin14,142 lines of code in 165 files:
LanguageFilesBlank linesComment linesLines of code
PHP1422,8917,74210,094
JavaScript71,0727403,955
SVG20079
CSS140014

PHP code 50% from 2 tests

This plugin's cyclomatic complexity and code structure detailed below
These items need your attention
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 155)
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity11.48
▷ Minimum class complexity1.00
▷ Maximum class complexity155.00
Average method complexity4.25
▷ Minimum method complexity1.00
▷ Maximum method complexity155.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes100
▷ Abstract classes22.00%
▷ Concrete classes9898.00%
▷ Final classes00.00%
Methods331
▷ Static methods12938.97%
▷ Public methods27883.99%
▷ Protected methods4714.20%
▷ Private methods61.81%
Functions123
▷ Named functions123100.00%
▷ Anonymous functions00.00%
Constants259
▷ Global constants259100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
12 compressed PNG files occupy 0.24MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lib/view/assets/img/schedules/more-storage-providers.png31.36KB32.02KB0.00%
lib/view/assets/img/schedules/dropbox-storage.png20.75KB21.02KB0.00%
lib/view/assets/img/schedules/onedrive-storage.png20.30KB20.37KB0.00%
lib/view/assets/img/schedules/retention-settings.png26.29KB26.78KB0.00%
lib/view/assets/img/logo-128x128.png5.28KB2.94KB▼ 44.21%