84% devvn-image-hotspot

Code Review | Image Hotspot by DevVN

WordPress plugin Image Hotspot by DevVN scored84%from 54 tests.

About plugin

  • Plugin page: devvn-image-hotspot
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.9.1
  • WordPress version: 6.3.1
  • First release: Sep 26, 2016
  • Latest release: Mar 5, 2022
  • Number of updates: 35
  • Update frequency: every 56.9 days
  • Top authors: levantoan (100%)

Code review

54 tests

User reviews

29 reviews

Install metrics

30,000+ active /202,734 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.18MB] [CPU: ▼3.06ms] Passed 4 tests

A check of server-side resources used by Image Hotspot by DevVN
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1839.90 ▲2.16
Dashboard /wp-admin3.48 ▲0.1753.55 ▲5.43
Posts /wp-admin/edit.php3.59 ▲0.2344.87 ▼1.85
Add New Post /wp-admin/post-new.php6.07 ▲0.1783.59 ▼10.54
Media Library /wp-admin/upload.php3.40 ▲0.1733.16 ▼1.99
Settings /wp-admin/edit.php?post_type=points_image&page=devvn-image-hotspot3.4039.91
Add New /wp-admin/post-new.php?post_type=points_image3.5248.63
All Items /wp-admin/edit.php?post_type=points_image3.4739.06

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Image Hotspot by DevVN
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,929 ▲16813.47 ▼0.889.61 ▲7.6341.63 ▲0.77
Dashboard /wp-admin2,226 ▲585.61 ▲0.0386.10 ▼2.0539.58 ▼1.56
Posts /wp-admin/edit.php2,125 ▲282.04 ▲0.0133.63 ▼4.2735.49 ▲2.00
Add New Post /wp-admin/post-new.php1,549 ▲2123.28 ▲0.21641.49 ▼24.5268.69 ▲18.18
Media Library /wp-admin/upload.php1,425 ▲254.18 ▼0.02107.98 ▲14.2947.09 ▲5.20
Settings /wp-admin/edit.php?post_type=points_image&page=devvn-image-hotspot1,0483.1349.2656.90
Add New /wp-admin/post-new.php?post_type=points_image2,3797.28152.3094.13
All Items /wp-admin/edit.php?post_type=points_image1,2703.4644.2925.59

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 5× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/devvn-image-hotspot/devvn-image-hotspot.php
    • > /wp-content/plugins/devvn-image-hotspot/admin/inc/cpt-ihotspot.php
    • > /wp-content/plugins/devvn-image-hotspot/admin/inc/metabox-donate.php
    • > /wp-content/plugins/devvn-image-hotspot/admin/inc/add_shortcode_devvn_ihotspot.php
    • > /wp-content/plugins/devvn-image-hotspot/admin/inc/settings.php

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)
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (screenshot-1.png), #2 (screenshot-2.png)
The official readme.txt might help

devvn-image-hotspot/devvn-image-hotspot.php Passed 13 tests

The entry point to "Image Hotspot by DevVN" version 1.2.2 is a PHP file that has certain tags in its header comment area
50 characters long description:
Image Hotspot help you add hotspot to your images.

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 detected1,836 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
CSS56317789
PHP57052771
JavaScript51062276

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions27
▷ Named functions27100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.23MB with 0.13MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png72.12KB34.03KB▼ 52.81%
screenshot-1.png159.60KB56.27KB▼ 64.74%