84% bv-cloudways-automated-migration

Code Review | Cloudways WordPress Migrator

WordPress plugin Cloudways WordPress Migrator scored84%from 54 tests.

About plugin

  • Plugin page: bv-cloudways-auto...
  • 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: Sep 21, 2015
  • Latest release: Sep 11, 2023
  • Number of updates: 76
  • Update frequency: every 38.3 days
  • Top authors: ritesh.soni36 (46.05%)akshatc (25%)rrv4813 (23.68%)nimish0808 (9.21%)

Code review

54 tests

User reviews

28 reviews

Install metrics

20,000+ active /528,614 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.18MB] [CPU: ▲0.44ms] Passed 4 tests

Analyzing server-side resources used by Cloudways WordPress Migrator
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.1940.66 ▲4.98
Dashboard /wp-admin3.53 ▲0.2248.86 ▲5.49
Posts /wp-admin/edit.php3.58 ▲0.2251.39 ▼0.38
Add New Post /wp-admin/post-new.php6.05 ▲0.1696.33 ▼1.27
Media Library /wp-admin/upload.php3.39 ▲0.1636.61 ▼1.58

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Cloudways WordPress Migrator
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6914.48 ▲0.081.77 ▼0.0744.52 ▲0.22
Dashboard /wp-admin2,212 ▲245.80 ▼0.11100.50 ▼1.6663.69 ▲20.08
Posts /wp-admin/edit.php2,107 ▲212.02 ▼0.0237.36 ▲0.5434.58 ▲1.39
Add New Post /wp-admin/post-new.php1,536 ▼13118.36 ▼4.04694.97 ▲95.6969.70 ▲21.65
Media Library /wp-admin/upload.php1,397 ▲124.20 ▼0.04106.86 ▲8.6671.96 ▲26.90

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/bv-cloudways-automated-migration/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 errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: cloudways, migration

bv-cloudways-automated-migration/cloudways.php 92% from 13 tests

The primary PHP file in "Cloudways WordPress Migrator" version 5.25 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bv-cloudways-automated-migration.php" instead of "cloudways.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin7,863 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
SVG1004,349
PHP23455483,323
CSS100191

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
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

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/blogvault-logo.png4.06KB3.29KB▼ 19.01%
assets/img/cloudways-logo.png3.70KB2.53KB▼ 31.45%