88% hotspot-addon-for-elementor

Code Review | Hotspot addon for elementor

WordPress plugin Hotspot addon for elementor scored88%from 54 tests.

About plugin

  • Plugin page: hotspot-addon-for...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.0
  • WordPress version: 6.3.1
  • First release: Oct 14, 2022
  • Latest release: Oct 14, 2022
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: kardi420 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /628 total downloads

Benchmarks

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
Install script ran successfully

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

Analyzing server-side resources used by Hotspot addon for elementor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0341.79 ▲4.40
Dashboard /wp-admin3.34 ▲0.0449.88 ▼6.21
Posts /wp-admin/edit.php3.39 ▲0.0343.54 ▼2.37
Add New Post /wp-admin/post-new.php5.92 ▲0.0382.65 ▼16.98
Media Library /wp-admin/upload.php3.26 ▲0.0336.07 ▼0.06

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Hotspot addon for elementor: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7213.24 ▼1.404.68 ▲2.7942.53 ▼1.57
Dashboard /wp-admin2,224 ▲365.80 ▲0.90114.16 ▲8.1243.21 ▼2.43
Posts /wp-admin/edit.php2,106 ▲172.01 ▼0.0334.64 ▼2.0434.59 ▲1.36
Add New Post /wp-admin/post-new.php1,546 ▲2623.07 ▼0.21682.10 ▲28.6454.00 ▼3.98
Media Library /wp-admin/upload.php1,406 ▲184.32 ▲0.12105.02 ▲6.2743.62 ▼2.31

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 79% from 29 tests

readme.txt 81% 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
These attributes need your attention:
  • Screenshots: Add images for these screenshots: #1 (The front-end view screenshot.png), #2 (The Elementor view screenshot_2.jpg)
  • Screenshots: A description for screenshot #0 is missing in hotspot-addon-for-elementor/assets to your readme.txt
  • Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

hotspot-addon-for-elementor/wtt-hotspot-elementor-extension.php 77% from 13 tests

The main PHP script in "Hotspot addon for elementor" version 1.0.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("hotspot-addon-for-elementor.php" instead of "wtt-hotspot-elementor-extension.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin3,297 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS313142,458
PHP2151167824
JavaScript18015

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity11.50
▷ Minimum class complexity8.00
▷ Maximum class complexity15.00
Average method complexity2.05
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods20
▷ Static methods15.00%
▷ Public methods1680.00%
▷ Protected methods420.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/icon.png2.83KB0.94KB▼ 66.76%