83% all-in-one-wp-migration

Code Review | All-in-One WP Migration

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

About plugin

  • Plugin page: all-in-one-wp-mig...
  • Plugin version: 7.57
  • PHP compatiblity: 5.2.17+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.9
  • WordPress version: 5.9.2
  • First release: Jan 7, 2014
  • Latest release: Mar 29, 2022
  • Number of updates: 467
  • Update frequency: every 6.4 days
  • Top authors: bangelov (79.23%)yani.iliev (20.99%)

Code review

54 tests

User reviews

6917 reviews

Install metrics

4,000,000+ active / 73,130,824 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲1.65MB] [CPU: ▼285.81ms] Passed 4 tests

Analyzing server-side resources used by All-in-One WP Migration
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /5.18 ▲1.6765.65 ▲13.83
Dashboard /wp-admin5.04 ▲1.6344.09 ▲3.36
Posts /wp-admin/edit.php5.33 ▲1.6949.20 ▲11.61
Add New Post /wp-admin/post-new.php8.57 ▲1.60104.80 ▼1,168.80
Media Library /wp-admin/upload.php4.99 ▲1.6934.84 ▲10.61
Import /wp-admin/admin.php?page=ai1wm_import5.0032.62
Export /wp-admin/admin.php?page=ai1wm_export5.0032.91
Backups /wp-admin/admin.php?page=ai1wm_backups5.0035.32

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

Analyzing filesystem and database footprints of this plugin
Please try to fix the following items
  • Illegal file modification found: 5 files (0.59KB) outside of "wp-content/plugins/all-in-one-wp-migration/" and "wp-content/uploads/"
    • (new file) wp-content/ai1wm-backups/index.html
    • (new file) wp-content/ai1wm-backups/index.php
    • (new file) wp-content/ai1wm-backups/.htaccess
    • (new file) wp-content/ai1wm-backups/robots.txt
    • (new file) wp-content/ai1wm-backups/web.config
Filesystem: 184 new files
Database: no new tables, 1 new option
New WordPress options
ai1wm_secret_key

Browser metrics Passed 4 tests

An overview of browser requirements for All-in-One WP Migration
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,820 ▲6615.80 ▼0.216.10 ▼1.022.12 ▼0.49
Dashboard /wp-admin2,930 ▲726.24 ▲0.03123.17 ▼14.63170.49 ▲7.37
Posts /wp-admin/edit.php2,726 ▲323.24 ▲0.0064.19 ▼1.80139.50 ▼1.07
Add New Post /wp-admin/post-new.php1,723 ▲6223.11 ▲6.98430.90 ▲5.72150.18 ▼1.02
Media Library /wp-admin/upload.php1,735 ▲375.50 ▼0.06137.29 ▼12.71191.13 ▲4.84
Import /wp-admin/admin.php?page=ai1wm_import1,7499.44274.66234.70
Export /wp-admin/admin.php?page=ai1wm_export1,9129.50241.66213.59
Backups /wp-admin/admin.php?page=ai1wm_backups1,4969.17189.56178.07

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 1 option
    • ai1wm_updater

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Please take a closer look at the following
  • 154× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/all-in-one-wp-migration/lib/model/class-ai1wm-extensions.php
    • > /wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-glacier.php
    • > /wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-config.php
    • > /wp-content/plugins/all-in-one-wp-migration/lib/view/backups/index.php
    • > /wp-content/plugins/all-in-one-wp-migration/lib/view/common/maintenance-mode.php
    • > /wp-content/plugins/all-in-one-wp-migration/lib/vendor/servmask/filesystem/class-ai1wm-directory.php
    • > /wp-content/plugins/all-in-one-wp-migration/lib/model/export/class-ai1wm-export-media.php
    • > /wp-content/plugins/all-in-one-wp-migration/lib/model/import/class-ai1wm-import-done.php
    • > /wp-content/plugins/all-in-one-wp-migration/lib/view/export/button-box.php
    • > /wp-content/plugins/all-in-one-wp-migration/lib/view/import/avada.php

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

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Screenshots: Please describe screenshot #4 in all-in-one-wp-migration/assets to your readme.txt
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
You can take inspiration from this readme.txt

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

This is the main PHP file of "All-in-One WP Migration" version 7.57, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected12,416 lines of code in 155 files:
LanguageFilesBlank linesComment linesLines of code
PHP1372,7517,4819,440
JavaScript68806602,895
SVG20071
CSS100010

PHP code 50% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 156)
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity11.54
▷ Minimum class complexity1.00
▷ Maximum class complexity156.00
Average method complexity4.23
▷ Minimum method complexity1.00
▷ Maximum method complexity156.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes94
▷ Abstract classes22.13%
▷ Concrete classes9297.87%
▷ Final classes00.00%
Methods316
▷ Static methods11737.03%
▷ Public methods26383.23%
▷ Protected methods4714.87%
▷ Private methods61.90%
Functions113
▷ Named functions113100.00%
▷ Anonymous functions00.00%
Constants257
▷ Global constants257100.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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lib/view/assets/img/logo-20x20.png0.86KB0.81KB▼ 5.59%
lib/view/assets/img/logo-128x128.png5.28KB2.94KB▼ 44.21%
lib/view/assets/img/logo-32x32.png1.39KB1.25KB▼ 10.05%