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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼12.79ms] Passed 4 tests
This is a short check of server-side resources used by Your Current Location On Map
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.58 ▼2.80 |
Dashboard /wp-admin | 3.32 ▼0.02 | 47.88 ▼15.41 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 46.01 ▼3.45 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 81.31 ▼29.51 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.33 ▲2.63 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_clom_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Your Current Location On Map: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.48 ▲0.11 | 1.72 ▼0.04 | 43.26 ▲0.21 |
Dashboard /wp-admin | 2,203 ▲15 | 5.79 ▲0.90 | 101.21 ▼6.60 | 39.40 ▼3.29 |
Posts /wp-admin/edit.php | 2,086 ▲18 | 2.00 ▼0.01 | 39.36 ▲3.61 | 34.47 ▲0.07 |
Add New Post /wp-admin/post-new.php | 1,542 ▲23 | 18.28 ▼4.94 | 659.65 ▲24.66 | 57.02 ▲0.84 |
Media Library /wp-admin/upload.php | 1,385 ▼0 | 4.16 ▼0.01 | 102.30 ▲0.32 | 43.78 ▼0.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_clom_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/your-current-location-on-map/your-current-location-on-map.php:58
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
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
6 plugin tags: mobile-friendly, mapbox, leafletlive, current, lopcation...
your-current-location-on-map/your-current-location-on-map.php Passed 13 tests
The principal PHP file in "Your Current Location On Map" v. 1.1 is loaded by WordPress automatically on each request
136 characters long description:
Displays your current location in map with accuracy. Your Current Location On Map plugin is very easy to use,mobile friendly,responsive.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin6,990 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 2,179 | 522 | 6,500 |
CSS | 2 | 47 | 15 | 419 |
PHP | 1 | 9 | 51 | 71 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 2 | |
▷ Named functions | 2 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
leaflet/images/layers-2x.png | 2.83KB | 1.67KB | ▼ 41.10% |
leaflet/images/layers.png | 1.47KB | 1.05KB | ▼ 28.36% |
leaflet/images/marker-icon-2x.png | 3.94KB | 2.53KB | ▼ 35.71% |
leaflet/images/marker-icon.png | 1.71KB | 1.56KB | ▼ 8.59% |
leaflet/images/marker-shadow.png | 0.78KB | 1.16KB | 0.00% |