73% prime-mover

Code Review | Migrate WordPress Website & Backups - Prime Mover

WordPress plugin Migrate WordPress Website & Backups - Prime Mover scored73%from 54 tests.

About plugin

  • Plugin page: prime-mover
  • Plugin version: 1.9.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.8-6.4
  • WordPress version: 6.3.1
  • First release: Jun 29, 2019
  • Latest release: Nov 27, 2023
  • Number of updates: 167
  • Update frequency: every 9.7 days
  • Top authors: codexonics (100%)

Code review

54 tests

User reviews

91 reviews

Install metrics

8,000+ active /158,303 total downloads

Benchmarks

Plugin footprint 64% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲13.72MB] [CPU: ▲75.98ms] 50% from 4 tests

Analyzing server-side resources used by Migrate WordPress Website & Backups - Prime Mover
Please fix the following
  • RAM: Total memory usage must be kept under 10MB (currently 17.22MB on /wp-admin/admin.php?page=freemius)
  • Extra RAM: Extra memory usage should kept under 5MB (currently 13.72MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /17.15 ▲13.69110.79 ▲68.79
Dashboard /wp-admin17.05 ▲13.70129.79 ▲71.25
Posts /wp-admin/edit.php17.16 ▲13.81133.75 ▲88.25
Add New Post /wp-admin/post-new.php19.63 ▲13.74175.40 ▲87.68
Media Library /wp-admin/upload.php16.97 ▲13.74111.70 ▲76.20
Migration Tools /wp-admin/tools.php?page=migration-tools17.00112.01
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius17.22105.79

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

A short overview of filesystem and database impact
Please try to fix the following items
  • There were 1 file (16.98KB) illegally modified outside of "wp-content/plugins/prime-mover/" and "wp-content/uploads/"
    • (new file) wp-content/mu-plugins/prime-mover-cli-plugin-manager.php
Filesystem: 375 new files
Database: no new tables, 10 new options
New WordPress options
widget_theysaidso_widget
prime_mover_thirdparty_data_hooks
db_upgraded
fs_active_plugins
fs_debug_mode
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
fs_accounts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Migrate WordPress Website & Backups - Prime Mover
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,854 ▲10714.21 ▼0.131.69 ▼0.0927.83 ▼17.04
Dashboard /wp-admin2,234 ▲655.52 ▼0.2298.16 ▼23.4546.84 ▲2.56
Posts /wp-admin/edit.php2,140 ▲432.01 ▲0.0439.75 ▲3.5838.16 ▲6.76
Add New Post /wp-admin/post-new.php1,548 ▲2220.95 ▼2.15685.73 ▼69.7949.52 ▼18.13
Media Library /wp-admin/upload.php1,442 ▲394.23 ▲0.0799.14 ▲0.1546.05 ▲3.55
Migration Tools /wp-admin/tools.php?page=migration-tools1,1572.0543.8831.26
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius1,1041.6529.3831.18

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/prime-mover/freemius/includes/class-freemius.php+8546
    Undefined property: stdClass::$plugins
  • This plugin does not fully uninstall, leaving 9 options in the database
    • widget_recent-comments
    • fs_debug_mode
    • db_upgraded
    • widget_theysaidso_widget
    • fs_active_plugins
    • widget_recent-posts
    • fs_accounts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/prime-mover/menus/PrimeMoverBackupMenuListTable.php:23
    • > PHP Notice
      Undefined variable: argv in wp-content/plugins/prime-mover/scripts/prime-mover-shell-archiver.php on line 23
    • > PHP Notice
      Undefined variable: argc in wp-content/plugins/prime-mover/scripts/prime-mover-shell-archiver.php on line 23
    • > PHP Fatal error
      Uncaught Error: Class 'Codexonics\\PrimeMoverFramework\\build\\splitbrain\\PHPArchive\\Archive' not found in wp-content/plugins/prime-mover/build/splitbrain/php-archive/src/Tar.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Codexonics\\PrimeMoverFramework\\build\\splitbrain\\PHPArchive\\Archive' not found in wp-content/plugins/prime-mover/build/splitbrain/php-archive/src/Zip.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: migrate wordpress, database backup, multisite, multisite migration, wordpress backup...

prime-mover/prime-mover.php Passed 13 tests

The entry point to "Migrate WordPress Website & Backups - Prime Mover" version 1.9.3 is a PHP file that has certain tags in its header comment area
140 characters long description:
The simplest all-around WordPress migration tool/backup plugin. These support multisite backup/migration or clone WP site/multisite subsite.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin94,443 lines of code in 299 files:
LanguageFilesBlank linesComment linesLines of code
PHP24415,26235,10473,905
JavaScript221,3261,5519,957
SVG4006,949
PO File21,0801,2543,004
CSS254021625
Markdown1002
JSON1001

PHP code 50% from 2 tests

An overview of cyclomatic complexity and code structure
These items need your attention
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity63.87
▷ Minimum class complexity1.00
▷ Maximum class complexity3,096.00
Average method complexity3.78
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces19
Interfaces6
Traits0
Classes171
▷ Abstract classes74.09%
▷ Concrete classes16495.91%
▷ Final classes21.22%
Methods4,093
▷ Static methods2616.38%
▷ Public methods3,07075.01%
▷ Protected methods42010.26%
▷ Private methods60314.73%
Functions139
▷ Named functions11884.89%
▷ Anonymous functions2115.11%
Constants314
▷ Global constants20565.29%
▷ Class constants10934.71%
▷ Public constants109100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
res/img/done.png0.53KB0.58KB0.00%