Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.14MB] [CPU: ▼1.00ms] Passed 4 tests
Server-side resources used by CarDealerPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.15 | 44.59 ▼1.43 |
Dashboard /wp-admin | 3.43 ▲0.13 | 48.36 ▲2.75 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 49.21 ▲1.34 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 89.65 ▼6.67 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 37.08 ▲4.71 |
Help /wp-admin/admin.php?page=cardealerpress_help | 3.37 | 39.98 |
Admin Settings /wp-admin/admin.php?page=cardealerpress_admin | 3.40 | 39.27 |
Server storage [IO: ▲1.76MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 195 new files
Database: 4 new tables, 8 new options
New tables |
---|
cdp_inventory_import_1 |
cdp_inventory_1 |
cdp_data |
cdp_companies |
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
cardealerpress_settings |
theysaidso_admin_options |
cdp_requirements_checked |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for CarDealerPress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,860 ▲103 | 13.23 ▼1.14 | 1.73 ▼0.65 | 33.75 ▼18.25 |
Dashboard /wp-admin | 2,262 ▲80 | 5.82 ▼0.08 | 97.98 ▼6.30 | 89.80 ▲47.77 |
Posts /wp-admin/edit.php | 2,141 ▲52 | 2.02 ▼0.02 | 36.39 ▼5.61 | 36.80 ▲0.86 |
Add New Post /wp-admin/post-new.php | 1,633 ▲119 | 21.94 ▲4.55 | 741.96 ▲91.73 | 41.96 ▼15.82 |
Media Library /wp-admin/upload.php | 1,441 ▲53 | 4.21 ▼0.03 | 99.24 ▼1.51 | 74.18 ▲34.37 |
Help /wp-admin/admin.php?page=cardealerpress_help | 1,169 | 3.40 | 47.06 | 85.15 |
Admin Settings /wp-admin/admin.php?page=cardealerpress_admin | 1,364 | 3.38 | 45.68 | 82.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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
Please fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/cardealerpress/application/views/sitemap/inc/xml-sitemap-xsl.php
- > /wp-content/plugins/cardealerpress/application/views/sitemap/inc/xml-sitemap-video-xsl.php
- 48× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/cardealerpress/application/views/options/sort.php:18
- > PHP Notice
Undefined index: page in wp-content/plugins/cardealerpress/application/views/options/admin_header.php on line 2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/cardealerpress/application/views/inventory/autocheck.php:6
- > PHP Fatal error
Uncaught Error: Class 'Wordpress\\Plugins\\CarDealerPress\\Inventory\\Api\\cdp_plugin' not found in wp-content/plugins/cardealerpress/application/views/options/banners.php:20
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/cardealerpress/application/views/options/carfax.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function Wordpress\\Plugins\\CarDealerPress\\Inventory\\Api\\itemize_vehicle() in wp-content/plugins/cardealerpress/application/views/inventory/dolphin/detail.php:4
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/cardealerpress/application/views/inventory/inv_index.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function Wordpress\\Plugins\\CarDealerPress\\Inventory\\Api\\itemize_vehicle() in wp-content/plugins/cardealerpress/application/views/inventory/eagle/detail.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function Wordpress\\Plugins\\CarDealerPress\\Inventory\\Api\\remove_query_arg() in wp-content/plugins/cardealerpress/application/views/inventory/dolphin/list.php:4
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/cardealerpress/application/views/options/shortcode.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: automotive, custom taxonomy, car dealer, car sales, cars...
cardealerpress/cardealerpress.php 92% from 13 tests
The entry point to "CarDealerPress" version 6.2.2303.01 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 179 characters long)
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 plugin36,492 lines of code in 105 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 22 | 538 | 328 | 14,598 |
PHP | 62 | 1,359 | 545 | 13,183 |
JavaScript | 19 | 1,339 | 506 | 8,284 |
HTML | 1 | 51 | 0 | 414 |
SVG | 1 | 1 | 0 | 13 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 70.71 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 282.00 |
Average method complexity | 4.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 85.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 255 | |
▷ Static methods | 7 | 2.75% |
▷ Public methods | 244 | 95.69% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 4.31% |
Functions | 89 | |
▷ Named functions | 82 | 92.13% |
▷ Anonymous functions | 7 | 7.87% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
63 PNG files occupy 0.31MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
application/assets/css/jquery-css/images/ui-bg_flat_10_000000_40x100.png | 0.24KB | 0.08KB | ▼ 64.34% |
application/assets/images/question-img_20x16.png | 3.49KB | 0.73KB | ▼ 79.15% |
application/assets/css/jquery-css/images/ui-bg_highlight-soft_100_eeeeee_1x100.png | 0.31KB | 0.14KB | ▼ 54.26% |
application/assets/images/cdp_logo_50x44.png | 6.48KB | 2.69KB | ▼ 58.55% |
application/assets/images/tags/local-trade-in.png | 3.53KB | 1.97KB | ▼ 44.07% |