Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▲0.39ms] Passed 4 tests
A check of server-side resources used by WPGMAP
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 43.80 ▲2.62 |
Dashboard /wp-admin | 3.50 ▲0.20 | 57.19 ▲3.56 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 54.92 ▲0.78 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 89.95 ▲1.72 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 34.71 ▼3.57 |
Upgrade to PRO /wp-admin/admin.php?page=wp-gmap&view=upgrade | 3.34 | 37.92 |
Settings /wp-admin/admin.php?page=wp-gmap&view=settings | 3.35 | 39.13 |
Add New Map /wp-admin/admin.php?page=wp-gmap&view=add-map | 3.72 | 35.84 |
WPGMAP /wp-admin/admin.php?page=wp-gmap | 3.35 | 37.88 |
Add New Settings /wp-admin/admin.php?page=wp-gmap&view=add-settings | 3.39 | 36.45 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 42 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_gmap_settings |
wp_gmap_data |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for WPGMAP
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,969 ▲183 | 14.88 ▲0.56 | 2.06 ▼0.10 | 47.51 ▲3.49 |
Dashboard /wp-admin | 2,371 ▲197 | 6.23 ▲0.70 | 112.67 ▲11.90 | 40.67 ▼7.29 |
Posts /wp-admin/edit.php | 2,299 ▲199 | 3.35 ▲1.32 | 49.25 ▲11.41 | 30.72 ▼3.37 |
Add New Post /wp-admin/post-new.php | 1,559 ▲33 | 23.23 ▼0.40 | 664.04 ▼86.10 | 38.19 ▼16.12 |
Media Library /wp-admin/upload.php | 1,430 ▲30 | 4.19 ▲0.03 | 82.93 ▼33.84 | 44.79 ▼4.64 |
Upgrade to PRO /wp-admin/admin.php?page=wp-gmap&view=upgrade | 1,099 | 3.04 | 38.98 | 26.63 |
Settings /wp-admin/admin.php?page=wp-gmap&view=settings | 997 | 3.01 | 38.73 | 25.29 |
Add New Map /wp-admin/admin.php?page=wp-gmap&view=add-map | 721 | 1.68 | 10.04 | 24.56 |
WPGMAP /wp-admin/admin.php?page=wp-gmap | 1,000 | 3.02 | 37.78 | 24.25 |
Add New Settings /wp-admin/admin.php?page=wp-gmap&view=add-settings | 1,325 | 3.00 | 42.14 | 26.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie tables detected upon uninstall: 2 tables
- wp_gmap_data
- wp_gmap_settings
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
The following issues need your attention
- 12× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/wpgmap/src/views/add-map.php
- > /wp-content/plugins/wpgmap/src/views/update-map.php
- > /wp-content/plugins/wpgmap/src/views/settings-submission.php
- > /wp-content/plugins/wpgmap/src/views/map-submission.php
- > /wp-content/plugins/wpgmap/src/views/partials/map-form.php
- > /wp-content/plugins/wpgmap/src/views/partials/settings-form.php
- > /wp-content/plugins/wpgmap/wpgmap.php
- > /wp-content/plugins/wpgmap/src/views/home.php
- > /wp-content/plugins/wpgmap/src/views/update-settings.php
- > /wp-content/plugins/wpgmap/src/views/gmap.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wpgmap/src/views/upgrade.php:5
- > PHP Fatal error
Uncaught Error: Class 'WpGmap\\core\\model\\Model' not found in wp-content/plugins/wpgmap/src/core/model/MapSettings.php:7
- > PHP Fatal error
Uncaught Error: Class 'WpGmap\\core\\model\\Model' not found in wp-content/plugins/wpgmap/src/core/model/MapData.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: wpgmap, wpgooglemap, polygon marker, map, polyline marker...
wpgmap/wpgmap.php Passed 13 tests
The entry point to "WPGMAP" version 1.0.1 is a PHP file that has certain tags in its header comment area
27 characters long description:
Wordpress Google Map plugin
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
Good job! No executable or dangerous file extensions detected3,898 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 34 | 583 | 189 | 2,962 |
JavaScript | 2 | 98 | 0 | 493 |
CSS | 2 | 89 | 2 | 423 |
JSON | 2 | 0 | 0 | 20 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.70 |
Average class complexity | 8.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 105 | |
▷ Static methods | 42 | 40.00% |
▷ Public methods | 100 | 95.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 4.76% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 11 | |
▷ Global constants | 7 | 63.64% |
▷ Class constants | 4 | 36.36% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin