Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/wp-map/agile-maps.php+36
Undefined variable: wpdb
Server metrics [RAM: ▲0.31MB] [CPU: ▼263.58ms] Passed 4 tests
A check of server-side resources used by Free Google Maps
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.07 ▲0.35 | 34.36 ▲12.18 |
Dashboard /wp-admin | 3.41 ▲0.36 | 40.99 ▲2.95 |
Posts /wp-admin/edit.php | 3.46 ▲0.35 | 42.99 ▼0.43 |
Add New Post /wp-admin/post-new.php | 5.70 ▲0.27 | 95.34 ▼1,048.14 |
Media Library /wp-admin/upload.php | 3.28 ▲0.28 | 31.71 ▼8.70 |
Manage Categories /wp-admin/admin.php?page=manage-amaps-categories | 3.26 | 28.95 |
New Location /wp-admin/admin.php?page=create-amaps | 3.43 | 31.94 |
Settings /wp-admin/admin.php?page=amaps-user-settings | 3.25 | 25.07 |
Manage Markers /wp-admin/admin.php?page=manage-amaps-markers | 3.26 | 22.64 |
Dashboard /wp-admin/admin.php?page=amaps-dashboard | 3.26 | 32.39 |
Manage Location /wp-admin/admin.php?page=manage-amaps-location | 3.25 | 28.94 |
Edit Location /wp-admin/admin.php?page=edit-amaps-location | 3.35 | 30.63 |
Server storage [IO: ▲1.29MB] [DB: ▲0.02MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 79 new files
Database: 6 new tables, no new options
New tables |
---|
wp_amaps_locations_categories |
wp_amaps_locations |
wp_amaps_configs |
wp_amaps_categories |
wp_amaps_markers |
wp_amaps_countries |
Browser metrics Passed 4 tests
An overview of browser requirements for Free Google Maps
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,891 ▲285 | 18.39 ▲2.86 | 29.12 ▲21.63 | 45.34 ▼4.85 |
Dashboard /wp-admin | 3,031 ▲178 | 7.40 ▲1.53 | 147.11 ▼6.69 | 117.81 ▲15.31 |
Posts /wp-admin/edit.php | 2,804 ▲98 | 2.98 ▲0.30 | 70.98 ▼0.66 | 102.62 ▲2.55 |
Add New Post /wp-admin/post-new.php | 1,666 ▼187 | 22.96 ▲3.83 | 273.20 ▼96.36 | 105.38 ▼0.99 |
Media Library /wp-admin/upload.php | 1,870 ▲98 | 5.64 ▲0.68 | 130.36 ▼26.75 | 110.31 ▼8.66 |
Manage Categories /wp-admin/admin.php?page=manage-amaps-categories | 2,515 | 3.44 | 93.64 | 106.43 |
New Location /wp-admin/admin.php?page=create-amaps | 3,452 | 7.07 | 141.03 | 170.53 |
Settings /wp-admin/admin.php?page=amaps-user-settings | 1,314 | 3.01 | 64.62 | 84.07 |
Manage Markers /wp-admin/admin.php?page=manage-amaps-markers | 1,946 | 3.37 | 87.43 | 95.12 |
Dashboard /wp-admin/admin.php?page=amaps-dashboard | 1,328 | 2.97 | 60.45 | 74.29 |
Manage Location /wp-admin/admin.php?page=manage-amaps-location | 3,664 | 3.82 | 104.06 | 117.27 |
Edit Location /wp-admin/admin.php?page=edit-amaps-location | 912 | 2.40 | 43.15 | 27.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie tables were found after uninstall: 6 tables
- wp_amaps_categories
- wp_amaps_locations_categories
- wp_amaps_locations
- wp_amaps_countries
- wp_amaps_markers
- wp_amaps_configs
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=amaps-dashboard
- > Notice in wp-content/plugins/wp-map/admin/partials/dashboard.php+32
Undefined index: searches
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
Please fix the following items
- 8× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-map/admin/partials/add_location.php
- > /wp-content/plugins/wp-map/admin/partials/edit_location.php
- > /wp-content/plugins/wp-map/admin/partials/markers.php
- > /wp-content/plugins/wp-map/admin/partials/user_setting.php
- > /wp-content/plugins/wp-map/admin/partials/dashboard.php
- > /wp-content/plugins/wp-map/admin/partials/manage_location.php
- > /wp-content/plugins/wp-map/admin/partials/categories.php
- > /wp-content/plugins/wp-map/includes/output-template.php
- 68× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: countries in wp-content/plugins/wp-map/admin/partials/edit_location.php on line 75
- > PHP Notice
Undefined variable: location in wp-content/plugins/wp-map/admin/partials/edit_location.php on line 45
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-map/admin/partials/dashboard.php on line 14
- > PHP Warning
Use of undefined constant AGILE_MAPS_URL_PATH - assumed 'AGILE_MAPS_URL_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-map/admin/partials/edit_location.php on line 174
- > PHP Notice
Trying to get property 'postal_code' of non-object in wp-content/plugins/wp-map/admin/partials/edit_location.php on line 69
- > PHP Notice
Trying to get property 'lng' of non-object in wp-content/plugins/wp-map/admin/partials/edit_location.php on line 88
- > PHP Notice
Undefined variable: all_stats in wp-content/plugins/wp-map/admin/partials/dashboard.php on line 20
- > PHP Notice
Undefined variable: category in wp-content/plugins/wp-map/admin/partials/add_location.php on line 113
- > PHP Notice
Undefined variable: all_stats in wp-content/plugins/wp-map/admin/partials/dashboard.php on line 14
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/wp-map/admin/partials/edit_location.php on line 75
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=edit-amaps-location
- > Javascript (severe) in unknown
/wp-content/plugins/wp-map/admin/js/jquery.fileupload.min.js?ver=1.0.0 15:993 Uncaught TypeError: e.widget is not a function
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=manage-amaps-markers
- > Javascript (severe) in unknown
/wp-content/plugins/wp-map/admin/js/jscript.js?ver=1.0.0 157:8 Uncaught TypeError: $form.fileupload is not a function
- > GET request to /wp-admin/admin.php?page=manage-amaps-categories
- > Network (severe)
wp-content/plugins/wp-map/public/svg/default.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=manage-amaps-categories
- > Network (severe)
wp-content/plugins/wp-map/public/svg/train-station.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=manage-amaps-categories
- > Network (severe)
wp-content/plugins/wp-map/public/svg/restuarant.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=manage-amaps-categories
- > Network (severe)
wp-content/plugins/wp-map/public/svg/night%20club.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=manage-amaps-categories
- > Network (severe)
wp-content/plugins/wp-map/public/svg/spa.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=manage-amaps-categories
- > Network (severe)
wp-content/plugins/wp-map/public/svg/local%20government.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=manage-amaps-categories
- > Network (severe)
wp-content/plugins/wp-map/public/svg/car%20repair.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=manage-amaps-categories
- > Network (severe)
wp-content/plugins/wp-map/public/svg/pet%20store.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=manage-amaps-categories
- > Network (severe)
wp-content/plugins/wp-map/public/svg/electronics%20store.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=manage-amaps-categories
- > Network (severe)
wp-content/plugins/wp-map/public/svg/gym.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: google map, google maps, wordpress google maps, map, wordpress google map...
wp-map/agile-maps.php 77% from 13 tests
Analyzing the main PHP file in "Free Google Maps" version 1.0.1
The following require your attention:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-map.php" instead of "agile-maps.php")
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
There were no executable files found in this plugin5,466 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 10 | 66 | 104 | 2,134 |
PHP | 19 | 785 | 703 | 2,051 |
JavaScript | 8 | 312 | 133 | 993 |
SVG | 1 | 0 | 0 | 288 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 19.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 120.00 |
Average method complexity | 3.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 59 | |
▷ Static methods | 6 | 10.17% |
▷ Public methods | 54 | 91.53% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 8.47% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
Using a strong compression for your PNG files is a great way to speed-up your plugin
29 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/css/images/ui-icons_777620_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
public/datatable/media/images/forward_disabled.png | 1.33KB | 0.58KB | ▼ 56.42% |
public/img/close_0.png | 3.28KB | 0.75KB | ▼ 77.16% |
admin/images/searches.png | 32.93KB | 12.41KB | ▼ 62.30% |
public/datatable/media/images/sort_desc_disabled.png | 1.02KB | 0.25KB | ▼ 75.98% |