84% zcom-easy-wp-migrator

Code Review | Z.com Easy WP Migrator

WordPress plugin Z.com Easy WP Migrator scored84%from 54 tests.

About plugin

  • Plugin page: zcom-easy-wp-migr...
  • Plugin version: 1.1.5
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.5-4.9.7
  • WordPress version: 6.3.1
  • First release: Sep 15, 2017
  • Latest release: Sep 1, 2022
  • Number of updates: 21
  • Update frequency: every 86.3 days
  • Top authors: zcom (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /5,818 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.31MB] [CPU: ▼3.01ms] Passed 4 tests

This is a short check of server-side resources used by Z.com Easy WP Migrator
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.79 ▲0.3340.39 ▼1.18
Dashboard /wp-admin3.63 ▲0.3346.87 ▼4.76
Posts /wp-admin/edit.php3.68 ▲0.3351.44 ▲1.67
Add New Post /wp-admin/post-new.php6.15 ▲0.2685.26 ▼7.75
Media Library /wp-admin/upload.php3.54 ▲0.3134.21 ▲3.85

Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests

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

Browser metrics Passed 4 tests

An overview of browser requirements for Z.com Easy WP Migrator
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.21 ▼1.471.60 ▼0.1237.43 ▼2.11
Dashboard /wp-admin2,200 ▲125.82 ▲0.94101.44 ▼12.3640.45 ▼0.55
Posts /wp-admin/edit.php2,086 ▼32.01 ▼0.0338.25 ▼3.9234.21 ▼1.60
Add New Post /wp-admin/post-new.php1,533 ▼023.15 ▼0.07685.26 ▲25.3956.24 ▼0.50
Media Library /wp-admin/upload.php1,382 ▼34.23 ▼0.0196.87 ▲1.2841.33 ▲0.43

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 10× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'Zewm_Migration_Action' not found in wp-content/plugins/zcom-easy-wp-migrator/classes/actions/class-zewm-restore-action-restore.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Zewm_Migration_Action' not found in wp-content/plugins/zcom-easy-wp-migrator/classes/actions/class-zewm-migration-action-wp-info.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Zewm_Migration_Action' not found in wp-content/plugins/zcom-easy-wp-migrator/classes/actions/class-zewm-backup-action-backup.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Zewm_Migration_Action' not found in wp-content/plugins/zcom-easy-wp-migrator/classes/actions/class-zewm-restore-action-log.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Zewm_Migration_Action' not found in wp-content/plugins/zcom-easy-wp-migrator/classes/actions/class-zewm-backup-action-remove.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Zewm_Migration_Action' not found in wp-content/plugins/zcom-easy-wp-migrator/classes/actions/class-zewm-restore-action-remove.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/zcom-easy-wp-migrator/zcom-easy-wp-migrator.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Zewm_Migration_Action' not found in wp-content/plugins/zcom-easy-wp-migrator/classes/actions/class-zewm-backup-action-info.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Zewm_Migration_Action' not found in wp-content/plugins/zcom-easy-wp-migrator/classes/actions/class-zewm-restore-action-info.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Zewm_Migration_Action' not found in wp-content/plugins/zcom-easy-wp-migrator/classes/actions/class-zewm-backup-action-log.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: zcom, migration

zcom-easy-wp-migrator/zcom-easy-wp-migrator.php Passed 13 tests

Analyzing the main PHP file in "Z.com Easy WP Migrator" version 1.1.5
47 characters long description:
A plugin for migrations by Z.com for WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,567 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP20263691,567

PHP code Passed 2 tests

This is a very shot 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.24
Average class complexity7.54
▷ Minimum class complexity1.00
▷ Maximum class complexity40.00
Average method complexity2.32
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes26
▷ Abstract classes27.69%
▷ Concrete classes2492.31%
▷ Final classes00.00%
Methods133
▷ Static methods129.02%
▷ Public methods11183.46%
▷ Protected methods32.26%
▷ Private methods1914.29%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants16
▷ Global constants16100.00%
▷ Class constants00.00%
▷ Public constants00.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
There are no PNG files in this plugin