94% import-xml-csv-listings-to-inventor-wp

Code Review | Import Listings into Inventor WP

WordPress plugin Import Listings into Inventor WP scored 94% from 54 tests.

About plugin

  • Plugin page: import-xml-csv-li...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.0-5.8
  • WordPress version: 5.8.1
  • First release: Aug 26, 2016
  • Latest release: Jul 15, 2021
  • Number of updates: 27
  • Update frequency: every 66.4 days
  • Top authors: WPAllImport (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 2,062 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.32MB] [CPU: ▼133.93ms] Passed 4 tests

An overview of server-side resources used by Import Listings into Inventor WP
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.25 ▲0.5339.78 ▲15.32
Dashboard /wp-admin3.41 ▲0.3649.99 ▲5.61
Posts /wp-admin/edit.php3.46 ▲0.3549.98 ▲4.62
Add New Post /wp-admin/post-new.php5.71 ▲0.2795.52 ▼547.37
Media Library /wp-admin/upload.php3.29 ▲0.2936.63 ▲1.43

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Import Listings into Inventor WP
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,808 ▲21216.15 ▲0.058.26 ▲1.2855.96 ▲11.98
Dashboard /wp-admin3,018 ▲846.04 ▲0.13136.06 ▼8.81108.21 ▼3.65
Posts /wp-admin/edit.php2,816 ▲772.70 ▲0.0271.22 ▲6.01101.81 ▲12.37
Add New Post /wp-admin/post-new.php1,648 ▲15021.67 ▲2.83259.70 ▼102.24117.93 ▲8.96
Media Library /wp-admin/upload.php1,881 ▲715.01 ▼0.00142.00 ▼18.28115.58 ▼2.40

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

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
Even though everything seems fine, this is not an exhaustive test

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
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/import-xml-csv-listings-to-inventor-wp/inventorwp-add-on.php on line 36
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/import-xml-csv-listings-to-inventor-wp/inventorwp-add-on.php on line 14
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/import-xml-csv-listings-to-inventor-wp/inventorwp-add-on.php on line 14
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/import-xml-csv-listings-to-inventor-wp/inventorwp-add-on.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_row() on null in wp-content/plugins/import-xml-csv-listings-to-inventor-wp/inventorwp-add-on.php:39

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Tags: Please add at least on tag
You can take inspiration from this readme.txt

import-xml-csv-listings-to-inventor-wp/inventorwp-add-on.php 92% from 13 tests

The entry point to "Import Listings into Inventor WP" version 1.1.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("import-xml-csv-listings-to-inventor-wp.php" instead of "inventorwp-add-on.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected3,822 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP28326243,778
CSS1202241
Markdown1203

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity204.00
▷ Minimum class complexity204.00
▷ Maximum class complexity204.00
Average method complexity5.14
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods49
▷ Static methods00.00%
▷ Public methods49100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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 files were detected