84% import-xml-csv-listings-to-listable-theme

Code Review | Import Listings into the Listable Theme

WordPress plugin Import Listings into the Listable Theme scored 84% from 54 tests.

About plugin

  • Plugin page: import-xml-csv-li...
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.0-6.3
  • WordPress version: 6.3.1
  • First release: Jul 15, 2016
  • Latest release: Aug 10, 2023
  • Number of updates: 39
  • Update frequency: every 66.3 days
  • Top authors: WPAllImport (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 6,384 total downloads

Benchmarks

Plugin footprint 83% 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.26MB] [CPU: ▼3.41ms] Passed 4 tests

An overview of server-side resources used by Import Listings into the Listable Theme
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2749.38 ▲9.31
Dashboard /wp-admin3.56 ▲0.2650.09 ▼2.17
Posts /wp-admin/edit.php3.67 ▲0.3251.58 ▼2.87
Add New Post /wp-admin/post-new.php6.14 ▲0.2690.36 ▼10.17
Media Library /wp-admin/upload.php3.48 ▲0.2640.08 ▲1.58

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Import Listings into the Listable Theme
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲11313.21 ▼0.962.25 ▲0.5345.45 ▲0.83
Dashboard /wp-admin2,229 ▲414.87 ▲0.00111.40 ▲9.2240.01 ▼3.15
Posts /wp-admin/edit.php2,112 ▲232.03 ▲0.0236.17 ▼8.3036.46 ▼10.61
Add New Post /wp-admin/post-new.php1,551 ▲1923.53 ▲0.23741.85 ▲90.4152.84 ▼3.88
Media Library /wp-admin/upload.php1,414 ▲294.24 ▲0.1097.98 ▼2.5643.02 ▼0.21

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/import-xml-csv-listings-to-listable-theme/listable-add-on.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: job directory, import directory, import listings, import listings directory, import listable theme...

import-xml-csv-listings-to-listable-theme/listable-add-on.php 92% from 13 tests

This is the main PHP file of "Import Listings into the Listable Theme" version 1.0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("import-xml-csv-listings-to-listable-theme.php" instead of "listable-add-on.php")

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
Good job! No executable or dangerous file extensions detected1,349 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP24051251,334
Markdown12015

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.67
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%
Functions6
▷ Named functions6100.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
There are no PNG files in this plugin