Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▲378.50ms] 75% from 4 tests
An overview of server-side resources used by Image Hotspots
The following require your attention
- Extra CPU: Extra CPU usage should be kept under 200.00ms (currently 378.50ms on /wp-admin/upload.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.16 | 349.48 ▲309.70 |
Dashboard /wp-admin | 3.46 ▲0.16 | 428.60 ▲381.43 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 361.41 ▲318.57 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 596.43 ▲504.31 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 886.86 ▲852.81 |
Server storage [IO: ▲19.34MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widgetic/secret |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Image Hotspots
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 5,012 ▲2,266 | 30.89 ▲16.28 | 114.63 ▲112.90 | 32.42 ▼7.17 |
Dashboard /wp-admin | 3,576 ▲1,395 | 14.56 ▲8.84 | 254.16 ▲153.15 | 108.90 ▲69.44 |
Posts /wp-admin/edit.php | 3,406 ▲1,303 | 13.32 ▲11.33 | 183.67 ▲146.26 | 41.68 ▲10.26 |
Add New Post /wp-admin/post-new.php | 2,544 ▲1,010 | 29.67 ▲11.62 | 790.17 ▲171.82 | 65.28 ▼17.17 |
Media Library /wp-admin/upload.php | 1,798 ▲404 | 11.78 ▲7.56 | 246.71 ▲143.78 | 43.88 ▲1.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widgetic/secret
- theysaidso_admin_options
Smoke tests 75% 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)
Even though everything seems fine, this is not 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
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined variable: blockWidgetId in wp-content/plugins/image-hotspots-by-widgetic/block.php on line 29
- > PHP Notice
Undefined variable: blockPath in wp-content/plugins/image-hotspots-by-widgetic/block.php on line 29
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/image-hotspots-by-widgetic/dashboard.php:4
- > PHP Notice
Undefined variable: widgetMeta in wp-content/plugins/image-hotspots-by-widgetic/block.php on line 29
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-hotspots-by-widgetic/block.php:110
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Tags: You are using too many tags: 16 tag instead of maximum 10
image-hotspots-by-widgetic/index.php 92% from 13 tests
Analyzing the main PHP file in "Image Hotspots" version 1.0.0
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("image-hotspots-by-widgetic.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,522 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 5 | 0 | 0 | 909 |
CSS | 3 | 74 | 58 | 432 |
PHP | 4 | 30 | 55 | 170 |
SVG | 1 | 0 | 0 | 9 |
JavaScript | 2 | 0 | 1 | 2 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
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 | 11 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 11 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 7.29MB with 3.83MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 4.54KB | 1.41KB | ▼ 68.89% |
assets/banner-772x250.png | 11.77KB | 4.67KB | ▼ 60.33% |
assets/icon.png | 1.30KB | 0.50KB | ▼ 61.44% |
assets/banner-1544x500.png | 29.22KB | 8.07KB | ▼ 72.37% |
assets/screenshot-2.png | 232.32KB | 250.73KB | 0.00% |