83% extended-google-map-for-elementor

Code Review | Extended Google Map for Elementor

WordPress plugin Extended Google Map for Elementor scored 83% from 54 tests.

About plugin

  • Plugin page: extended-google-m...
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.2.3
  • WordPress version: 5.9.2
  • First release: Mar 6, 2018
  • Latest release: Sep 19, 2019
  • Number of updates: 53
  • Update frequency: every 10.6 days
  • Top authors: internetcss (98.11%)Otto42 (3.77%)

Code review

54 tests

User reviews

13 reviews

Install metrics

20,000+ active / 125,486 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼292.77ms] Passed 4 tests

Analyzing server-side resources used by Extended Google Map for Elementor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1456.73 ▲4.49
Dashboard /wp-admin3.48 ▲0.0734.04 ▼11.65
Posts /wp-admin/edit.php3.71 ▲0.0738.36 ▲2.25
Add New Post /wp-admin/post-new.php6.95 ▼0.02102.70 ▼1,166.18
Media Library /wp-admin/upload.php3.36 ▲0.0728.48 ▲6.18

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Extended Google Map for Elementor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,792 ▲5015.84 ▲0.716.06 ▼0.592.12 ▼0.11
Dashboard /wp-admin2,917 ▲526.21 ▲0.05127.46 ▼25.38196.19 ▲16.00
Posts /wp-admin/edit.php2,721 ▲363.24 ▲0.0163.35 ▼1.20137.45 ▼82.59
Add New Post /wp-admin/post-new.php1,682 ▲2116.52 ▲0.98413.51 ▼29.21163.67 ▲6.28
Media Library /wp-admin/upload.php1,721 ▲295.51 ▼0.03147.82 ▼4.87230.21 ▼8.62

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
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/extended-google-map-for-elementor/uninstall.php+15
    Trying to access array offset on value of type bool

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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 fix the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ElementorGoogleMapExtended\\add_action() in wp-content/plugins/extended-google-map-for-elementor/includes/class-extended-google-map-for-elementor.php:82
    • > PHP Fatal error
      Uncaught Error: Class 'EB_Map_Settings_API' not found in wp-content/plugins/extended-google-map-for-elementor/includes/class-extended-google-map-for-elementor-page-settings.php:14

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 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed: The official readme.txt might help

extended-google-map-for-elementor/elementor-google-map-extended.php 85% from 13 tests

"Extended Google Map for Elementor" version 1.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 310 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("extended-google-map-for-elementor.php" instead of "elementor-google-map-extended.php")

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
There were no executable files found in this plugin1,618 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP72314761,186
PO File182103240
JavaScript2162164
CSS22028

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
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_green.png1.25KB0.76KB▼ 39.52%
assets/images/marker_yellow.png1.26KB0.76KB▼ 39.24%
assets/images/marker_grey.png1.15KB0.70KB▼ 39.34%
assets/images/marker_purple.png1.25KB0.76KB▼ 39.00%
assets/images/marker_black.png1.14KB0.67KB▼ 40.67%