Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼3.28ms] Passed 4 tests
An overview of server-side resources used by Location Click Map
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 41.30 ▼7.20 |
Dashboard /wp-admin | 3.38 ▲0.07 | 51.97 ▼3.90 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 53.92 ▲0.18 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 95.19 ▼2.18 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 44.27 ▲5.78 |
Locations Map /wp-admin/admin.php?page=map-locations | 3.27 | 37.57 |
New Location /wp-admin/admin.php?page=addnew_location | 3.27 | 33.82 |
Location Map Settings /wp-admin/options-general.php?page=LC_map_settings | 3.27 | 36.66 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_location_click_map_data |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Location Click Map
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,850 ▲89 | 14.37 ▼0.29 | 24.41 ▲22.58 | 39.54 ▼3.46 |
Dashboard /wp-admin | 2,228 ▲48 | 5.62 ▲0.08 | 94.43 ▲1.92 | 40.66 ▼5.46 |
Posts /wp-admin/edit.php | 2,136 ▲36 | 1.97 ▼0.06 | 42.46 ▲4.35 | 34.84 ▼1.68 |
Add New Post /wp-admin/post-new.php | 1,553 ▲25 | 23.03 ▼0.07 | 691.96 ▲54.47 | 55.78 ▼9.36 |
Media Library /wp-admin/upload.php | 1,433 ▲33 | 4.21 ▲0.00 | 112.56 ▲6.11 | 49.46 ▲3.61 |
Locations Map /wp-admin/admin.php?page=map-locations | 851 | 1.99 | 26.13 | 27.13 |
New Location /wp-admin/admin.php?page=addnew_location | 863 | 2.03 | 26.57 | 28.25 |
Location Map Settings /wp-admin/options-general.php?page=LC_map_settings | 856 | 2.16 | 26.51 | 27.47 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 75% 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 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
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/location-click-map/settings-page-locations.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/location-click-map/settings-page-locations.php:3
- > 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 96% 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
7 plugin tags: multiple location map, location click map, google maps marker, custom icon maps, maps marker...
location-click-map/index.php 92% from 13 tests
The primary PHP file in "Location Click Map" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("location-click-map.php" instead of "index.php")
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
No dangerous file extensions were detected368 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 61 | 30 | 362 |
JavaScript | 1 | 1 | 0 | 6 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected