72% multidealer

Code Review | Car Dealer, Campers, Motorhome, Trucks, Bikes and more Plugin Multi Dealer

WordPress plugin Car Dealer, Campers, Motorhome, Trucks, Bikes and more Plugin Multi Dealer scored72%from 54 tests.

About plugin

  • Plugin page: multidealer
  • Plugin version: 2.06
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Sep 29, 2017
  • Latest release: Oct 18, 2023
  • Number of updates: 492
  • Update frequency: every 4.5 days
  • Top authors: sminozzi (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

50+ active /10,919 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲1.11MB] [CPU: ▲10.40ms] Passed 4 tests

A check of server-side resources used by Car Dealer, Campers, Motorhome, Trucks, Bikes and more Plugin Multi Dealer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.45 ▲0.9853.93 ▲18.39
Dashboard /wp-admin4.47 ▲1.1365.35 ▲5.52
Posts /wp-admin/edit.php4.53 ▲1.1759.64 ▲15.44
Add New Post /wp-admin/post-new.php7.08 ▲1.1997.05 ▲2.25
Media Library /wp-admin/upload.php4.41 ▲1.1864.64 ▲31.13
Makes /wp-admin/admin.php?page=md-makes4.3846.55
Settings /wp-admin/admin.php?page=md-settings4.3845.49
Locations /wp-admin/admin.php?page=md-locations4.3846.02
Fields Table /wp-admin/admin.php?page=fields-table4.3846.69
Dashboard /wp-admin/admin.php?page=multi_dealer_plugin4.4144.03
Go Pro /wp-admin/admin.php?page=multidealer_my-custom-submenu-page34.3853.28
Settings2 /wp-admin/admin.php?page=md_settings4.3855.01
MultiDealer Designer /wp-admin/themes.php?page=Multi_Dealer_Designer4.5344.43
Products Table /wp-admin/admin.php?page=products-table4.3944.78
MultiDealer Designer /wp-admin/admin.php?page=md-designer4.3847.63

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 156 new files
Database: no new tables, 15 new options
New WordPress options
widget_searchwidget
bill_last_feedback
widget_theysaidso_widget
widget_featuredwidget
theysaidso_admin_options
db_upgraded
widget_recentwidget
MultiDealer_activated
can_compress_scripts
bill_show_warnings
...

Browser metrics Passed 4 tests

An overview of browser requirements for Car Dealer, Campers, Motorhome, Trucks, Bikes and more Plugin Multi Dealer
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,100 ▲33915.72 ▲1.179.77 ▲8.1842.50 ▲0.75
Dashboard /wp-admin2,333 ▲1566.18 ▲0.5489.90 ▲0.7091.73 ▲47.67
Posts /wp-admin/edit.php2,257 ▲1572.98 ▲1.0148.76 ▲12.1355.32 ▲17.77
Add New Post /wp-admin/post-new.php1,806 ▲28023.67 ▲0.70582.32 ▼72.0328.82 ▼21.08
Media Library /wp-admin/upload.php1,531 ▲1315.25 ▲1.0994.33 ▼9.4987.04 ▲38.74
Makes /wp-admin/admin.php?page=md-makes2,4664.1648.4155.54
Settings /wp-admin/admin.php?page=md-settings2,1343.6140.6644.41
Locations /wp-admin/admin.php?page=md-locations2,2023.9847.3970.71
Fields Table /wp-admin/admin.php?page=fields-table2,3154.4158.4266.14
Dashboard /wp-admin/admin.php?page=multi_dealer_plugin1,3272.7939.2473.07
Go Pro /wp-admin/admin.php?page=multidealer_my-custom-submenu-page31,1993.0861.7366.50
Settings2 /wp-admin/admin.php?page=md_settings1,3802.6836.9349.47
MultiDealer Designer /wp-admin/themes.php?page=Multi_Dealer_Designer9242.4431.8026.04
Products Table /wp-admin/admin.php?page=products-table1,9884.0450.6331.31
MultiDealer Designer /wp-admin/admin.php?page=md-designer10,18126.13790.80159.20

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 15 options in the database
    • makes_children
    • widget_recentwidget
    • widget_searchwidget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • MultiDealer_recipientEmail
    • meta_boxes
    • widget_theysaidso_widget
    • bill_show_warnings
    • ...

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/multidealer/includes/checkup/class_bill_catch_errors.php
    • > /wp-content/plugins/multidealer/includes/checkup/bill_class_diagnose.php
    • > /wp-content/plugins/multidealer/dashboard/fixconfig.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'multidealer\\WP\\Settings\\Page' not found in wp-content/plugins/multidealer/settings/options/plugin_options_tabbed.php:7

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=multidealer_my-custom-submenu-page3
    • > Network (severe)
    http://multidealerplugin.com/premium/ - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=multidealer_my-custom-submenu-page3
    • > Javascript (severe) in unknown
    http://multidealerplugin.com/wp-content/themes/kardealer/js/functions.js?ver=20160816 216:37 Uncaught TypeError: Cannot read properties of undefined (reading 'top')
    • > GET request to /wp-admin/admin.php?page=multidealer_my-custom-submenu-page3
    • > Network (severe)
    https://multidealerplugin.com/wp-admin/admin-ajax.php?action=stopbadbots_grava_fingerprint&fingerprint=%23Europe%2FBucharest%23-180%23linux%20x86_64%23Linux%230%2Cfalse%2Cfalse - Failed to load resource: the server responded with a status of 400 (Bad Request)
    • > GET request to /wp-admin/admin.php?page=md-designer
    • > Security (warning) in unknown
    /?customize_changeset_uuid=c3d3b3cf-1fac-437f-b937-0e2337683060&customize_theme=twentytwentyone&customize_messenger_channel=preview-0 - An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
  • Screenshots: These screenshots do not have images: #1 (Front products Page), #2 (Front Products Page Template List View), #3 (Product Table Page), #4 (Front Product Post Page), #5 (Settings Page), #6 (Fields Management)
You can take inspiration from this readme.txt

multidealer/multidealer.php Passed 13 tests

The primary PHP file in "Car Dealer, Campers, Motorhome, Trucks, Bikes and more Plugin Multi Dealer" version 2.06 is used by WordPress to initiate all plugin functionality
105 characters long description:
Dealers and Real Estate Brokers can manage, list and sell products online quickly by create custom fieds.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin15,890 lines of code in 81 files:
LanguageFilesBlank linesComment linesLines of code
PHP424208228,093
CSS13841623,054
PO File57209201,730
JavaScript142111861,677
SVG4001,252
HTML354084

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity9.52
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity3.10
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes25
▷ Abstract classes00.00%
▷ Concrete classes25100.00%
▷ Final classes00.00%
Methods102
▷ Static methods109.80%
▷ Public methods10098.04%
▷ Protected methods00.00%
▷ Private methods21.96%
Functions109
▷ Named functions10899.08%
▷ Anonymous functions10.92%
Constants100
▷ Global constants100100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
36 PNG files occupy 1.48MB with 0.81MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-6.png116.42KB38.73KB▼ 66.73%
assets/images/system_health.png1.42KB0.80KB▼ 43.88%
assets/images/oktick.png41.43KB11.19KB▼ 72.99%
assets/jquery/images/ui-bg_glass_55_fbf9ee_1x400.png0.33KB0.12KB▼ 62.09%
assets/images/support.png1.76KB1.28KB▼ 27.27%