84% bluehost-site-migrator

Code Review | Bluehost Site Migrator

WordPress plugin Bluehost Site Migrator scored84%from 54 tests.

About plugin

  • Plugin page: bluehost-site-mig...
  • Plugin version: 1.0.14
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: Jun 24, 2020
  • Latest release: Oct 3, 2023
  • Number of updates: 22
  • Update frequency: every 54.4 days
  • Top authors: BlueHost (100%)

Code review

54 tests

User reviews

24 reviews

Install metrics

8,000+ active /92,143 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.09MB] [CPU: ▼3.15ms] Passed 4 tests

An overview of server-side resources used by Bluehost Site Migrator
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1135.42 ▼5.83
Dashboard /wp-admin3.41 ▲0.1145.16 ▼3.09
Posts /wp-admin/edit.php3.46 ▲0.1147.07 ▼0.99
Add New Post /wp-admin/post-new.php6.04 ▲0.1695.40 ▼2.67
Media Library /wp-admin/upload.php3.27 ▲0.0536.96 ▼0.24

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 118 new files
Database: 2 new tables, 7 new options
New tables
wp_nfd_tasks
wp_nfd_task_results
New WordPress options
widget_recent-comments
newfold_active_modules
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Bluehost Site Migrator
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,886 ▲15113.30 ▼1.291.62 ▼0.3042.23 ▼0.57
Dashboard /wp-admin2,264 ▲735.82 ▼0.0896.54 ▼11.7338.50 ▼8.61
Posts /wp-admin/edit.php2,150 ▲642.01 ▲0.0241.02 ▲6.1034.92 ▼4.32
Add New Post /wp-admin/post-new.php1,546 ▲1323.15 ▼0.05588.50 ▼77.9556.66 ▼0.89
Media Library /wp-admin/upload.php1,450 ▲654.23 ▲0.0696.59 ▼8.9542.57 ▼4.38

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • newfold_active_modules
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • 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)
Everything seems fine, however 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 fix the following
  • 48× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'BH_Site_Migrator_Packager' not found in wp-content/plugins/bluehost-site-migrator/includes/class-packager-mu-plugins.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\Process\\Process' not found in wp-content/plugins/bluehost-site-migrator/vendor/symfony/process/PhpProcess.php:25
    • > PHP Fatal error
      require(): Failed opening required 'wp-content/plugins/bluehost-site-migrator/vendor/symfony/process/vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/bluehost-site-migrator/vendor/symfony/process/Tests/ErrorProcessInitiator.php on line 17
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Forge\\Fluent\\Fluent' not found in wp-content/plugins/bluehost-site-migrator/vendor/newfold-labs/wp-module-loader/includes/Plugin.php:20
    • > PHP Fatal error
      Uncaught Error: Interface 'BH_Site_Migrator_Packager' not found in wp-content/plugins/bluehost-site-migrator/includes/class-packager-themes.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'NewfoldLabs\\Container\\Container' not found in wp-content/plugins/bluehost-site-migrator/vendor/newfold-labs/wp-module-loader/includes/Container.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/bluehost-site-migrator/includes/class-rest-migration-id-controller.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/bluehost-site-migrator/vendor/symfony/process/Tests/ProcessUtilsTest.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/bluehost-site-migrator/includes/class-rest-manifest-controller.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'BH_Site_Migrator_Packager' not found in wp-content/plugins/bluehost-site-migrator/includes/class-packager-dropins.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: migrate, migration

bluehost-site-migrator/bluehost-site-migrator.php Passed 13 tests

The main PHP script in "Bluehost Site Migrator" version 1.0.14 is automatically included on every request by WordPress
52 characters long description:
Quickly and easily migrate your website to Bluehost.

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
There were no executable files found in this plugin20,328 lines of code in 106 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript22,1323,36812,332
PHP942,0454,5037,546
CSS22214416
XML13027
SVG7007

PHP code Passed 2 tests

A brief analysis 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.30
Average class complexity11.01
▷ Minimum class complexity1.00
▷ Maximum class complexity165.00
Average method complexity2.15
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces13
Interfaces6
Traits0
Classes71
▷ Abstract classes11.41%
▷ Concrete classes7098.59%
▷ Final classes22.86%
Methods668
▷ Static methods9113.62%
▷ Public methods62293.11%
▷ Protected methods223.29%
▷ Private methods243.59%
Functions56
▷ Named functions2442.86%
▷ Anonymous functions3257.14%
Constants29
▷ Global constants1241.38%
▷ Class constants1758.62%
▷ Public constants17100.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
There are no PNG files in this plugin