79% fg-drupal-to-wp

Code Review | FG Drupal to WordPress

WordPress plugin FG Drupal to WordPress scored79%from 54 tests.

About plugin

  • Plugin page: fg-drupal-to-wp
  • Plugin version: 3.65.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.4.1
  • WordPress version: 6.3.1
  • First release: Sep 5, 2016
  • Latest release: Nov 28, 2023
  • Number of updates: 364
  • Update frequency: every 7.3 days
  • Top authors: Kerfred (100%)

Code review

54 tests

User reviews

97 reviews

Install metrics

1,000+ active /116,700 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.91MB] [CPU: ▲3.43ms] Passed 4 tests

Analyzing server-side resources used by FG Drupal to WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.38 ▲0.9242.84 ▲0.35
Dashboard /wp-admin4.21 ▲0.9151.73 ▼0.14
Posts /wp-admin/edit.php4.27 ▲0.9154.37 ▲9.02
Add New Post /wp-admin/post-new.php6.80 ▲0.9195.19 ▲5.02
Media Library /wp-admin/upload.php4.14 ▲0.9140.71 ▲8.49

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 44 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for FG Drupal to WordPress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.34 ▲0.021.65 ▼0.0638.72 ▼5.43
Dashboard /wp-admin2,189 ▲95.63 ▼0.0593.93 ▼8.6142.99 ▲0.59
Posts /wp-admin/edit.php2,097 ▼61.96 ▲0.0139.64 ▲1.6636.56 ▼0.38
Add New Post /wp-admin/post-new.php1,529 ▼623.37 ▼1.88657.04 ▲1.4953.55 ▼20.19
Media Library /wp-admin/upload.php1,400 ▼04.22 ▼0.0896.09 ▲1.3141.06 ▲2.26

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/fg-drupal-to-wp/admin/partials/progress-bar.php
    • > /wp-content/plugins/fg-drupal-to-wp/admin/partials/help-options.tpl.php
  • 22× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'FG_Drupal_to_WordPress_DebugInfo' not found in wp-content/plugins/fg-drupal-to-wp/admin/partials/debug-info.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/fg-drupal-to-wp/admin/partials/ftp-settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/fg-drupal-to-wp/admin/partials/help-options.tpl.php:67
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/fg-drupal-to-wp/admin/partials/help-instructions.tpl.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/fg-drupal-to-wp/admin/partials/tabs.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/fg-drupal-to-wp/admin/partials/paypal-donate.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/fg-drupal-to-wp/admin/partials/logger.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'FG_Drupal_to_WordPress_Download_FTP' not found in wp-content/plugins/fg-drupal-to-wp/admin/class-fg-drupal-to-wp-ftp.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/fg-drupal-to-wp/admin/partials/database-settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/fg-drupal-to-wp/admin/partials/after-migration.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: importer, migrator, internationalization, drupal, wordpress...

fg-drupal-to-wp/fg-drupal-to-wp.php Passed 13 tests

"FG Drupal to WordPress" version 3.65.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
86 characters long description:
A plugin to migrate articles, pages, categories, tags, images from Drupal to WordPress

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
No dangerous file extensions were detected5,242 lines of code in 39 files:
LanguageFilesBlank linesComment linesLines of code
PHP367411,9544,034
PO File1424825633
JavaScript163141454
CSS114121

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity37.60
▷ Minimum class complexity1.00
▷ Maximum class complexity445.00
Average method complexity3.83
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods194
▷ Static methods94.64%
▷ Public methods12865.98%
▷ Protected methods31.55%
▷ Private methods6332.47%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants583.33%
▷ Class constants116.67%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected