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.72MB] [CPU: ▲2.80ms] Passed 4 tests
A check of server-side resources used by Wp Maps
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.31 | 44.50 ▲0.30 |
Dashboard /wp-admin | 4.17 ▲0.87 | 51.79 ▼1.97 |
Posts /wp-admin/edit.php | 4.20 ▲0.84 | 58.40 ▲8.92 |
Add New Post /wp-admin/post-new.php | 6.76 ▲0.88 | 108.62 ▲12.53 |
Media Library /wp-admin/upload.php | 4.09 ▲0.86 | 44.23 ▲3.94 |
All Locations /wp-admin/edit.php?post_type=wpmaps_location | 4.14 | 42.00 |
Add New Location /wp-admin/post-new.php?post_type=wpmaps_location | 4.63 | 62.73 |
Wp Maps /wp-admin/options-general.php?page=wp-maps-settings | 4.43 | 42.39 |
Categories /wp-admin/edit-tags.php?taxonomy=wpmaps_location_category&post_type=wpmaps_location | 4.09 | 42.35 |
Server storage [IO: ▲3.09MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 268 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Wp Maps
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,944 ▲173 | 14.13 ▼0.48 | 7.18 ▲5.24 | 44.46 ▼0.72 |
Dashboard /wp-admin | 2,252 ▲64 | 4.94 ▼0.95 | 109.95 ▼6.37 | 42.00 ▼0.57 |
Posts /wp-admin/edit.php | 2,138 ▲49 | 2.06 ▲0.05 | 42.50 ▲2.75 | 35.00 ▲0.95 |
Add New Post /wp-admin/post-new.php | 1,550 ▲30 | 17.66 ▼5.42 | 684.16 ▼5.74 | 73.99 ▲15.21 |
Media Library /wp-admin/upload.php | 1,434 ▲46 | 4.24 ▲0.00 | 96.49 ▼14.47 | 44.31 ▼1.65 |
All Locations /wp-admin/edit.php?post_type=wpmaps_location | 1,113 | 2.01 | 32.68 | 29.45 |
Add New Location /wp-admin/post-new.php?post_type=wpmaps_location | 3,206 | 7.67 | 195.49 | 71.11 |
Wp Maps /wp-admin/options-general.php?page=wp-maps-settings | 863 | 1.98 | 38.03 | 28.19 |
Categories /wp-admin/edit-tags.php?taxonomy=wpmaps_location_category&post_type=wpmaps_location | 1,311 | 2.32 | 27.45 | 28.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-maps/public/views/public.php
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-maps/admin/includes/CMB2/init.php:72
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-maps/admin/includes/Addons/cmb_field_map-master/cmb-field-map.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/wp-maps/admin/includes/CMB2/bootstrap.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-maps/admin/includes/WP-Contextual-Help/wp-contextual-help.php:141
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wp-maps/admin/views/admin.php:21
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-maps/includes/Widgets-Helper/wph-widget-class.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-maps/templates/single-map.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-maps/includes/widgets/mm-widget-map.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: A description for screenshot #3 is missing in wp-maps/assets to your readme.txt
- Tags: There are too many tags (51 tag instead of maximum 10)
wp-maps/wp-maps.php Passed 13 tests
The primary PHP file in "Wp Maps" version 3.0 is used by WordPress to initiate all plugin functionality
51 characters long description:
Google Maps with custom icons, colors and locations
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin39,359 lines of code in 188 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 96 | 8,914 | 11,876 | 20,460 |
CSS | 12 | 2,087 | 1,034 | 10,319 |
PHP | 36 | 1,719 | 3,708 | 5,088 |
JavaScript | 17 | 551 | 405 | 1,666 |
Sass | 13 | 176 | 25 | 1,151 |
Markdown | 8 | 153 | 0 | 445 |
SVG | 3 | 0 | 0 | 207 |
JSON | 1 | 0 | 0 | 11 |
Ruby | 1 | 3 | 1 | 11 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 28.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 107.00 |
Average method complexity | 3.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 32 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 32 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 346 | |
▷ Static methods | 41 | 11.85% |
▷ Public methods | 330 | 95.38% |
▷ Protected methods | 7 | 2.02% |
▷ Private methods | 9 | 2.60% |
Functions | 27 | |
▷ Named functions | 27 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 3 | 42.86% |
▷ Class constants | 4 | 57.14% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
16 compressed PNG files occupy 0.13MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/includes/CMB2/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
admin/includes/CMB2/images/ui-icons_888888_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |
admin/includes/CMB2/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
admin/includes/CMB2/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
admin/includes/CMB2/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |