73% map-multiple-marker

Code Review | Multiple Map Marker For Elementor Page Builder

WordPress plugin Multiple Map Marker For Elementor Page Builder scored73%from 54 tests.

About plugin

  • Plugin page: map-multiple-marker
  • Plugin version: 1.5.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.7
  • WordPress version: 6.3.1
  • First release: Oct 25, 2019
  • Latest release: May 18, 2021
  • Number of updates: 13
  • Update frequency: every 43.9 days
  • Top authors: largbasket (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /5,549 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.47ms] Passed 4 tests

An overview of server-side resources used by Multiple Map Marker For Elementor Page Builder
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.13 ▼1.63
Dashboard /wp-admin3.31 ▲0.0147.52 ▼6.23
Posts /wp-admin/edit.php3.36 ▲0.0152.54 ▲0.42
Add New Post /wp-admin/post-new.php5.89 ▲0.0194.72 ▼6.42
Media Library /wp-admin/upload.php3.24 ▲0.0138.20 ▲2.27

Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Multiple Map Marker For Elementor Page Builder
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲6414.31 ▼0.061.78 ▲0.1844.10 ▼0.26
Dashboard /wp-admin2,216 ▲365.64 ▼0.0291.39 ▼7.8441.77 ▲1.79
Posts /wp-admin/edit.php2,121 ▲182.01 ▼0.0241.64 ▲1.7338.16 ▼0.84
Add New Post /wp-admin/post-new.php1,555 ▲2723.02 ▼0.10603.07 ▼69.0058.87 ▲4.95
Media Library /wp-admin/upload.php1,421 ▲214.21 ▼0.0597.19 ▼17.7744.09 ▼3.69

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/map-multiple-marker/uninstall.php+15
    Trying to access array offset on value of type bool
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'EB_Map_Settings_API' not found in wp-content/plugins/map-multiple-marker/includes/class-google-map-for-elementor-page-settings.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ElementorGoogleMapExtended\\add_action() in wp-content/plugins/map-multiple-marker/includes/class-google-map-for-elementor.php:82

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% 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
6 plugin tags: elementor addons, elementor google map, google map, elementor plugins, elementor maps widget...

map-multiple-marker/elementor-map-multiple-marker.php 77% from 13 tests

The main PHP file in "Multiple Map Marker For Elementor Page Builder" ver. 1.5.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 310 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("map-multiple-marker.php" instead of "elementor-map-multiple-marker.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,601 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP72314691,169
PO File182103240
JavaScript2162164
CSS22028

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity20.20
▷ Minimum class complexity1.00
▷ Maximum class complexity69.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods65
▷ Static methods11.54%
▷ Public methods6193.85%
▷ Protected methods34.62%
▷ Private methods11.54%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants5
▷ Global constants360.00%
▷ Class constants240.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
9 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/marker_black.png1.14KB0.67KB▼ 40.67%
assets/images/marker_grey.png1.15KB0.70KB▼ 39.34%
assets/images/marker_red.png1.11KB0.82KB▼ 26.19%
assets/images/marker_green.png1.25KB0.76KB▼ 39.52%
assets/images/marker_purple.png1.25KB0.76KB▼ 39.00%