Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼0.23ms] Passed 4 tests
An overview of server-side resources used by DVLA Search
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 42.61 ▲0.08 |
Dashboard /wp-admin | 3.36 ▲0.06 | 48.81 ▼2.22 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 53.01 ▲3.55 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 99.08 ▼0.74 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 40.72 ▲1.96 |
Setup and API Key /wp-admin/admin.php?page=dvla_search | 3.25 | 35.30 |
Custom Results Page and Shortcode Help /wp-admin/admin.php?page=dvla_search_custom_results_help | 3.25 | 33.18 |
Results Fields /wp-admin/admin.php?page=dvla_search_results_fields | 3.26 | 38.00 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_dvla_search_widget |
Browser metrics Passed 4 tests
A check of browser resources used by DVLA Search
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲36 | 14.27 ▼0.07 | 1.79 ▼0.04 | 47.74 ▲0.11 |
Dashboard /wp-admin | 2,229 ▲52 | 5.51 ▼0.14 | 89.37 ▼0.93 | 42.16 ▲0.55 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 2.02 ▼0.00 | 38.95 ▼2.26 | 36.01 ▼6.11 |
Add New Post /wp-admin/post-new.php | 1,551 ▲22 | 23.49 ▲0.51 | 661.03 ▲35.16 | 54.64 ▲4.28 |
Media Library /wp-admin/upload.php | 1,428 ▲25 | 4.21 ▲0.04 | 101.45 ▼0.20 | 43.19 ▼2.94 |
Setup and API Key /wp-admin/admin.php?page=dvla_search | 850 | 2.12 | 23.53 | 28.42 |
Custom Results Page and Shortcode Help /wp-admin/admin.php?page=dvla_search_custom_results_help | 1,150 | 1.99 | 24.64 | 45.55 |
Results Fields /wp-admin/admin.php?page=dvla_search_results_fields | 954 | 2.00 | 22.45 | 28.65 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_dvla_search_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 50% 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
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/dvla-search/includes/render_plate.php
- 10× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/dvla-search/includes/dvla_search_result_number_plate_shortcode.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/dvla-search/includes/dvla_search_error_shortcode.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/dvla-search/endpoint/dvla_search_query.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dvla-search/admin/dvla_search_admin_menu.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/dvla-search/includes/dvla_search_result_shortcode.php:21
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/dvla-search/includes/widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/dvla-search/public/results.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/dvla-search/endpoint/dvla_search_query.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/dvla-search/examples/custom_shortcode.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/dvla-search/includes/dvla_search_success_shortcode.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Contributors: Plugin contributors not specified
dvla-search/dvla-search.php Passed 13 tests
"DVLA Search" version 1.1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
94 characters long description:
Easily add results from the DVLA Search API to your site. Requires a DVLA Search subscription.
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
Everything looks great! No dangerous files found in this plugin808 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 83 | 13 | 652 |
CSS | 1 | 15 | 13 | 156 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 4.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 27 | |
▷ Named functions | 23 | 85.19% |
▷ Anonymous functions | 4 | 14.81% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/assets/img/2000px-European_stars.svg.png | 68.82KB | 26.22KB | ▼ 61.90% |
public/assets/img/euStarsSmall.png | 5.63KB | 2.32KB | ▼ 58.76% |