84% alt-import-drupal

Code Review | AlT Import Drupal

WordPress plugin AlT Import Drupal scored84%from 54 tests.

About plugin

  • Plugin page: alt-import-drupal
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.8
  • WordPress version: 6.3.1
  • First release: Dec 1, 2015
  • Latest release: Jan 5, 2017
  • Number of updates: 7
  • Update frequency: every 83.7 days
  • Top authors: AlTi5 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /5,677 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

This is a short check of server-side resources used by AlT Import Drupal
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.27 ▲2.98
Dashboard /wp-admin3.31 ▲0.0150.26 ▲1.28
Posts /wp-admin/edit.php3.36 ▲0.0147.53 ▼7.17
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.92 ▼10.90
Media Library /wp-admin/upload.php3.24 ▲0.0136.43 ▲0.29
Importer drupal /wp-admin/tools.php?page=importer_wp3.2129.72

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for AlT Import Drupal
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.27 ▼0.001.72 ▼0.0142.34 ▼1.49
Dashboard /wp-admin2,202 ▲255.63 ▲0.0388.72 ▼5.5638.93 ▼4.00
Posts /wp-admin/edit.php2,107 ▲72.00 ▲0.0436.71 ▼4.0333.85 ▼9.03
Add New Post /wp-admin/post-new.php1,531 ▼622.89 ▲4.78651.01 ▲10.3656.55 ▼18.67
Media Library /wp-admin/upload.php1,398 ▲14.11 ▼0.0798.83 ▼4.0741.28 ▼1.32
Importer drupal /wp-admin/tools.php?page=importer_wp7921.9928.6935.48

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means 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
The following issues need your attention
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/alt-import-drupal/import-page.php:47
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/alt-import-drupal/import-wp.php:18

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


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (BO interface) image missing
You can take inspiration from this readme.txt

alt-import-drupal/import-wp.php 92% from 13 tests

"AlT Import Drupal" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("alt-import-drupal.php" instead of "import-wp.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin87 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods4100.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin