83% auto-listings

Code Review | Auto Listings - Car Listings & Car Dealership Plugin for WordPress

WordPress plugin Auto Listings - Car Listings & Car Dealership Plugin for WordPress scored83%from 54 tests.

About plugin

  • Plugin page: auto-listings
  • Plugin version: 2.6.5
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.2.2
  • WordPress version: 6.3.1
  • First release: Jun 6, 2017
  • Latest release: Jun 1, 2023
  • Number of updates: 130
  • Update frequency: every 16.8 days
  • Top authors: autolistings (73.85%)rilwis (26.92%)

Code review

54 tests

User reviews

30 reviews

Install metrics

3,000+ active /87,773 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.09MB] [CPU: ▼9.24ms] Passed 4 tests

Server-side resources used by Auto Listings - Car Listings & Car Dealership Plugin for WordPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1043.46 ▼1.48
Dashboard /wp-admin3.40 ▲0.0648.06 ▼16.08
Posts /wp-admin/edit.php3.52 ▲0.1647.75 ▲0.31
Add New Post /wp-admin/post-new.php5.98 ▲0.1085.78 ▼19.72
Media Library /wp-admin/upload.php3.32 ▲0.0937.88 ▲0.45

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 236 new files
Database: no new tables, 10 new options
New WordPress options
db_upgraded
auto_listings_options
widget_auto-listings-location
widget_auto-listings-contact-form
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_auto-listings-features
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Auto Listings - Car Listings & Car Dealership Plugin for WordPress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲5714.35 ▼0.151.85 ▼0.0947.71 ▲3.34
Dashboard /wp-admin2,212 ▲325.63 ▲0.0191.59 ▼9.9542.07 ▼0.08
Posts /wp-admin/edit.php2,114 ▲171.95 ▼0.2040.08 ▲0.6837.02 ▼2.10
Add New Post /wp-admin/post-new.php1,550 ▲2418.09 ▼4.96625.15 ▼32.8983.40 ▲14.77
Media Library /wp-admin/upload.php1,408 ▲84.21 ▲0.0498.87 ▼9.1144.37 ▼0.52

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 10 options in the database
    • db_upgraded
    • auto_listings_options
    • can_compress_scripts
    • widget_auto-listings-contact-form
    • widget_auto-listings-location
    • widget_theysaidso_widget
    • widget_auto-listings-features
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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 take a closer look at the following
  • 56× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/auto-listings/src/Listing/fields/04-gallery.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/auto-listings/vendor/meta-box/mb-frontend-submission/templates/post/thumbnail.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/auto-listings/vendor/meta-box/mb-frontend-submission/templates/post/title.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/auto-listings/src/Admin/settings/04-listing-setup.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_unslash() in wp-content/plugins/auto-listings/vendor/meta-box/mb-frontend-submission/templates/confirmation.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/auto-listings/src/Listing/fields/02-details.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/auto-listings/src/Admin/settings/15-sidebar-themes.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/auto-listings/vendor/meta-box/mb-frontend-submission/templates/post/date.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'eLightUp\\PluginSearch\\Base' not found in wp-content/plugins/auto-listings/vendor/elightup/plugin-search/src/Search.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/auto-listings/src/Admin/settings/02-general-map.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: A description for screenshot #5 is required in auto-listings/assets to your readme.txt
  • Screenshots: Screenshot #6 (Auto Listings settings pages) image missing
The official readme.txt might help

auto-listings/auto-listings.php 85% from 13 tests

The entry point to "Auto Listings - Car Listings & Car Dealership Plugin for WordPress" version 2.6.5 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")

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 plugin18,875 lines of code in 210 files:
LanguageFilesBlank linesComment linesLines of code
PHP1751,8882,8779,880
SVG4033,207
JavaScript135443263,146
CSS16164582,089
HTML1634533
XML161420

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity10.66
▷ Minimum class complexity1.00
▷ Maximum class complexity62.00
Average method complexity2.73
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces20
Interfaces0
Traits0
Classes83
▷ Abstract classes11.20%
▷ Concrete classes8298.80%
▷ Final classes00.00%
Methods462
▷ Static methods6313.64%
▷ Public methods33873.16%
▷ Protected methods5211.26%
▷ Private methods7215.58%
Functions133
▷ Named functions11888.72%
▷ Anonymous functions1511.28%
Constants11
▷ Global constants1090.91%
▷ Class constants19.09%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 compressed PNG files occupy 0.00MB
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/multiple-dealers-icon.png0.74KB0.74KB0.00%
assets/images/regcheck-api-icon.png2.05KB2.05KB0.00%
assets/images/frontend-icon.png0.73KB0.73KB0.00%
assets/images/dlva-search-icon.png0.93KB0.93KB0.00%