94% bit-migrate-wp

Code Review | Bit Migrate WP

WordPress plugin Bit Migrate WP scored 94% from 54 tests.

About plugin

  • Plugin page: bit-migrate-wp
  • Plugin version: 0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.6
  • WordPress version: 5.8.1
  • First release: Jul 5, 2013
  • Latest release: Jul 5, 2013
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: doublebit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 911 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼149.08ms] Passed 4 tests

This is a short check of server-side resources used by Bit Migrate WP
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0129.12 ▲3.52
Dashboard /wp-admin3.07 ▲0.0134.11 ▼9.70
Posts /wp-admin/edit.php3.13 ▲0.0234.63 ▲0.89
Add New Post /wp-admin/post-new.php5.44 ▼0.0179.81 ▼586.90
Media Library /wp-admin/upload.php3.02 ▲0.0124.73 ▼0.60

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Bit Migrate WP
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,666 ▲6515.67 ▲0.158.72 ▲3.3174.75 ▼4.25
Dashboard /wp-admin2,933 ▲376.00 ▼0.17125.42 ▼3.70170.93 ▼6.20
Posts /wp-admin/edit.php2,740 ▼33.22 ▼0.0262.42 ▼3.50139.61 ▼1.28
Add New Post /wp-admin/post-new.php3,704 ▼10318.65 ▼0.17402.61 ▼72.22153.51 ▼9.26
Media Library /wp-admin/upload.php1,752 ▲35.54 ▼0.02143.64 ▼3.18187.71 ▼3.15

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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 add_action() in wp-content/plugins/bit-migrate-wp/BitMigrateWP.php:81

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

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
4 plugin tags: migrate, permalinks, urls, move

bit-migrate-wp/BitMigrateWP.php 92% from 13 tests

The principal PHP file in "Bit Migrate WP" v. 0.9 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("bit-migrate-wp.php" instead of "BitMigrateWP.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin66 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16966

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.54
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin