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
Install script ran successfully
Server metrics [RAM: ▲0.39MB] [CPU: ▼3.72ms] Passed 4 tests
An overview of server-side resources used by CarDojo Lite
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.84 ▲0.38 | 59.05 ▲18.47 |
Dashboard /wp-admin | 3.70 ▲0.36 | 50.30 ▼9.98 |
Posts /wp-admin/edit.php | 3.82 ▲0.46 | 46.95 ▲0.83 |
Add New Post /wp-admin/post-new.php | 6.31 ▲0.43 | 86.83 ▼9.97 |
Media Library /wp-admin/upload.php | 3.64 ▲0.41 | 41.36 ▲4.23 |
Fuel Types /wp-admin/edit-tags.php?taxonomy=vehicle_fuel_type&post_type=vehicle | 3.65 | 41.82 |
Interior Colors /wp-admin/edit-tags.php?taxonomy=vehicle_interior_color&post_type=vehicle | 3.67 | 43.96 |
Comfort /wp-admin/edit-tags.php?taxonomy=vehicle_comfort&post_type=vehicle | 3.69 | 46.27 |
Extensions /wp-admin/edit.php?post_type=vehicle&page=cardojo-addons | 3.61 | 33.16 |
Interior /wp-admin/edit-tags.php?taxonomy=vehicle_interior&post_type=vehicle | 3.65 | 42.28 |
Exterior Colors /wp-admin/edit-tags.php?taxonomy=vehicle_exterior_color&post_type=vehicle | 3.70 | 45.61 |
Inventory /wp-admin/edit.php?post_type=vehicle | 3.68 | 38.64 |
CarDojo Lite Settings /wp-admin/edit.php?post_type=vehicle&page=cardojo-settings | 3.63 | 36.00 |
Models /wp-admin/edit-tags.php?taxonomy=vehicle_model&post_type=vehicle | 3.63 | 32.28 |
Safety /wp-admin/edit-tags.php?taxonomy=vehicle_safety&post_type=vehicle | 3.67 | 45.98 |
Server storage [IO: ▲4.37MB] [DB: ▲0.03MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 115 new files
Database: no new tables, 44 new options
New WordPress options |
---|
cardojo_price_num_decimals |
vehicle_interior_children |
cardojo_measurement_type |
vehicle_visibility_children |
cardojo_currency_position |
cardojo_submit_car_form_page_id |
promoted_cron_jobs |
cardojo_posts_per_page |
vehicle_exterior_children |
cardojo_contact_form_name_error |
... |
Browser metrics Passed 4 tests
CarDojo Lite: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,327 ▲581 | 17.93 ▲3.57 | 55.48 ▲53.78 | 47.00 ▲3.36 |
Dashboard /wp-admin | 2,336 ▲144 | 6.46 ▲1.52 | 116.22 ▲9.17 | 43.52 ▲0.74 |
Posts /wp-admin/edit.php | 2,247 ▲158 | 3.22 ▲1.22 | 45.02 ▲9.00 | 51.86 ▲14.79 |
Add New Post /wp-admin/post-new.php | 1,792 ▲278 | 24.11 ▲6.66 | 689.78 ▲6.02 | 36.42 ▼23.32 |
Media Library /wp-admin/upload.php | 1,527 ▲139 | 5.65 ▲1.40 | 100.44 ▼10.80 | 43.79 ▼8.59 |
Fuel Types /wp-admin/edit-tags.php?taxonomy=vehicle_fuel_type&post_type=vehicle | 1,706 | 3.06 | 40.39 | 61.39 |
Interior Colors /wp-admin/edit-tags.php?taxonomy=vehicle_interior_color&post_type=vehicle | 2,026 | 3.54 | 60.36 | 35.39 |
Comfort /wp-admin/edit-tags.php?taxonomy=vehicle_comfort&post_type=vehicle | 2,522 | 3.13 | 41.45 | 72.92 |
Extensions /wp-admin/edit.php?post_type=vehicle&page=cardojo-addons | 967 | 2.89 | 41.01 | 34.92 |
Interior /wp-admin/edit-tags.php?taxonomy=vehicle_interior&post_type=vehicle | 1,899 | 3.22 | 42.01 | 36.32 |
Exterior Colors /wp-admin/edit-tags.php?taxonomy=vehicle_exterior_color&post_type=vehicle | 2,439 | 3.73 | 54.18 | 63.88 |
Inventory /wp-admin/edit.php?post_type=vehicle | 1,238 | 3.22 | 43.07 | 54.86 |
CarDojo Lite Settings /wp-admin/edit.php?post_type=vehicle&page=cardojo-settings | 1,972 | 3.15 | 44.74 | 27.68 |
Models /wp-admin/edit-tags.php?taxonomy=vehicle_model&post_type=vehicle | 1,406 | 3.19 | 37.15 | 42.87 |
Safety /wp-admin/edit-tags.php?taxonomy=vehicle_safety&post_type=vehicle | 2,258 | 3.24 | 42.83 | 53.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 44 options in the database
- vehicle_interior_children
- cardojo_finance_disclaimer
- can_compress_scripts
- vehicle_visibility_children
- cardojo_contact_form_phone_error
- cardojo_posts_per_page
- theysaidso_admin_options
- cardojo_cars_page_id
- vehicle_exterior_color_children
- cardojo_price_num_decimals
- ...
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/cardojo-lite/includes/admin/partials/cardojo-admin-display.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/cardojo-lite/templates/content-no-cars-found.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/cardojo-lite/templates/content-single-vehicle.php:6
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- 10 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=vehicle_safety&post_type=vehicle
- > Console-api (warning) in unknown
https://maps.googleapis.com/maps/api/js?key&ver=6.3.1 210:51 "Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance. For supported loading patterns please see https://goo.gle/js-api-loading"
Optimizations
Plugin configuration 93% 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
7 plugin tags: car, dealer, cardealer, marketplace, car-dealer...
cardojo-lite/cardojo.php 85% from 13 tests
The main PHP script in "CarDojo Lite" version 1.0.2 is automatically included on every request by WordPress
Please take the time to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("cardojo-lite.php" instead of "cardojo.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin38,181 lines of code in 92 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 66 | 7,204 | 2,152 | 20,147 |
CSS | 9 | 1,141 | 161 | 7,289 |
JavaScript | 15 | 1,919 | 1,647 | 6,860 |
SVG | 2 | 0 | 0 | 3,885 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 262.00 |
Average method complexity | 4.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 83.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 37 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 37 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 191 | |
▷ Static methods | 22 | 11.52% |
▷ Public methods | 171 | 89.53% |
▷ Protected methods | 1 | 0.52% |
▷ Private methods | 19 | 9.95% |
Functions | 107 | |
▷ Named functions | 107 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 38 | |
▷ Global constants | 2 | 5.26% |
▷ Class constants | 36 | 94.74% |
▷ Public constants | 36 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 PNG files occupy 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/select-arrow.png | 1.22KB | 0.29KB | ▼ 76.06% |
assets/images/sort_asc.png | 1.09KB | 0.25KB | ▼ 77.46% |
assets/images/carfax-logo_03.png | 5.86KB | 2.76KB | ▼ 52.89% |
assets/images/logo-setup-wizard.png | 3.26KB | 1.26KB | ▼ 61.23% |
assets/images/cardojo_logo.png | 10.20KB | 5.06KB | ▼ 50.41% |