84% alpha-google-map-for-elementor

Code Review | Alpha Google Map For Elementor

WordPress plugin Alpha Google Map For Elementor scored84%from 54 tests.

About plugin

  • Plugin page: alpha-google-map-...
  • Plugin version: 1.0.9
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4
  • WordPress version: 6.3.1
  • First release: Jun 2, 2021
  • Latest release: Nov 11, 2023
  • Number of updates: 101
  • Update frequency: every 8.8 days
  • Top authors: ali7ali (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,591 total downloads


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
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.23ms] Passed 4 tests

Server-side resources used by Alpha Google Map For Elementor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0334.06 ▼4.08
Dashboard /wp-admin3.34 ▲0.0445.90 ▼3.50
Posts /wp-admin/edit.php3.39 ▲0.0348.29 ▲4.33
Add New Post /wp-admin/post-new.php5.92 ▲0.0391.06 ▼8.37
Media Library /wp-admin/upload.php3.26 ▲0.0334.77 ▲3.03

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Alpha Google Map For Elementor: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲6214.35 ▲0.011.63 ▼0.0736.65 ▼7.47
Dashboard /wp-admin2,211 ▲305.52 ▼0.2585.81 ▼22.3241.60 ▼3.13
Posts /wp-admin/edit.php2,119 ▲162.14 ▼0.0040.86 ▼0.0736.46 ▲4.68
Add New Post /wp-admin/post-new.php1,540 ▲1023.24 ▲0.08596.83 ▼14.6454.99 ▲6.08
Media Library /wp-admin/upload.php1,419 ▲164.26 ▼0.02102.00 ▼0.6342.39 ▼3.65

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/alpha-google-map-for-elementor/index.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: alpha, premium, page builder, google, landing page...

alpha-google-map-for-elementor/alpha-google-map-for-elementor.php Passed 13 tests

The principal PHP file in "Alpha Google Map For Elementor" v. 1.0.9 is loaded by WordPress automatically on each request
42 characters long description:
Premium Google Map features for WordPress.

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
Good job! No executable or dangerous file extensions detected1,318 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity23.00
▷ Minimum class complexity22.00
▷ Maximum class complexity24.00
Average method complexity3.10
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
▷ Static methods14.76%
▷ Public methods1990.48%
▷ Protected methods29.52%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants777.78%
▷ Class constants222.22%
▷ Public constants2100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/alpha-pin.png2.46KB2.03KB▼ 17.57%
assets/img/alpha-pin-hover.png2.33KB2.02KB▼ 13.13%