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
Page Memory (MB) CPU Time (ms)
Home / 5.21 ▲1.74 49.10 ▲11.59
Dashboard /wp-admin 5.07 ▲1.72 56.08 ▼7.27
Posts /wp-admin/edit.php 5.12 ▲1.76 60.98 ▲17.10
Add New Post /wp-admin/post-new.php 7.67 ▲1.78 103.12 ▲5.26
Media Library /wp-admin/upload.php 5.00 ▲1.76 49.66 ▲14.40
Backups 0 /wp-admin/admin.php?page=ai1wm_backups 5.03 41.36
Import /wp-admin/admin.php?page=ai1wm_import 5.00 43.06
Schedules /wp-admin/admin.php?page=ai1wm_schedules 5.03 40.74
Export /wp-admin/admin.php?page=ai1wm_export 5.00 40.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
Page Nodes Memory (MB) Script (ms) Layout (ms)
Home / 2,850 ▲64 14.24 ▼0.11 1.89 ▲0.13 41.32 ▲3.62
Dashboard /wp-admin 2,228 ▲53 5.53 ▼0.30 81.86 ▼32.71 39.05 ▼6.59
Posts /wp-admin/edit.php 2,136 ▲36 2.01 ▲0.03 39.61 ▲1.54 35.01 ▼3.77
Add New Post /wp-admin/post-new.php 1,556 ▲30 23.03 ▼0.66 683.81 ▲9.01 59.32 ▲7.90
Media Library /wp-admin/upload.php 1,436 ▲36 4.16 ▼0.00 98.51 ▼3.23 45.46 ▼0.44
Backups 0 /wp-admin/admin.php?page=ai1wm_backups 1,261 8.77 264.10 83.43
Import /wp-admin/admin.php?page=ai1wm_import 1,429 9.03 220.57 54.18
Schedules /wp-admin/admin.php?page=ai1wm_schedules 1,033 2.01 22.10 34.85
Export /wp-admin/admin.php?page=ai1wm_export 1,605 8.94 154.80 49.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:
Language Files Blank lines Comment lines Lines of code
PHP 142 2,891 7,742 10,094
JavaScript 7 1,072 740 3,955
SVG 2 0 0 79
CSS 14 0 0 14

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 code 0.45
Average class complexity 11.48
▷ Minimum class complexity 1.00
▷ Maximum class complexity 155.00
Average method complexity 4.25
▷ Minimum method complexity 1.00
▷ Maximum method complexity 155.00
Code structure
Namespaces 0
Interfaces 0
Traits 0
Classes 100
▷ Abstract classes 2 2.00%
▷ Concrete classes 98 98.00%
▷ Final classes 0 0.00%
Methods 331
▷ Static methods 129 38.97%
▷ Public methods 278 83.99%
▷ Protected methods 47 14.20%
▷ Private methods 6 1.81%
Functions 123
▷ Named functions 123 100.00%
▷ Anonymous functions 0 0.00%
Constants 259
▷ Global constants 259 100.00%
▷ Class constants 0 0.00%
▷ Public constants 0 0.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
File Size - original Size - compressed Savings
lib/view/assets/img/schedules/more-storage-providers.png 31.36KB 32.02KB 0.00%
lib/view/assets/img/schedules/dropbox-storage.png 20.75KB 21.02KB 0.00%
lib/view/assets/img/schedules/onedrive-storage.png 20.30KB 20.37KB 0.00%
lib/view/assets/img/schedules/retention-settings.png 26.29KB 26.78KB 0.00%
lib/view/assets/img/logo-128x128.png 5.28KB 2.94KB ▼ 44.21%