84% migrate-to-liquidweb

Code Review | Migrate To Liquid Web & Nexcess

WordPress plugin Migrate To Liquid Web & Nexcess scored 84% from 54 tests.

About plugin

  • Plugin page: migrate-to-liquidweb
  • 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: Jul 25, 2016
  • Latest release: Sep 11, 2023
  • Number of updates: 72
  • Update frequency: every 36.2 days
  • Top authors: ritesh.soni36 (56.94%)rrv4813 (25%)akshatc (12.5%)singhsivam (9.72%)

Code review

54 tests

User reviews

6 reviews

Install metrics

5,000+ active / 209,904 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.18MB] [CPU: ▼0.89ms] Passed 4 tests

An overview of server-side resources used by Migrate To Liquid Web & Nexcess
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2038.94 ▲0.98
Dashboard /wp-admin3.53 ▲0.2248.40 ▲1.95
Posts /wp-admin/edit.php3.58 ▲0.2250.13 ▲1.90
Add New Post /wp-admin/post-new.php6.04 ▲0.1693.71 ▼8.39
Media Library /wp-admin/upload.php3.39 ▲0.1639.91 ▲9.72

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Migrate To Liquid Web & Nexcess
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲8013.29 ▼0.894.80 ▲3.0039.79 ▼4.54
Dashboard /wp-admin2,221 ▲365.86 ▲0.83110.63 ▲1.6769.38 ▲22.34
Posts /wp-admin/edit.php2,110 ▲212.02 ▲0.0039.08 ▼0.0734.43 ▼0.18
Add New Post /wp-admin/post-new.php1,536 ▲318.15 ▼4.96648.76 ▲5.8458.55 ▲11.40
Media Library /wp-admin/upload.php1,397 ▲154.16 ▼0.1298.00 ▼1.4578.60 ▲34.75

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/migrate-to-liquidweb/admin/main_page.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

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: liquidweb, migration

migrate-to-liquidweb/liquidweb.php 92% from 13 tests

The primary PHP file in "Migrate To Liquid Web & Nexcess" version 5.25 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("migrate-to-liquidweb.php" instead of "liquidweb.php")

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
No dangerous file extensions were detected3,394 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP23454483,324
CSS10070

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/icon.png0.77KB0.86KB0.00%
img/blogvault-logo.png4.06KB3.29KB▼ 19.01%
img/liquidweb-logo.png10.81KB4.12KB▼ 61.90%