62% intelligent-importer

Code Review | Catalog Importer, Scraper & Crawler

WordPress plugin Catalog Importer, Scraper & Crawler scored62%from 54 tests.

About plugin

  • Plugin page: intelligent-importer
  • Plugin version: 5.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0-5.8
  • WordPress version: 6.3.1
  • First release: Aug 29, 2021
  • Latest release: Sep 23, 2022
  • Number of updates: 21
  • Update frequency: every 20.1 days
  • Top authors: idiatech (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

60+ active /1,553 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▲0.72ms] Passed 4 tests

A check of server-side resources used by Catalog Importer, Scraper & Crawler
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0838.54 ▼4.71
Dashboard /wp-admin3.39 ▲0.0958.52 ▲5.88
Posts /wp-admin/edit.php3.44 ▲0.0852.15 ▲0.78
Add New Post /wp-admin/post-new.php5.97 ▲0.08100.04 ▲9.48
Media Library /wp-admin/upload.php3.32 ▲0.0839.88 ▲0.91
Catalog Importer, Scraper & Crawler /wp-admin/tools.php?page=megaimporter3.2633.31

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 12 new files
Database: 1 new table, 7 new options
New tables
wp_megaimporter_concurrents
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
megaimporter_clefacces
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Catalog Importer, Scraper & Crawler
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.25 ▼0.101.90 ▲0.0543.24 ▲2.04
Dashboard /wp-admin2,202 ▲285.62 ▼0.0395.91 ▲4.1944.00 ▲2.65
Posts /wp-admin/edit.php2,107 ▲41.97 ▼0.0140.22 ▼2.9336.46 ▼2.33
Add New Post /wp-admin/post-new.php1,531 ▲323.08 ▲0.06673.25 ▼2.7262.98 ▲10.44
Media Library /wp-admin/upload.php1,395 ▼84.20 ▲0.02102.02 ▼9.1646.11 ▼1.00
Catalog Importer, Scraper & Crawler /wp-admin/tools.php?page=megaimporter8841.9927.3630.50

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_megaimporter_concurrents
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • megaimporter_clefacces
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/tools.php?page=megaimporter
    • > Notice in wp-content/plugins/intelligent-importer/megaimporter.php+109
    Undefined index: page2
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=megaimporter
    • > Notice in wp-content/plugins/intelligent-importer/megaimporter.php+194
    Undefined index: testExtraction

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
Almost there! Just fix the following items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/intelligent-importer/grl.php
    • > /wp-content/plugins/intelligent-importer/bat.php
  • 6× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Undefined variable: testExtraction in wp-content/plugins/intelligent-importer/grl.php on line 7
    • > PHP Notice
      Undefined index: testExtraction in wp-content/plugins/intelligent-importer/bat.php on line 14
    • > PHP Notice
      Undefined index: site_url in wp-content/plugins/intelligent-importer/bat.php on line 15
    • > PHP Notice
      Undefined index: HTTP_USER_AGENT in wp-content/plugins/intelligent-importer/bat.php on line 2
    • > PHP Notice
      Undefined index: HTTP_USER_AGENT in wp-content/plugins/intelligent-importer/grl.php on line 11
    • > PHP Notice
      Undefined index: site_url in wp-content/plugins/intelligent-importer/grl.php on line 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

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === intelligent-importer === )
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4 in intelligent-importer/assets to your readme.txt
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

intelligent-importer/megaimporter.php 92% from 13 tests

The main PHP file in "Catalog Importer, Scraper & Crawler" ver. 5.1.3 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("intelligent-importer.php" instead of "megaimporter.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,701 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP64821891,611
HTML1022090

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity18.50
▷ Minimum class complexity2.00
▷ Maximum class complexity35.00
Average method complexity4.89
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods9
▷ Static methods111.11%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions42
▷ Named functions42100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/societe.png4.89KB1.95KB▼ 60.04%