89% inventory-presser

Code Review | Inventory Presser - Car Dealer Listings

WordPress plugin Inventory Presser - Car Dealer Listings scored89%from 54 tests.

About plugin

  • Plugin page: inventory-presser
  • Plugin version: 14.11.4
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.3.2
  • WordPress version: 6.3.1
  • First release: Jan 14, 2021
  • Latest release: Oct 13, 2023
  • Number of updates: 82
  • Update frequency: every 12.5 days
  • Top authors: fridaysystems (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /5,338 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲3.22MB] [CPU: ▲13.38ms] 75% from 4 tests

This is a short check of server-side resources used by Inventory Presser - Car Dealer Listings
It is recommended to improve the following
  • RAM: You should keep total memory usage under 10MB (currently 11.21MB on /wp-admin/post-new.php?post_type=inventory_vehicle)
PageMemory (MB)CPU Time (ms)
Home /6.73 ▲3.2652.66 ▲14.54
Dashboard /wp-admin6.52 ▲3.2157.70 ▲10.11
Posts /wp-admin/edit.php6.63 ▲3.2762.36 ▲16.37
Add New Post /wp-admin/post-new.php9.74 ▲3.85100.61 ▲12.49
Media Library /wp-admin/upload.php6.37 ▲3.1453.12 ▲20.78
All Vehicles /wp-admin/edit.php?post_type=inventory_vehicle6.4956.47
Options /wp-admin/edit.php?post_type=inventory_vehicle&page=dealership-options6.3445.49
Locations /wp-admin/edit-tags.php?taxonomy=location&post_type=inventory_vehicle6.3748.40
Add New /wp-admin/post-new.php?post_type=inventory_vehicle11.21136.48

Server storage [IO: ▲11.17MB] [DB: ▲0.05MB] Passed 3 tests

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 441 new files
Database: no new tables, 32 new options
New WordPress options
widget__invp_map
widget__invp_address
widget__invp_slick
colors_children
model_children
model_year_children
fuel_children
widget__invp_kbb
transmission_children
db_upgraded
...

Browser metrics Passed 4 tests

Checking browser requirements for Inventory Presser - Car Dealer Listings
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲8214.38 ▲0.091.65 ▲0.1342.37 ▲0.05
Dashboard /wp-admin2,242 ▲655.92 ▲0.31109.89 ▲23.1240.08 ▼1.52
Posts /wp-admin/edit.php2,151 ▲513.13 ▲1.1150.50 ▲14.9031.69 ▼5.03
Add New Post /wp-admin/post-new.php1,694 ▲16625.78 ▲2.94686.35 ▲4.3638.23 ▼17.02
Media Library /wp-admin/upload.php1,445 ▲515.33 ▲1.17106.45 ▲8.1243.34 ▲1.59
All Vehicles /wp-admin/edit.php?post_type=inventory_vehicle1,2662.9247.5428.33
Options /wp-admin/edit.php?post_type=inventory_vehicle&page=dealership-options1,7922.7742.7133.73
Locations /wp-admin/edit-tags.php?taxonomy=location&post_type=inventory_vehicle1,7352.7943.0132.20
Add New /wp-admin/post-new.php?post_type=inventory_vehicle6,34023.36891.0035.05

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 19 options in the database
    • type_children
    • style_children
    • theysaidso_admin_options
    • availability_children
    • model_children
    • cylinders_children
    • fuel_children
    • can_compress_scripts
    • widget_theysaidso_widget
    • condition_children
    • ...

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: car dealer, dealership, lot, vehicle, inventory management...

inventory-presser/inventory-presser.php 92% from 13 tests

The primary PHP file in "Inventory Presser - Car Dealer Listings" version 14.11.4 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected123,094 lines of code in 302 files:
LanguageFilesBlank linesComment linesLines of code
HTML207,51211145,507
JavaScript14011,20512,80343,597
JSON100017,821
PHP722,0355,61311,829
CSS391491951,879
SVG7001,331
Markdown63830825
LESS818070305

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity24.37
▷ Minimum class complexity1.00
▷ Maximum class complexity160.00
Average method complexity4.04
▷ Minimum method complexity1.00
▷ Maximum method complexity44.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes63
▷ Abstract classes23.17%
▷ Concrete classes6196.83%
▷ Final classes00.00%
Methods477
▷ Static methods10020.96%
▷ Public methods42789.52%
▷ Protected methods296.08%
▷ Private methods214.40%
Functions68
▷ Named functions5986.76%
▷ Anonymous functions913.24%
Constants32
▷ Global constants39.38%
▷ Class constants2990.62%
▷ Public constants29100.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
11 PNG files occupy 0.22MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/carfax-advantage-dealer.png34.23KB12.09KB▼ 64.67%
js/leaflet/images/marker-icon-2x.png2.41KB2.52KB0.00%
images/carfax-show-me-blue-oval.png96.31KB28.67KB▼ 70.23%
js/leaflet/images/marker-icon.png1.43KB1.55KB0.00%
js/leaflet/images/layers-2x.png1.23KB1.67KB0.00%