Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.20ms] Passed 4 tests
A check of server-side resources used by Interactive Image
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.91 ▲1.83 |
Dashboard /wp-admin | 3.34 ▲0.04 | 50.27 ▲2.54 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 48.65 ▲1.43 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 81.05 ▼14.60 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 39.64 ▲5.62 |
Server storage [IO: ▲0.09MB] [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: 19 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_interactive_image_data |
wp_interactive_image |
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Interactive Image: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,952 ▲165 | 14.60 ▲0.26 | 1.80 ▼0.17 | 43.32 ▼0.70 |
Dashboard /wp-admin | 2,360 ▲180 | 6.33 ▲0.68 | 111.94 ▲24.39 | 78.23 ▲39.77 |
Posts /wp-admin/edit.php | 2,288 ▲185 | 3.49 ▲1.54 | 47.20 ▲11.83 | 71.62 ▲33.25 |
Add New Post /wp-admin/post-new.php | 1,703 ▲177 | 22.22 ▼1.02 | 621.45 ▼87.94 | 28.18 ▼39.56 |
Media Library /wp-admin/upload.php | 1,428 ▲28 | 4.28 ▲0.11 | 83.98 ▼11.90 | 92.84 ▲47.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/interactive-image/views/shortcode.tpl.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/interactive-image/interactive-image.php:27
- > PHP Notice
Undefined variable: interactive_image in wp-content/plugins/interactive-image/views/shortcode.tpl.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/interactive-image/views/interactive_images_list.php:38
- > PHP Notice
Trying to get property 'id' of non-object in wp-content/plugins/interactive-image/views/shortcode.tpl.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/interactive-image/views/interactive_image_creator.php:1
- > 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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: hotspot, zone, image, interactive, draw
interactive-image/interactive-image.php 85% from 13 tests
Analyzing the main PHP file in "Interactive Image" version 1.12
Please make the necessary changes and fix the following:
- Domain Path: Please prefix the domain path with a forward slash character ("/")
- Domain Path: Use only dashes and lowercase characters for the domain path ("")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin2,052 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 63 | 50 | 1,258 |
PHP | 4 | 426 | 40 | 497 |
JavaScript | 3 | 186 | 38 | 248 |
SVG | 1 | 0 | 1 | 49 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
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 | 11 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/save.png | 0.54KB | 0.39KB | ▼ 28.11% |
images/hotspot.png | 1.11KB | 1.09KB | ▼ 1.93% |
images/icon.png | 0.83KB | 0.87KB | 0.00% |
images/remove.png | 1.27KB | 1.20KB | ▼ 5.76% |
images/edit.png | 0.87KB | 0.87KB | 0.00% |