78% onecom-migrator

Code Review | one.com Migrator

WordPress plugin one.com Migrator scored78%from 54 tests.

About plugin

  • Plugin page: onecom-migrator
  • Plugin version: 0.1.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.2
  • WordPress version: 6.3.1
  • First release: Nov 16, 2021
  • Latest release: Apr 19, 2023
  • Number of updates: 13
  • Update frequency: every 39.9 days
  • Top authors: One.com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /2,314 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.64MB] [CPU: ▼16.84ms] Passed 4 tests

An overview of server-side resources used by one.com Migrator
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0341.64 ▼4.28
Dashboard /wp-admin3.38 ▲0.0352.82 ▼4.56
Posts /wp-admin/edit.php3.49 ▲0.0948.75 ▲1.48
Add New Post /wp-admin/post-new.php3.29 ▼2.6439.66 ▼59.98
Media Library /wp-admin/upload.php3.30 ▲0.0340.98 ▲4.82
one.com Migrator /wp-admin/admin.php?page=onecom-migrator3.2734.13

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

one.com Migrator: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,846 ▲8514.72 ▲0.621.84 ▲0.0840.25 ▼5.49
Dashboard /wp-admin2,240 ▲635.52 ▼0.0787.23 ▼15.2870.05 ▲26.33
Posts /wp-admin/edit.php2,160 ▲601.98 ▼0.0435.17 ▼1.4139.18 ▲2.71
Add New Post /wp-admin/post-new.php1,734 ▲20622.25 ▼1.18793.99 ▲140.9667.54 ▲15.84
Media Library /wp-admin/upload.php1,460 ▲574.14 ▼0.0497.02 ▼3.5872.30 ▲24.07
one.com Migrator /wp-admin/admin.php?page=onecom-migrator8531.9925.3358.96

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 detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/onecom-migrator/onecom-migrator.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/onecom-migrator/inc/templates/migrator-admin-template.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: onecom-migrator, migrator, onecom migrator, onecom

onecom-migrator/onecom-migrator.php Passed 13 tests

The main PHP file in "one.com Migrator" ver. 0.1.2 adds more information about the plugin and also serves as the entry point for this plugin
99 characters long description:
one.com migrator plugin helps to migrate a WordPress site from previous hosting provider to one.com

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin478 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
CSS400271
PHP55794182
SVG20125

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity10.00
▷ Minimum class complexity5.00
▷ Maximum class complexity15.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants7
▷ Global constants685.71%
▷ Class constants114.29%
▷ Public constants1100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.89MB with 0.31MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/guide-ss.png915.69KB598.47KB▼ 34.64%