84% osm-map-elementor

Code Review | OSM Map Widget for Elementor

WordPress plugin OSM Map Widget for Elementor scored84%from 54 tests.

About plugin

  • Plugin page: osm-map-elementor
  • Plugin version: 1.2.1
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4
  • WordPress version: 6.3.1
  • First release: Sep 8, 2020
  • Latest release: Nov 1, 2023
  • Number of updates: 38
  • Update frequency: every 30.2 days
  • Top authors: intelchip (78.95%)youngmedianetwork (23.68%)

Code review

54 tests

User reviews

7 reviews

Install metrics

7,000+ active /32,107 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.82ms] Passed 4 tests

Server-side resources used by OSM Map Widget for Elementor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.77 ▼3.88
Dashboard /wp-admin3.31 ▲0.0044.81 ▼3.72
Posts /wp-admin/edit.php3.36 ▲0.0045.98 ▼5.28
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.35 ▲6.83
Media Library /wp-admin/upload.php3.23 ▲0.0035.00 ▲1.61
OSM Map Widget /wp-admin/options-general.php?page=osm-map-elementor3.0123.69

Server storage [IO: ▲30.76MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
It is recommended to fix the following issues
  • Total filesystem usage must be limited to 25MB (currently using 30.76MB)
Filesystem: 2,160 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for OSM Map Widget for Elementor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.391.63 ▼0.2137.66 ▼6.83
Dashboard /wp-admin2,195 ▲145.57 ▼0.1091.00 ▼11.2444.07 ▲2.66
Posts /wp-admin/edit.php2,100 ▼02.00 ▲0.0139.35 ▼2.3034.94 ▼3.59
Add New Post /wp-admin/post-new.php1,531 ▲223.43 ▲0.58622.03 ▲15.6250.39 ▲2.70
Media Library /wp-admin/upload.php1,403 ▲64.21 ▼0.0096.75 ▼0.6141.45 ▼1.33
OSM Map Widget /wp-admin/options-general.php?page=osm-map-elementor280.420.073.59

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/options-general.php?page=osm-map-elementor
    • > Network (severe)
    wp-admin/options-general.php?page=osm-map-elementor - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: map widget, elementor widget, open street map, addons, elementor

osm-map-elementor/osm-map-elementor.php 92% from 13 tests

The main file in "OSM Map Widget for Elementor" v. 1.2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 181 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin371,982 lines of code in 2,125 files:
LanguageFilesBlank linesComment linesLines of code
JSON400208,008
YAML50097,593
JavaScript216,4687,62428,735
CSS235,84412713,706
SVG2,0280158,109
Sass19556726,975
LESS18552726,917
PHP32452141,777
HTML113487
Markdown318075

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity95.00
▷ Minimum class complexity95.00
▷ Maximum class complexity95.00
Average method complexity7.29
▷ Minimum method complexity1.00
▷ Maximum method complexity76.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods746.67%
▷ Protected methods213.33%
▷ Private methods640.00%
Functions9
▷ Named functions00.00%
▷ Anonymous functions9100.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 compressed PNG files occupy 0.05MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/leaflet-fa-markers/screenshots/markers.png42.23KB14.75KB▼ 65.08%
assets/leaflet/images/layers-2x.png1.23KB1.67KB0.00%
assets/leaflet/images/marker-icon.png1.43KB1.55KB0.00%
assets/leaflet/images/marker-icon-2x.png2.41KB2.52KB0.00%
assets/leaflet/images/layers.png0.68KB1.05KB0.00%