84% migratestore

Code Review | Migrate Store: Export and Import WooCommerce Settings

WordPress plugin Migrate Store: Export and Import WooCommerce Settings scored84%from 54 tests.

About plugin

  • Plugin page: migratestore
  • Plugin version: 1.1.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4
  • WordPress version: 6.3.1
  • First release: Sep 7, 2023
  • Latest release: Nov 28, 2023
  • Number of updates: 5
  • Update frequency: every 16.4 days
  • Top authors: Nagdy (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /342 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.66ms] Passed 4 tests

Analyzing server-side resources used by Migrate Store: Export and Import WooCommerce Settings
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.49 ▼4.82
Dashboard /wp-admin3.31 ▲0.0145.45 ▼6.44
Posts /wp-admin/edit.php3.36 ▲0.0047.38 ▼4.58
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.07 ▼6.80
Media Library /wp-admin/upload.php3.23 ▲0.0034.81 ▲2.44

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 44 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Migrate Store: Export and Import WooCommerce Settings
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲3414.13 ▼0.231.63 ▼0.2137.86 ▼5.14
Dashboard /wp-admin2,198 ▲245.62 ▼0.0491.39 ▼3.7443.07 ▼3.21
Posts /wp-admin/edit.php2,107 ▲42.00 ▲0.0439.23 ▼5.3443.64 ▲4.12
Add New Post /wp-admin/post-new.php1,532 ▲623.25 ▼0.37563.33 ▼131.0457.69 ▲4.95
Media Library /wp-admin/upload.php1,400 ▼04.18 ▲0.0196.09 ▲0.4743.94 ▲1.42

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

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
Good news, no errors were detected

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× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'MigrateStore\\Exporters\\AbstractExporter' not found in wp-content/plugins/migratestore/includes/Exporters/WooCommerce/ShippingZonesExporter.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: A description for screenshot #2 is required in migratestore/assets to your readme.txt
The official readme.txt is a good inspiration

migratestore/migratestore.php Passed 13 tests

The principal PHP file in "Migrate Store: Export and Import WooCommerce Settings" v. 1.1.2 is loaded by WordPress automatically on each request
139 characters long description:
Migrate Store is a plugin that allows you to export WooCommerce settings and import them into another website. Saving your time and effort.

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
There were no executable files found in this plugin1,523 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
PHP313684411,442
CSS19044
YAML24032
JSON1005

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity7.23
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity2.47
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes22
▷ Abstract classes29.09%
▷ Concrete classes2090.91%
▷ Final classes00.00%
Methods95
▷ Static methods1920.00%
▷ Public methods8690.53%
▷ Protected methods22.11%
▷ Private methods77.37%
Functions6
▷ Named functions00.00%
▷ Anonymous functions6100.00%
Constants4
▷ Global constants375.00%
▷ Class constants125.00%
▷ Public constants1100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.66MB with 0.37MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png9.56KB5.47KB▼ 42.78%
assets/screenshot-2.png56.24KB15.87KB▼ 71.79%
assets/banner-772x250.png94.63KB30.75KB▼ 67.50%
assets/screenshot-1.png268.18KB84.55KB▼ 68.47%
assets/icon-128x128.png4.28KB2.84KB▼ 33.70%