78% one-click-migration

Code Review | ClickPress Migration

WordPress plugin ClickPress Migration scored78%from 54 tests.

About plugin

  • Plugin page: one-click-migration
  • Plugin version: 0.2.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3
  • WordPress version: 6.3.1
  • First release: Aug 5, 2021
  • Latest release: Sep 21, 2023
  • Number of updates: 131
  • Update frequency: every 5.9 days
  • Top authors: gididreamvps (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,564 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼1.62ms] Passed 4 tests

An overview of server-side resources used by ClickPress Migration
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1736.68 ▼8.22
Dashboard /wp-admin3.47 ▲0.1646.80 ▼3.46
Posts /wp-admin/edit.php3.58 ▲0.2248.10 ▲0.59
Add New Post /wp-admin/post-new.php6.05 ▲0.1693.55 ▲4.61
Media Library /wp-admin/upload.php3.39 ▲0.1641.74 ▲7.95

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

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

Browser metrics Passed 4 tests

A check of browser resources used by ClickPress Migration
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲10413.28 ▼0.951.88 ▲0.0243.30 ▼6.15
Dashboard /wp-admin2,245 ▲604.95 ▼0.13107.55 ▼10.7442.89 ▼4.08
Posts /wp-admin/edit.php2,128 ▲392.06 ▲0.0441.96 ▲7.0635.25 ▲1.10
Add New Post /wp-admin/post-new.php1,543 ▲723.50 ▲0.22599.30 ▼10.8248.18 ▼3.97
Media Library /wp-admin/upload.php1,427 ▲424.16 ▼0.03100.76 ▲0.7142.03 ▼0.93

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/one-click-migration/src/migration-page/styles.php
    • > /wp-content/plugins/one-click-migration/src/debug-page/styles.php
    • > /wp-content/plugins/one-click-migration/src/debug-page/scripts.php
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Undefined variable: phpVersion in wp-content/plugins/one-click-migration/src/migration-page/scripts.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/one-click-migration/src/debug-page/html.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/one-click-migration/clickpress-migration.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/one-click-migration/src/migration-page/html.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function clickpress_migration_e() in wp-content/plugins/one-click-migration/src/migration-page/scripts.php:80

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 93% from 29 tests

readme.txt Passed 16 tests

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

one-click-migration/clickpress-migration.php 85% from 13 tests

The primary PHP file in "ClickPress Migration" version 0.2.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("one-click-migration.php" instead of "clickpress-migration.php")

Code Analysis Passed 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
Success! There were no dangerous files found in this plugin1,757 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP114162631,757

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions29
▷ Named functions2379.31%
▷ Anonymous functions620.69%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/v.png0.35KB0.25KB▼ 29.09%
img/info.png0.58KB0.47KB▼ 19.97%
img/check-red.png0.59KB0.38KB▼ 36.36%
img/time.png0.70KB0.43KB▼ 39.25%
img/check-green.png0.55KB0.39KB▼ 29.41%