Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.54MB] [CPU: ▼12.97ms] Passed 4 tests
An overview of server-side resources used by Image Mapper
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.14 | 45.93 ▲1.19 |
Dashboard /wp-admin | 3.51 ▲0.16 | 55.55 ▲7.36 |
Posts /wp-admin/edit.php | 3.63 ▲0.23 | 59.99 ▲4.86 |
Add New Post /wp-admin/post-new.php | 3.33 ▼2.60 | 36.75 ▼62.45 |
Media Library /wp-admin/upload.php | 3.41 ▲0.14 | 44.83 ▲4.51 |
Add New /wp-admin/post-new.php?post_type=image_maps | 3.33 | 36.08 |
View All /wp-admin/edit.php?post_type=image_maps | 3.48 | 42.48 |
Server storage [IO: ▲1.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 51 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Image Mapper
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,169 ▲408 | 15.73 ▲1.57 | 6.87 ▲5.24 | 43.90 ▲0.10 |
Dashboard /wp-admin | 2,439 ▲268 | 6.53 ▲0.92 | 120.35 ▲30.91 | 37.96 ▼1.36 |
Posts /wp-admin/edit.php | 2,377 ▲280 | 3.61 ▲1.62 | 60.12 ▲19.86 | 37.89 ▲1.68 |
Add New Post /wp-admin/post-new.php | 1,779 ▲242 | 22.22 ▲3.81 | 627.35 ▼12.42 | 36.71 ▼29.20 |
Media Library /wp-admin/upload.php | 1,501 ▲101 | 4.34 ▲0.17 | 83.36 ▼25.28 | 45.73 ▲1.00 |
Add New /wp-admin/post-new.php?post_type=image_maps | 2,881 | 8.09 | 188.66 | 106.69 |
View All /wp-admin/edit.php?post_type=image_maps | 1,387 | 3.54 | 47.73 | 30.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=image_maps
- > Notice in wp-content/plugins/image-mapper/includes/settings.class.php+8
Undefined index: post_ID
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=image_maps
- > Notice in wp-content/plugins/image-mapper/includes/settings.class.php+11
Trying to get property 'post_type' of non-object
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=image_maps
- > Notice in wp-content/plugins/image-mapper/includes/admin.class.php+132
Undefined index: post
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
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-mapper/includes/functions.php:61
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-mapper/includes/functions.php:61
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Tags: Please delete some tags, you are using 17 tag instead of maximum 10
image-mapper/image-mapper-plugin.php 92% from 13 tests
This is the main PHP file of "Image Mapper" version 0.2.5.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("image-mapper.php" instead of "image-mapper-plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin8,341 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 998 | 46 | 5,555 |
JavaScript | 10 | 693 | 197 | 2,144 |
PHP | 6 | 143 | 68 | 642 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 7.33 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 2.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
22 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
fancybox/fancybox-y.png | 0.17KB | 0.24KB | 0.00% |
images/edit.png | 0.33KB | 0.29KB | ▼ 11.94% |
fancybox/fancybox-x.png | 0.20KB | 0.31KB | 0.00% |
fancybox/fancy_nav_right.png | 1.42KB | 1.66KB | 0.00% |
fancybox/fancy_title_left.png | 0.49KB | 0.82KB | 0.00% |