78% migration-drupal-to-wp

Code Review | Migration Drupal to Wordpress

WordPress plugin Migration Drupal to Wordpress scored78%from 54 tests.

About plugin

  • Plugin page: migration-drupal-...
  • Plugin version: 0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-4.4.2
  • WordPress version: 6.3.1
  • First release: May 17, 2016
  • Latest release: May 17, 2016
  • Number of updates: 4
  • Update frequency: every 1.0 days
  • Top authors: hereticbear (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,238 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Migration Drupal to Wordpress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.54 ▲0.05
Dashboard /wp-admin3.31 ▼0.0443.39 ▼16.36
Posts /wp-admin/edit.php3.36 ▲0.0045.93 ▼8.61
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.41 ▼14.22
Media Library /wp-admin/upload.php3.23 ▲0.0033.31 ▲3.01

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Migration Drupal to Wordpress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲6513.30 ▼1.281.62 ▼0.1139.25 ▼3.31
Dashboard /wp-admin2,214 ▲264.94 ▼0.91103.19 ▲0.6584.22 ▲45.40
Posts /wp-admin/edit.php2,103 ▲141.97 ▼0.0540.82 ▼7.9234.57 ▼12.86
Add New Post /wp-admin/post-new.php1,524 ▼423.29 ▲5.00677.75 ▲45.7361.71 ▲4.46
Media Library /wp-admin/upload.php1,402 ▲144.21 ▲0.03105.63 ▼2.4385.42 ▲38.21

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/migration-drupal-to-wp/app/index.php
  • 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/migration-drupal-to-wp/app.php:44

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Donate link: Invalid URI ("")
  • Screenshots: Add images for these screenshots: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
The official readme.txt is a good inspiration

migration-drupal-to-wp/app.php 92% from 13 tests

The entry point to "Migration Drupal to Wordpress" version 0.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("migration-drupal-to-wp.php" instead of "app.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected10,136 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
CSS47247,328
JavaScript45831991,612
PHP420349908
SVG100288

PHP code Passed 2 tests

An overview 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 complexity103.00
▷ Minimum class complexity103.00
▷ Maximum class complexity103.00
Average method complexity6.37
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin