Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.94MB] [CPU: ▼36.61ms] Passed 4 tests
A check of server-side resources used by WP Supersized Image Map
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 48.42 ▲5.62 |
Dashboard /wp-admin | 3.01 ▼0.33 | 26.88 ▼36.07 |
Posts /wp-admin/edit.php | 3.01 ▼0.34 | 28.10 ▼31.28 |
Add New Post /wp-admin/post-new.php | 3.01 ▼2.87 | 24.82 ▼68.25 |
Media Library /wp-admin/upload.php | 3.01 ▼0.22 | 26.86 ▼10.83 |
Settings /wp-admin/admin.php?page=wp-supersized-image-map-settings | 3.01 | 35.21 |
Help /wp-admin/admin.php?page=wp-supersized-image-map-help | 3.01 | 29.09 |
Images /wp-admin/edit.php?post_type=sim_images | 3.02 | 26.44 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 73 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for WP Supersized Image Map
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,843 ▲82 | 14.36 ▲0.00 | 3.57 ▲1.62 | 43.23 ▼1.09 |
Dashboard /wp-admin | 2,233 ▲53 | 5.56 ▼0.03 | 85.41 ▼9.15 | 38.79 ▼0.47 |
Posts /wp-admin/edit.php | 2,138 ▲35 | 2.00 ▲0.06 | 43.14 ▲3.38 | 35.76 ▼1.52 |
Add New Post /wp-admin/post-new.php | 1,558 ▲32 | 22.41 ▼1.11 | 685.06 ▲1.80 | 51.99 ▼6.01 |
Media Library /wp-admin/upload.php | 1,435 ▲35 | 4.27 ▲0.04 | 92.78 ▼20.58 | 40.53 ▼6.83 |
Settings /wp-admin/admin.php?page=wp-supersized-image-map-settings | 865 | 1.65 | 37.02 | 36.90 |
Help /wp-admin/admin.php?page=wp-supersized-image-map-help | 827 | 2.02 | 26.30 | 27.13 |
Images /wp-admin/edit.php?post_type=sim_images | 1,108 | 1.91 | 30.01 | 30.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- 21 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=sim_images
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=sim_images
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- > GET request to /wp-admin/admin.php?page=wp-supersized-image-map-settings
- > Notice in wp-content/plugins/wp-supersized-image-map/functions/sim-admin.php+6
Undefined index: sim_hidden
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-supersized-image-map/includes/sim-shortcodes.php:81
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-supersized-image-map/includes/admin/column.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-supersized-image-map/wp-supersized-image-map.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function add_theme_support() in wp-content/plugins/wp-supersized-image-map/includes/thumbnails/sim-thumbnails.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-supersized-image-map/includes/defaults.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/wp-supersized-image-map/includes/sim-languages.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: Add an image for screenshot #1 (/tags/1.0/screenshot-1.jpg)
wp-supersized-image-map/wp-supersized-image-map.php Passed 13 tests
The primary PHP file in "WP Supersized Image Map" version 1.0 is used by WordPress to initiate all plugin functionality
49 characters long description:
Plugin for displaying a image map with supersized
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin4,174 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 12 | 593 | 468 | 1,889 |
PHP | 11 | 283 | 217 | 1,592 |
CSS | 7 | 57 | 70 | 252 |
HTML | 3 | 101 | 54 | 230 |
PO File | 2 | 87 | 104 | 211 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 205.00 |
▷ Minimum class complexity | 205.00 |
▷ Maximum class complexity | 205.00 |
Average method complexity | 6.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 65.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 3 | 8.57% |
▷ Public methods | 5 | 14.29% |
▷ Protected methods | 30 | 85.71% |
▷ Private methods | 0 | 0.00% |
Functions | 28 | |
▷ Named functions | 28 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 51 | |
▷ Global constants | 51 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
30 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/user/jquery.colorbox/images/overlay.png | 2.73KB | 0.09KB | ▼ 96.60% |
js/user/jquery.colorbox/images/loading_background.png | 0.15KB | 0.15KB | ▼ 0.64% |
js/user/supersized/img/nav-bg.png | 0.97KB | 0.26KB | ▼ 72.76% |
js/user/supersized/img/progress-bar.png | 0.91KB | 0.09KB | ▼ 89.67% |
js/user/supersized/img/thumb-back.png | 2.07KB | 1.31KB | ▼ 36.71% |