84% wp-site-migrate

Code Review | WP Engine Automated Migration

WordPress plugin WP Engine Automated Migration scored84%from 54 tests.

About plugin

  • Plugin page: wp-site-migrate
  • Plugin version: 5.25
  • PHP compatiblity: 5.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Dec 3, 2014
  • Latest release: Sep 11, 2023
  • Number of updates: 125
  • Update frequency: every 27.2 days
  • Top authors: akshatc (59.2%)ritesh.soni36 (27.2%)rrv4813 (12%)nimish0808 (4%)

Code review

54 tests

User reviews

29 reviews

Install metrics

30,000+ active /1,076,728 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼8.10ms] Passed 4 tests

This is a short check of server-side resources used by WP Engine Automated Migration
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1035.08 ▼1.95
Dashboard /wp-admin3.40 ▲0.0547.63 ▼10.28
Posts /wp-admin/edit.php3.45 ▲0.0945.88 ▲3.76
Add New Post /wp-admin/post-new.php5.92 ▲0.0380.05 ▼22.05
Media Library /wp-admin/upload.php3.26 ▲0.0337.30 ▲1.87

Server storage [IO: ▲0.16MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for WP Engine Automated Migration
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4314.28 ▼0.091.72 ▲0.0939.86 ▼0.05
Dashboard /wp-admin2,207 ▲275.49 ▼0.2183.46 ▲0.5076.82 ▲35.72
Posts /wp-admin/edit.php2,115 ▲361.99 ▼0.0535.41 ▼0.9534.01 ▼3.18
Add New Post /wp-admin/post-new.php1,693 ▲16721.95 ▼1.27719.16 ▲58.6461.85 ▲1.94
Media Library /wp-admin/upload.php1,415 ▲154.19 ▼0.0193.13 ▼11.3571.65 ▲25.81

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% 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 no errors were found, this is by no means an exhaustive test

SRP 50% 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 take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wp-site-migrate/admin/main_page.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Screenshot #2 (BlogVault dashboard showing live updates.) image not found
Please take inspiration from this readme.txt

wp-site-migrate/wpengine.php 92% from 13 tests

The main file in "WP Engine Automated Migration" v. 5.25 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-site-migrate.php" instead of "wpengine.php")

Code Analysis Passed 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
Good job! No executable or dangerous file extensions detected3,438 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP23455483,321
CSS10070
SVG30047

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity25.91
▷ Minimum class complexity1.00
▷ Maximum class complexity98.00
Average method complexity3.41
▷ Minimum method complexity1.00
▷ Maximum method complexity54.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes23
▷ Abstract classes00.00%
▷ Concrete classes23100.00%
▷ Final classes00.00%
Methods238
▷ Static methods3213.45%
▷ Public methods23799.58%
▷ Protected methods00.00%
▷ Private methods10.42%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants112.50%
▷ Class constants787.50%
▷ Public constants7100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin