Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.30MB] [CPU: ▼3.47ms] Passed 4 tests
This is a short check of server-side resources used by Motors VIN Decoder
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.20 | 42.60 ▲0.84 |
Dashboard /wp-admin | 3.68 ▲0.34 | 53.20 ▼12.61 |
Posts /wp-admin/edit.php | 3.73 ▲0.38 | 55.37 ▲1.40 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.34 | 95.89 ▼3.52 |
Media Library /wp-admin/upload.php | 3.54 ▲0.32 | 39.65 ▲6.51 |
Upgrade /wp-admin/admin.php?page=stm_vin_decoders_go_pro | 3.56 | 217.22 |
Nhtsa Check Settings /wp-admin/options.php?page=stm_vin_decoders_settings-nhtsa | 3.56 | 35.05 |
Motors Vin Decoder /wp-admin/admin.php?page=stm_vin_decoders_settings | 3.58 | 34.03 |
Server storage [IO: ▲0.96MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 84 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
stm_vin_method_name |
widget_stm_full_report_wp_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_stm_specification_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Motors VIN Decoder
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,945 ▲184 | 14.19 ▼0.34 | 9.63 ▲8.02 | 43.31 ▲0.84 |
Dashboard /wp-admin | 2,239 ▲65 | 6.01 ▲0.48 | 112.55 ▲13.20 | 83.52 ▲39.50 |
Posts /wp-admin/edit.php | 2,147 ▲65 | 2.65 ▲0.62 | 41.11 ▲4.23 | 37.08 ▲0.98 |
Add New Post /wp-admin/post-new.php | 1,718 ▲178 | 26.85 ▲4.21 | 697.98 ▲53.13 | 37.39 ▼22.63 |
Media Library /wp-admin/upload.php | 1,444 ▲50 | 4.67 ▲0.49 | 122.43 ▲24.90 | 50.31 ▲6.24 |
Upgrade /wp-admin/admin.php?page=stm_vin_decoders_go_pro | 1,033 | 2.33 | 28.44 | 43.39 |
Nhtsa Check Settings /wp-admin/options.php?page=stm_vin_decoders_settings-nhtsa | 921 | 2.31 | 32.33 | 46.96 |
Motors Vin Decoder /wp-admin/admin.php?page=stm_vin_decoders_settings | 1,276 | 2.33 | 29.70 | 39.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 9 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- stm_vin_method_name
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_stm_specification_widget
- widget_stm_full_report_wp_widget
Smoke tests 75% 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 50% 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
- 30× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_theme() in wp-content/plugins/motors-vin-decoder/templates/providers/stm_nhtsa_auto_complete_settings_page.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_remote_get() in wp-content/plugins/motors-vin-decoder/templates/stm_auto_complete_go_pro.php:7
- > PHP Warning
get_called_class() called from outside a class in wp-content/plugins/motors-vin-decoder/templates/stm_auto_complete_settings_history_page.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/motors-vin-decoder/templates/motors_vin_check_header_button.php:2
- > PHP Warning
get_called_class() called from outside a class in wp-content/plugins/motors-vin-decoder/templates/stm_auto_complete_settings_page.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/motors-vin-decoder/includes/item-announcements.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/motors-vin-decoder/templates/motors_vin_modal_template.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/motors-vin-decoder/includes/vin-decoder-conf.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/motors-vin-decoder/includes/classes/STM_Full_Report_WP_Widget.php:2
- > PHP Warning
include_once(): Failed opening 'STM_MOTORS_VIN_DECODERS_PATH/templates/stm_auto_history_shortcode_view.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/motors-vin-decoder/vc/templates/stm_auto_specification_template.php on line 3
- > 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 90% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add descriptions for screenshots #4, #5, #6 in motors-vin-decoder/assets to your readme.txt
- Donate link: Please fix this invalid URI: ""
motors-vin-decoder/motors-vin-decoder.php 92% from 13 tests
The entry point to "Motors VIN Decoder" version 1.0.9 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 223 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected2,682 lines of code in 54 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 36 | 503 | 163 | 2,421 |
SVG | 12 | 0 | 0 | 255 |
CSS | 6 | 0 | 0 | 6 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 2 | 16.67% |
▷ Concrete classes | 10 | 83.33% |
▷ Final classes | 0 | 0.00% |
Methods | 74 | |
▷ Static methods | 17 | 22.97% |
▷ Public methods | 68 | 91.89% |
▷ Protected methods | 3 | 4.05% |
▷ Private methods | 3 | 4.05% |
Functions | 17 | |
▷ Named functions | 12 | 70.59% |
▷ Anonymous functions | 5 | 29.41% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.16MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/logo-footer.png | 2.73KB | 1.60KB | ▼ 41.44% |
assets/img/wpbakery_vin.png | 54.00KB | 14.60KB | ▼ 72.96% |
assets/img/vinaudit-usa-v3.3_85.png | 3.64KB | 2.63KB | ▼ 27.93% |
assets/img/vin_decoder.png | 13.93KB | 6.11KB | ▼ 56.12% |
assets/img/elementor_vin.png | 80.46KB | 21.39KB | ▼ 73.42% |