84% advance-importer

Code Review | Advance Importer

WordPress plugin Advance Importer scored84%from 54 tests.

About plugin

  • Plugin page: advance-importer
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.0.2
  • WordPress version: 6.3.1
  • First release: Oct 5, 2022
  • Latest release: Oct 5, 2022
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: coder618 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /608 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.36ms] Passed 4 tests

An overview of server-side resources used by Advance Importer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0738.24 ▼3.08
Dashboard /wp-admin3.37 ▲0.0751.12 ▼3.35
Posts /wp-admin/edit.php3.42 ▲0.0654.00 ▲1.15
Add New Post /wp-admin/post-new.php5.97 ▲0.0887.19 ▼7.81
Media Library /wp-admin/upload.php3.30 ▲0.0636.21 ▼3.18
Advance Importer /wp-admin/options-general.php?page=advance-importer3.2635.53

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Advance Importer
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲4714.30 ▲0.101.56 ▼0.3443.73 ▲3.94
Dashboard /wp-admin2,203 ▲265.57 ▼0.0490.55 ▼1.0738.13 ▼8.37
Posts /wp-admin/edit.php2,108 ▲81.99 ▼0.0139.57 ▼0.9134.96 ▼3.06
Add New Post /wp-admin/post-new.php1,533 ▼1223.34 ▼0.06668.48 ▼28.3653.38 ▼8.53
Media Library /wp-admin/upload.php1,408 ▲84.29 ▲0.0496.25 ▼12.6244.14 ▼4.67
Advance Importer /wp-admin/options-general.php?page=advance-importer7992.0529.1328.24

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
The following issues need your attention
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/advance-importer/templates/export-confirmation.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advance-importer/admin-page.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/advance-importer/templates/meta-input-form.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advance-importer/admin-page.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side


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
Attributes that need to be fixed:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

advance-importer/advance-importer.php 92% from 13 tests

"Advance Importer" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.0" instead of "4.5")

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
Success! There were no dangerous files found in this plugin397 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity32.00
▷ Minimum class complexity5.00
▷ Maximum class complexity59.00
Average method complexity5.43
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods1178.57%
▷ Protected methods321.43%
▷ Private methods00.00%
▷ Named functions2100.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
PNG images were not found in this plugin