84% savvii-wp-migrate

Code Review | Savvii WP Migrate

WordPress plugin Savvii WP Migrate scored84%from 54 tests.

About plugin

  • Plugin page: savvii-wp-migrate
  • Plugin version: 5.25
  • PHP compatiblity: 5.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Aug 22, 2015
  • Latest release: Sep 11, 2023
  • Number of updates: 81
  • Update frequency: every 36.3 days
  • Top authors: ritesh.soni36 (41.98%)akshatc (22.22%)rrv4813 (19.75%)nimish0808 (18.52%)vijayms (2.47%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /25,839 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
Install script ran successfully

Server metrics [RAM: ▲0.19MB] [CPU: ▼3.04ms] Passed 4 tests

An overview of server-side resources used by Savvii WP Migrate
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2044.37 ▼2.13
Dashboard /wp-admin3.53 ▲0.2351.01 ▲2.13
Posts /wp-admin/edit.php3.58 ▲0.2250.18 ▼2.09
Add New Post /wp-admin/post-new.php6.05 ▲0.1690.63 ▼10.06
Media Library /wp-admin/upload.php3.39 ▲0.1648.45 ▲8.37

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Savvii WP Migrate
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲9413.21 ▼1.232.49 ▲0.2743.51 ▼1.29
Dashboard /wp-admin2,224 ▲365.86 ▲0.9998.62 ▼13.4891.00 ▲46.23
Posts /wp-admin/edit.php2,107 ▲181.98 ▲0.0137.56 ▲2.1232.18 ▼4.83
Add New Post /wp-admin/post-new.php1,681 ▲16421.79 ▲4.30772.08 ▲105.0261.41 ▲11.76
Media Library /wp-admin/upload.php1,403 ▲124.23 ▲0.01116.77 ▲14.5253.69 ▲5.16

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • 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 everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/savvii-wp-migrate/admin/main_page.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: migration, savvii

savvii-wp-migrate/savvii.php 92% from 13 tests

The principal PHP file in "Savvii WP Migrate" v. 5.25 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("savvii-wp-migrate.php" instead of "savvii.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin3,440 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP23455483,377
CSS212063

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity25.87
▷ Minimum class complexity1.00
▷ Maximum class complexity98.00
Average method complexity3.40
▷ Minimum method complexity1.00
▷ Maximum method complexity54.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes23
▷ Abstract classes00.00%
▷ Concrete classes23100.00%
▷ Final classes00.00%
Methods238
▷ Static methods3213.45%
▷ Public methods23799.58%
▷ Protected methods00.00%
▷ Private methods10.42%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants112.50%
▷ Class constants787.50%
▷ Public constants7100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in 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
img/icon.png2.90KB0.28KB▼ 90.21%
img/logo.png4.06KB3.29KB▼ 19.01%
img/savvii-logo.png9.79KB4.13KB▼ 57.84%