84% basepress-migration-tools

Code Review | WordPress BasePress Migration Tools

WordPress plugin WordPress BasePress Migration Tools scored84%from 54 tests.

About plugin

  • Plugin page: basepress-migrati...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.7
  • WordPress version: 6.3.1
  • First release: Aug 5, 2021
  • Latest release: Aug 5, 2021
  • Number of updates: 2
  • Update frequency: every 13.0 days
  • Top authors: codesavory (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /692 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.22MB] [CPU: ▼0.39ms] Passed 4 tests

Analyzing server-side resources used by WordPress BasePress Migration Tools
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2346.11 ▼1.19
Dashboard /wp-admin3.53 ▲0.2249.64 ▼2.30
Posts /wp-admin/edit.php3.64 ▲0.2850.93 ▲2.68
Add New Post /wp-admin/post-new.php6.11 ▲0.2296.85 ▼0.75
Media Library /wp-admin/upload.php3.45 ▲0.2237.56 ▲3.10
Migration Tools /wp-admin/admin.php?page=basepress_migration3.3933.39

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for WordPress BasePress Migration Tools
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.26 ▼1.141.82 ▼0.2847.58 ▲1.64
Dashboard /wp-admin2,206 ▲185.90 ▲0.02108.97 ▼9.4643.36 ▼3.74
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0438.69 ▼9.4335.82 ▲1.81
Add New Post /wp-admin/post-new.php1,514 ▼017.60 ▲0.05691.03 ▲52.7358.26 ▲8.01
Media Library /wp-admin/upload.php1,382 ▼34.22 ▲0.02107.58 ▲7.1444.05 ▼4.32
Migration Tools /wp-admin/admin.php?page=basepress_migration9292.0722.9630.73

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/admin.php?page=basepress_migration
    • > User deprecated in wp-includes/functions.php+5737
    Function WP_User_Query was called with an argument that is deprecated since version 5.9.0! who is deprecated. Use capability instead.

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: knowledgebase, docs, documentation, migration, knowledge base...

basepress-migration-tools/basepress-migration.php 85% from 13 tests

The main file in "WordPress BasePress Migration Tools" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("basepress-migration-tools.php" instead of "basepress-migration.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 plugin1,848 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP32844061,152
JavaScript3105161488
CSS1391208

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity64.67
▷ Minimum class complexity30.00
▷ Maximum class complexity89.00
Average method complexity5.33
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods45
▷ Static methods00.00%
▷ Public methods1737.78%
▷ Protected methods00.00%
▷ Private methods2862.22%
Functions5
▷ Named functions00.00%
▷ Anonymous functions5100.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
No PNG images were found in this plugin