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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.18 | 39.90 ▲2.16 |
Dashboard /wp-admin | 3.48 ▲0.17 | 53.55 ▲5.43 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 44.87 ▼1.85 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.17 | 83.59 ▼10.54 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 33.16 ▼1.99 |
Settings /wp-admin/edit.php?post_type=points_image&page=devvn-image-hotspot | 3.40 | 39.91 |
Add New /wp-admin/post-new.php?post_type=points_image | 3.52 | 48.63 |
All Items /wp-admin/edit.php?post_type=points_image | 3.47 | 39.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,929 ▲168 | 13.47 ▼0.88 | 9.61 ▲7.63 | 41.63 ▲0.77 |
Dashboard /wp-admin | 2,226 ▲58 | 5.61 ▲0.03 | 86.10 ▼2.05 | 39.58 ▼1.56 |
Posts /wp-admin/edit.php | 2,125 ▲28 | 2.04 ▲0.01 | 33.63 ▼4.27 | 35.49 ▲2.00 |
Add New Post /wp-admin/post-new.php | 1,549 ▲21 | 23.28 ▲0.21 | 641.49 ▼24.52 | 68.69 ▲18.18 |
Media Library /wp-admin/upload.php | 1,425 ▲25 | 4.18 ▼0.02 | 107.98 ▲14.29 | 47.09 ▲5.20 |
Settings /wp-admin/edit.php?post_type=points_image&page=devvn-image-hotspot | 1,048 | 3.13 | 49.26 | 56.90 |
Add New /wp-admin/post-new.php?post_type=points_image | 2,379 | 7.28 | 152.30 | 94.13 |
All Items /wp-admin/edit.php?post_type=points_image | 1,270 | 3.46 | 44.29 | 25.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)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 63 | 17 | 789 |
PHP | 5 | 70 | 52 | 771 |
JavaScript | 5 | 10 | 62 | 276 |
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 code | 0.56 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 27 | |
▷ Named functions | 27 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 72.12KB | 34.03KB | ▼ 52.81% |
screenshot-1.png | 159.60KB | 56.27KB | ▼ 64.74% |