Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.12MB] [CPU: ▼2.84ms] Passed 4 tests
Server-side resources used by Map Visualizer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 37.29 ▲0.90 |
Dashboard /wp-admin | 3.44 ▲0.14 | 45.38 ▼2.34 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 50.30 ▼1.35 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.16 | 84.30 ▼8.57 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 35.60 ▲2.06 |
Map Visualizer /wp-admin/admin.php?page=map_visualizer_menu | 3.33 | 31.92 |
Import CSV File /wp-admin/admin.php?page=map_visualizer_import_page | 3.36 | 29.29 |
List All Files /wp-admin/admin.php?page=map_visualizer_list_page | 3.31 | 30.31 |
Create New File /wp-admin/admin.php?page=map_visualizer_creation_page | 3.31 | 34.32 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 14 new files
Database: 1 new table, 6 new options
New tables |
---|
Imported_files |
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Map Visualizer
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲101 | 14.38 ▲0.01 | 4.16 ▲2.60 | 40.16 ▼5.55 |
Dashboard /wp-admin | 2,238 ▲47 | 5.94 ▲0.04 | 109.01 ▲3.71 | 41.28 ▼3.21 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.89 ▲0.83 | 39.60 ▼6.27 | 33.31 ▼2.43 |
Add New Post /wp-admin/post-new.php | 1,546 ▲22 | 23.93 ▲0.63 | 683.76 ▼27.81 | 57.05 ▼5.06 |
Media Library /wp-admin/upload.php | 1,432 ▲47 | 5.20 ▲0.98 | 100.49 ▼4.61 | 43.88 ▲1.45 |
Map Visualizer /wp-admin/admin.php?page=map_visualizer_menu | 1,020 | 2.98 | 49.98 | 51.65 |
Import CSV File /wp-admin/admin.php?page=map_visualizer_import_page | 893 | 2.34 | 25.20 | 31.51 |
List All Files /wp-admin/admin.php?page=map_visualizer_list_page | 923 | 2.33 | 29.17 | 29.83 |
Create New File /wp-admin/admin.php?page=map_visualizer_creation_page | 886 | 2.33 | 25.99 | 25.99 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=map_visualizer_import_page
- > Deprecated in wp-content/plugins/map-visualizer/submenu-pages/CSV-import/map_visualizer_Quick-CSV-import.php+9
Methods with the same name as their class will not be constructors in a future version of PHP; map_visualizer_Quick_CSV_import has a deprecated constructor
- > GET request to /wp-admin/admin.php?page=map_visualizer_list_page
- > Notice in wp-content/plugins/map-visualizer/submenu-pages/map_visualizer_list_all_files.php+15
Undefined index: delete
- > GET request to /wp-admin/admin.php?page=map_visualizer_list_page
- > Notice in wp-content/plugins/map-visualizer/submenu-pages/map_visualizer_list_all_files.php+16
Undefined index: copy
- > GET request to /wp-admin/admin.php?page=map_visualizer_creation_page
- > Notice in wp-content/plugins/map-visualizer/submenu-pages/map_visualizer_create_file_page.php+14
Undefined index: Step
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
The following issues need your attention
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/map-visualizer/Map-Visualizer.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/map-visualizer/submenu-pages/map_visualizer_list_all_files.php:9
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/map-visualizer/Map-Visualizer.php on line 9
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/map-visualizer/Map-Visualizer.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/map-visualizer/Map-Visualizer.php:13
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=map_visualizer_menu
- > Network (severe)
wp-content/plugins/map-visualizer/Scripts/images/marker-icon.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=map_visualizer_menu
- > Network (severe)
wp-content/plugins/map-visualizer/Scripts/images/marker-shadow.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=map_visualizer_menu
- > Network (severe)
https://b.tiles.mapbox.com/v4/dsam.m3en6deb/1/0/1.png?access_token=pk.eyJ1IjoiZHNhbSIsImEiOiJrTGdOSjhVIn0.zlpcBqn7P2TQyzQVNBCU7w - Failed to load resource: the server responded with a status of 410 (Gone)
- > GET request to /wp-admin/admin.php?page=map_visualizer_menu
- > Network (severe)
https://b.tiles.mapbox.com/v4/dsam.llp7bo02/1/1/0.png?access_token=pk.eyJ1IjoiZHNhbSIsImEiOiJrTGdOSjhVIn0.zlpcBqn7P2TQyzQVNBCU7w - Failed to load resource: the server responded with a status of 410 (Gone)
- > GET request to /wp-admin/admin.php?page=map_visualizer_menu
- > Network (severe)
https://b.tiles.mapbox.com/v4/dsam.llp7bo02/1/0/1.png?access_token=pk.eyJ1IjoiZHNhbSIsImEiOiJrTGdOSjhVIn0.zlpcBqn7P2TQyzQVNBCU7w - Failed to load resource: the server responded with a status of 410 (Gone)
- > GET request to /wp-admin/admin.php?page=map_visualizer_menu
- > Network (severe)
https://b.tiles.mapbox.com/v4/dsam.m3en6deb/1/1/0.png?access_token=pk.eyJ1IjoiZHNhbSIsImEiOiJrTGdOSjhVIn0.zlpcBqn7P2TQyzQVNBCU7w - Failed to load resource: the server responded with a status of 410 (Gone)
- > GET request to /wp-admin/admin.php?page=map_visualizer_menu
- > Network (severe)
https://a.tiles.mapbox.com/v4/dsam.m3en6deb/1/0/0.png?access_token=pk.eyJ1IjoiZHNhbSIsImEiOiJrTGdOSjhVIn0.zlpcBqn7P2TQyzQVNBCU7w - Failed to load resource: the server responded with a status of 410 (Gone)
- > GET request to /wp-admin/admin.php?page=map_visualizer_menu
- > Network (severe)
https://c.tiles.mapbox.com/v4/dsam.m3en6deb/1/1/1.png?access_token=pk.eyJ1IjoiZHNhbSIsImEiOiJrTGdOSjhVIn0.zlpcBqn7P2TQyzQVNBCU7w - Failed to load resource: the server responded with a status of 410 (Gone)
- > GET request to /wp-admin/admin.php?page=map_visualizer_menu
- > Network (severe)
https://c.tiles.mapbox.com/v4/dsam.llp7bo02/1/1/1.png?access_token=pk.eyJ1IjoiZHNhbSIsImEiOiJrTGdOSjhVIn0.zlpcBqn7P2TQyzQVNBCU7w - Failed to load resource: the server responded with a status of 410 (Gone)
- > GET request to /wp-admin/admin.php?page=map_visualizer_menu
- > Network (severe)
https://a.tiles.mapbox.com/v4/dsam.llp7bo02/1/0/0.png?access_token=pk.eyJ1IjoiZHNhbSIsImEiOiJrTGdOSjhVIn0.zlpcBqn7P2TQyzQVNBCU7w - Failed to load resource: the server responded with a status of 410 (Gone)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: leaflet, geocode, visualization, map, csv
map-visualizer/Map-Visualizer.php 92% from 13 tests
The principal PHP file in "Map Visualizer" v. 1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("map-visualizer.php" instead of "Map-Visualizer.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin1,741 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 68 | 95 | 1,188 |
CSS | 1 | 54 | 22 | 548 |
JavaScript | 1 | 0 | 4 | 5 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 29.00 |
▷ Minimum class complexity | 29.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 8.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected