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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▲23.07ms] Passed 4 tests
This is a short check of server-side resources used by Wp Dealer Map
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 70.09 ▲27.17 |
Dashboard /wp-admin | 3.38 ▲0.03 | 80.03 ▲12.38 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 83.63 ▲31.90 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 120.06 ▲20.84 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 69.79 ▲33.06 |
Add new /wp-admin/admin.php?page=dealer_map/locations_form | 3.38 | 68.05 |
Dealer Locations /wp-admin/admin.php?page=dealer_map/dealer_map_locations | 3.30 | 70.20 |
Dealer Stores /wp-admin/admin.php?page=wp-dealer-map/admin/class-admin.php | 3.55 | 63.02 |
Server storage [IO: ▲0.69MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 46 new files
Database: 1 new table, 10 new options
New tables |
---|
wp_dealer_map_stores |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
dealer_db_version |
widget_theysaidso_widget |
widget_recent-comments |
dealer_map_version |
dealer_map_keep_table |
dealer_map_remove_all |
Browser metrics Passed 4 tests
An overview of browser requirements for Wp Dealer Map
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲80 | 13.21 ▼1.37 | 1.83 ▲0.07 | 40.69 ▼4.08 |
Dashboard /wp-admin | 2,244 ▲41 | 6.00 ▲0.13 | 102.81 ▼4.91 | 91.38 ▲45.66 |
Posts /wp-admin/edit.php | 2,126 ▲23 | 2.03 ▼0.01 | 39.75 ▼5.40 | 38.90 ▲0.38 |
Add New Post /wp-admin/post-new.php | 1,556 ▲24 | 21.84 ▼1.40 | 749.92 ▲80.53 | 44.27 ▼19.39 |
Media Library /wp-admin/upload.php | 1,423 ▲26 | 4.22 ▼0.05 | 116.25 ▲0.13 | 73.00 ▲23.91 |
Add new /wp-admin/admin.php?page=dealer_map/locations_form | 1,393 | 3.36 | 52.04 | 73.97 |
Dealer Locations /wp-admin/admin.php?page=dealer_map/dealer_map_locations | 1,543 | 3.37 | 50.03 | 92.80 |
Dealer Stores /wp-admin/admin.php?page=wp-dealer-map/admin/class-admin.php | 3,061 | 3.51 | 62.12 | 82.11 |
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
- The uninstall procedure has failed, leaving 7 options in the database
- dealer_map_version
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 328 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-dealer-map/admin/class-admin.php
- > Notice in wp-content/plugins/wp-dealer-map/admin/class-settings.php+575
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/wp-dealer-map/front/dealer-data.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/wp-dealer-map/front/map-html.php:54
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wp-dealer-map/admin/locations/locations-settings.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-dealer-map/admin/locations/locations-settings.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-dealer-map/wp-dealer-map.php:58
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wp-dealer-map/uninstall.php:22
- > 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 93% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5, #6 in wp-dealer-map/assets to your readme.txt
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wp-dealer-map/wp-dealer-map.php Passed 13 tests
"Wp Dealer Map" version 2.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
129 characters long description:
WP plugin for showing nearby dealer stores around typed zip, city or full address. It can be showed on maps within chosen radius.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected6,382 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 0 | 689 | 2,486 |
CSS | 4 | 0 | 57 | 2,219 |
PO File | 1 | 0 | 517 | 1,064 |
JavaScript | 5 | 0 | 38 | 613 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 29.50 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 3.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 60 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 54 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 10.00% |
Functions | 23 | |
▷ Named functions | 22 | 95.65% |
▷ Anonymous functions | 1 | 4.35% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
16 PNG files occupy 0.33MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |
front/markers/shad.png | 27.62KB | 0.91KB | ▼ 96.71% |
front/markers/pin-black.png | 47.72KB | 0.89KB | ▼ 98.14% |
admin/img/map-pini.png | 1.95KB | 1.12KB | ▼ 42.83% |
front/markers/pin-lightblue.png | 50.12KB | 1.10KB | ▼ 97.81% |