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
Installer ran successfully
Server metrics [RAM: ▲0.22MB] [CPU: ▼152.54ms] Passed 4 tests
This is a short check of server-side resources used by Hotspot
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.06 ▲0.23 | 34.32 ▼3.47 |
Dashboard /wp-admin | 3.29 ▲0.24 | 45.46 ▲8.92 |
Posts /wp-admin/edit.php | 3.40 ▲0.30 | 44.80 ▲3.12 |
Add New Post /wp-admin/post-new.php | 5.64 ▲0.21 | 97.39 ▼608.37 |
Media Library /wp-admin/upload.php | 3.23 ▲0.23 | 35.27 ▼1.42 |
All Items /wp-admin/edit.php?post_type=points_pin | 3.31 | 34.94 |
Add New /wp-admin/post-new.php?post_type=points_pin | 3.35 | 49.60 |
Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Hotspot
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,902 ▲330 | 16.70 ▲0.96 | 14.35 ▲2.30 | 47.26 ▼4.03 |
Dashboard /wp-admin | 3,060 ▲126 | 6.99 ▲0.99 | 136.46 ▼14.08 | 111.46 ▲0.08 |
Posts /wp-admin/edit.php | 2,856 ▲117 | 2.84 ▲0.14 | 72.75 ▲10.26 | 117.10 ▲26.42 |
Add New Post /wp-admin/post-new.php | 1,736 ▲64 | 19.00 ▲0.24 | 357.92 ▲17.69 | 130.22 ▲22.02 |
Media Library /wp-admin/upload.php | 1,912 ▲102 | 5.57 ▲0.55 | 133.69 ▼18.60 | 110.22 ▼14.43 |
All Items /wp-admin/edit.php?post_type=points_pin | 1,772 | 4.41 | 88.66 | 76.96 |
Add New /wp-admin/post-new.php?post_type=points_pin | 3,682 | 8.74 | 209.23 | 123.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% from 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 0% 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 take a closer look at the following
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/hotspot/hotspot.php
- > /wp-content/plugins/hotspot/admin/inc/add_shortcode_xolo_hotspot.php
- > /wp-content/plugins/hotspot/admin/inc/metabox-upgrade.php
- > /wp-content/plugins/hotspot/admin/inc/cpt-hotspot.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hotspot/admin/inc/xolo-hotspot-notices.php:55
- > PHP Fatal error
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: image, image hotspot, points, maps, hotspot
hotspot/hotspot.php Passed 13 tests
The main file in "Hotspot" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
103 characters long description:
Create an awesome pins for your image. It can be use for any highlighted points and dots on your image.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected2,904 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 180 | 21 | 1,373 |
PHP | 5 | 146 | 170 | 1,044 |
JavaScript | 5 | 47 | 86 | 487 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 4 | 26.67% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 21 | |
▷ Named functions | 21 | 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
PNG images were not found in this plugin