94% vc-image-hotspot

Code Review | Image Hotspot With Tooltip For WPBakery Page Builder (formerly Visual Composer)

WordPress plugin Image Hotspot With Tooltip For WPBakery Page Builder (formerly Visual Composer) scored 94% from 53 tests.

About plugin

  • Plugin page: vc-image-hotspot
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.8
  • WordPress version: 5.8.1
  • First release: Sep 19, 2017
  • Latest release: Jul 26, 2021
  • Number of updates: 28
  • Update frequency: every 50.2 days
  • Top authors: themebon (100%)

Code review

53 tests

User reviews

4 reviews

Install metrics

900+ active / 15,061 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

Server-side resources used by Image Hotspot With Tooltip For WPBakery Page Builder (formerly Visual Composer)
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.83 ▲0.0032.51 ▼0.31
Dashboard /wp-admin3.06 ▲0.0141.93 ▼3.69
Posts /wp-admin/edit.php3.11 ▲0.0034.89 ▼12.09
Add New Post /wp-admin/post-new.php5.42 ▼0.0190.85 ▼1,155.66
Media Library /wp-admin/upload.php3.00 ▼0.0129.73 ▼8.54

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Image Hotspot With Tooltip For WPBakery Page Builder (formerly Visual Composer)
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,678 ▲9715.94 ▲0.406.90 ▼0.8946.68 ▲1.50
Dashboard /wp-admin2,962 ▲1125.91 ▲0.05134.06 ▼2.53104.35 ▲5.69
Posts /wp-admin/edit.php2,703 ▼32.82 ▲0.1365.14 ▼1.8998.43 ▲6.48
Add New Post /wp-admin/post-new.php1,653 ▼018.69 ▲0.08357.60 ▲1.33107.38 ▼0.85
Media Library /wp-admin/upload.php1,772 ▼04.98 ▼0.02151.35 ▼3.01113.57 ▼9.04

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/vc-image-hotspot/vc-image-hotspot.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: wpbakery page builder, tooltip, responsive, image mark, image point...

vc-image-hotspot/vc-image-hotspot.php 92% from 13 tests

The entry point to "Image Hotspot With Tooltip For WPBakery Page Builder (formerly Visual Composer)" version 1.2.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • 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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,979 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS2611,014
JavaScript520897713
PHP36117252

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected