Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/car-demon/includes/cd-init.php+129
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
Server metrics [RAM: ▲0.42MB] [CPU: ▲16.62ms] Passed 4 tests
Analyzing server-side resources used by Car Demon
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.89 ▲0.43 | 59.28 ▲16.94 |
Dashboard /wp-admin | 3.74 ▲0.43 | 61.18 ▲10.52 |
Posts /wp-admin/edit.php | 3.78 ▲0.43 | 63.43 ▲18.69 |
Add New Post /wp-admin/post-new.php | 6.26 ▲0.38 | 184.55 ▲73.65 |
Media Library /wp-admin/upload.php | 3.67 ▲0.44 | 60.95 ▲20.31 |
Locations /wp-admin/edit-tags.php?taxonomy=vehicle_location&post_type=cars_for_sale | 3.74 | 48.29 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 3.68 | 51.63 |
Vehicle Tags /wp-admin/edit-tags.php?taxonomy=vehicle_tag&post_type=cars_for_sale | 3.61 | 54.63 |
Condition /wp-admin/edit-tags.php?taxonomy=vehicle_condition&post_type=cars_for_sale | 3.61 | 48.82 |
Settings /wp-admin/edit.php?post_type=cars_for_sale&page=car_demon_settings_options | 3.81 | 57.51 |
Add New /wp-admin/post-new.php?post_type=cars_for_sale | 3.86 | 107.81 |
Cars For Sale /wp-admin/edit.php?post_type=cars_for_sale | 3.73 | 45.20 |
Server storage [IO: ▲3.73MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 340 new files
Database: no new tables, 60 new options
New WordPress options |
---|
can_compress_scripts |
default_trade_url |
default_default_description |
default_finance_email |
default_finance_number |
default_new_sales_name |
default_hours |
default_used_sales_email |
default_used_mobile_provider |
default_new_mobile_provider |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Car Demon
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,385 ▲624 | 26.84 ▲12.34 | 170.97 ▲168.52 | 142.53 ▲40.34 |
Dashboard /wp-admin | 2,370 ▲166 | 10.81 ▲5.77 | 287.91 ▲76.56 | 186.47 ▲61.23 |
Posts /wp-admin/edit.php | 2,299 ▲210 | 9.51 ▲7.51 | 190.53 ▲81.82 | 141.66 ▲5.60 |
Add New Post /wp-admin/post-new.php | 1,653 ▲233 | 18.03 ▲0.31 | 975.53 ▲176.43 | 180.95 ▼43.12 |
Media Library /wp-admin/upload.php | 1,581 ▲199 | 12.17 ▲8.02 | 303.78 ▲115.94 | 237.19 ▲91.96 |
Locations /wp-admin/edit-tags.php?taxonomy=vehicle_location&post_type=cars_for_sale | 1,933 | 9.22 | 227.98 | 214.20 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 1,113 | 9.20 | 219.73 | 82.26 |
Vehicle Tags /wp-admin/edit-tags.php?taxonomy=vehicle_tag&post_type=cars_for_sale | 1,435 | 9.27 | 162.01 | 131.29 |
Condition /wp-admin/edit-tags.php?taxonomy=vehicle_condition&post_type=cars_for_sale | 1,435 | 9.24 | 125.92 | 211.71 |
Settings /wp-admin/edit.php?post_type=cars_for_sale&page=car_demon_settings_options | 3,733 | 9.56 | 253.66 | 288.33 |
Add New /wp-admin/post-new.php?post_type=cars_for_sale | 3,084 | 11.88 | 456.85 | 430.27 |
Cars For Sale /wp-admin/edit.php?post_type=cars_for_sale | 1,438 | 9.77 | 191.46 | 169.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 60 options in the database
- default_finance_description
- default_new_mobile_provider
- db_upgraded
- default_website
- default_show_new_prices
- widget_car_demon_random_car-widget
- default_no_used_price
- default_used_mobile_provider
- widget_car_demon_calculator-widget
- can_compress_scripts
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 16× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/car-demon/theme-files/js/lightGallery-1.6.0/dist/img/index.php
- > /wp-content/plugins/car-demon/theme-files/js/lightGallery-1.6.0/dist/js/index.php
- > /wp-content/plugins/car-demon/theme-files/js/lightGallery-1.6.0/dist/css/index.php
- > /wp-content/plugins/car-demon/theme-files/js/lightGallery-1.6.0/index.php
- > /wp-content/plugins/car-demon/theme-files/js/lightGallery-1.6.0/modules/index.php
- > /wp-content/plugins/car-demon/theme-files/js/lightGallery-1.6.0/dist/fonts/index.php
- > /wp-content/plugins/car-demon/shortcode/index.php
- > /wp-content/plugins/car-demon/theme-files/js/lightGallery-1.6.0/dist/index.php
- > /wp-content/plugins/car-demon/feeds/car-demon-xml-details.php
- > /wp-content/plugins/car-demon/feeds/car-demon-xml-list.php
- 58× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/car-demon/car-demon-forms/forms/finance/co_address.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function car_demon_query_search() in wp-content/plugins/car-demon/theme-files/search.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/car-demon/includes/create-post-types-tax.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/car-demon/car-demon-forms/forms/finance/co_living_situation_previous.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/car-demon/includes/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/car-demon/includes/shortcodes.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/car-demon/admin/cd-nag.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/car-demon/car-demon-forms/forms/finance/personal_info.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/car-demon/car-demon-forms/forms/finance/living_situation.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/car-demon/includes/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (This is a quick look at the inventory management screen. You can quickly change prices and mark vehicles sold without opening each vehicle.), #2 (Here's a glance of what you can do with Car Demon and some of it's extensions. The site you see here is using the basic Car Demon Theme.)
- Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
car-demon/car-demon.php Passed 13 tests
The main PHP file in "Car Demon" ver. 1.8.1 adds more information about the plugin and also serves as the entry point for this plugin
71 characters long description:
Car Demon is a PlugIn designed for car dealers and other vehicle sales.
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
Success! There were no dangerous files found in this plugin53,424 lines of code in 187 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 98 | 1,431 | 2,752 | 22,148 |
JavaScript | 50 | 3,670 | 1,977 | 21,056 |
CSS | 32 | 125 | 158 | 6,993 |
PO File | 1 | 1,184 | 1,948 | 2,807 |
XML | 1 | 0 | 0 | 345 |
SVG | 5 | 0 | 2 | 75 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 26.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 3.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 129 | |
▷ Static methods | 5 | 3.88% |
▷ Public methods | 106 | 82.17% |
▷ Protected methods | 23 | 17.83% |
▷ Private methods | 0 | 0.00% |
Functions | 355 | |
▷ Named functions | 355 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 7 | 70.00% |
▷ Class constants | 3 | 30.00% |
▷ Public constants | 3 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
74 PNG files occupy 1.12MB with 0.70MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
theme-files/js/lightGallery-1.6.0/dist/img/youtube-play.png | 5.06KB | 2.37KB | ▼ 53.04% |
theme-files/images/btn_prev.png | 54.94KB | 2.06KB | ▼ 96.25% |
images/car-demon-1.5.0-150x150.png | 26.70KB | 10.24KB | ▼ 61.64% |
theme-files/css/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.31KB | 0.18KB | ▼ 39.81% |
theme-files/css/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.38KB | 0.15KB | ▼ 59.69% |