78% gmaps-for-visual-composer-free

Code Review | GMAPS for WPBakery Page Builder Free

WordPress plugin GMAPS for WPBakery Page Builder Free scored78%from 54 tests.

About plugin

  • Plugin page: gmaps-for-visual-...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.3.2
  • WordPress version: 6.3.1
  • First release: Jun 6, 2016
  • Latest release: Feb 13, 2020
  • Number of updates: 9
  • Update frequency: every 149.6 days
  • Top authors: iulianba (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active /8,808 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by GMAPS for WPBakery Page Builder Free
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.28 ▼2.63
Dashboard /wp-admin3.35 ▲0.0548.57 ▲2.93
Posts /wp-admin/edit.php3.40 ▲0.0547.73 ▲1.93
Add New Post /wp-admin/post-new.php5.93 ▲0.0596.16 ▲14.01
Media Library /wp-admin/upload.php3.27 ▲0.0537.62 ▲5.34

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by GMAPS for WPBakery Page Builder Free
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲9014.17 ▼0.1724.10 ▲22.3040.34 ▼3.51
Dashboard /wp-admin2,212 ▲244.84 ▼1.05119.02 ▲0.7743.98 ▲0.16
Posts /wp-admin/edit.php2,094 ▲52.00 ▲0.0336.36 ▼1.2934.53 ▲0.12
Add New Post /wp-admin/post-new.php1,534 ▲1523.34 ▲0.26663.47 ▼11.0060.48 ▲10.32
Media Library /wp-admin/upload.php1,394 ▲34.21 ▼0.04136.51 ▲41.0556.93 ▲11.76

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/gmaps-for-visual-composer-free/wwp-vc-gmaps-free.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gmaps-for-visual-composer-free/include/core/wwp_vc_gmaps_free.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Screenshots: Please add an image for screenshot #4 (API Key Settings)
You can look at the official readme.txt

gmaps-for-visual-composer-free/wwp-vc-gmaps-free.php 92% from 13 tests

"GMAPS for WPBakery Page Builder Free" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("gmaps-for-visual-composer-free.php" instead of "wwp-vc-gmaps-free.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected299 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2439296
CSS1003

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
There were not PNG files found in your plugin