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
Installer ran successfully
Server metrics [RAM: ▲1.07MB] [CPU: ▼0.39ms] Passed 4 tests
An overview of server-side resources used by Interactive Image Map Plugin - Draw Attention
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.42 ▲0.95 | 47.69 ▲5.10 |
Dashboard /wp-admin | 4.47 ▲1.12 | 54.38 ▼12.60 |
Posts /wp-admin/edit.php | 4.49 ▲1.13 | 60.20 ▲9.82 |
Add New Post /wp-admin/post-new.php | 7.00 ▲1.11 | 103.92 ▼2.20 |
Media Library /wp-admin/upload.php | 4.33 ▲1.09 | 42.98 ▲8.14 |
Import / Export /wp-admin/edit.php?post_type=da_image&page=import_export | 4.31 | 40.17 |
Upgrade to Pro /wp-admin/edit.php?post_type=da_image&page=da_upgrade_to_pro | 4.07 | 30.02 |
Edit Image /wp-admin/edit.php?post_type=da_image | 4.17 | 67.14 |
Server storage [IO: ▲2.20MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 194 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
drag-drop-file-types |
theysaidso_admin_options |
drag-drop-page-reload |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Interactive Image Map Plugin - Draw Attention: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲85 | 14.26 ▼0.13 | 1.92 ▲0.29 | 44.22 ▼2.72 |
Dashboard /wp-admin | 2,234 ▲57 | 5.55 ▼0.18 | 85.19 ▼15.66 | 40.41 ▼3.69 |
Posts /wp-admin/edit.php | 2,139 ▲36 | 2.06 ▲0.10 | 41.06 ▲0.63 | 35.31 ▼2.86 |
Add New Post /wp-admin/post-new.php | 6,412 ▲4,886 | 27.81 ▲4.79 | 872.60 ▲185.11 | 37.98 ▼28.11 |
Media Library /wp-admin/upload.php | 1,439 ▲42 | 4.29 ▲0.13 | 97.04 ▼2.77 | 40.55 ▼1.76 |
Import / Export /wp-admin/edit.php?post_type=da_image&page=import_export | 873 | 2.43 | 40.39 | 24.82 |
Upgrade to Pro /wp-admin/edit.php?post_type=da_image&page=da_upgrade_to_pro | 5,909 | 21.85 | 923.92 | 292.06 |
Edit Image /wp-admin/edit.php?post_type=da_image | 3,527 | 8.89 | 218.16 | 128.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall successfully, leaving 8 options in the database
- drag-drop-file-types
- drag-drop-page-reload
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Please fix the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/draw-attention/external/actions-scripts/format-changelog.php
- > /wp-content/plugins/draw-attention/public/views/public.php
- 60× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_admin_page_title() in wp-content/plugins/draw-attention/public/includes/lib/drag-drop-featured-image/assets/views/options.php:3
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/draw-attention/public/includes/lib/CMB2/includes/rest-api/CMB2_REST.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/draw-attention/public/includes/lib/CMB2/includes/helper-functions.php:131
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/draw-attention/public/views/more_info_template.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Radio' not found in wp-content/plugins/draw-attention/public/includes/lib/CMB2/includes/types/CMB2_Type_Taxonomy_Radio_Hierarchical.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/draw-attention/public/includes/lib/CMB2/includes/types/CMB2_Type_Text_Datetime_Timestamp.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function cmb2_dir() in wp-content/plugins/draw-attention/public/includes/lib/CMB2/includes/rest-api/CMB2_REST_Controller.php:4
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/draw-attention/public/includes/lib/CMB2/includes/types/CMB2_Type_Colorpicker.php:13
- > PHP Notice
Undefined variable: settings in wp-content/plugins/draw-attention/public/views/more_info_template.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/draw-attention/public/includes/lib/CMB2/includes/types/CMB2_Type_File.php:13
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/edit.php?post_type=da_image&page=da_upgrade_to_pro
- > Javascript (severe) in unknown
https://wpdrawattention.com/?utm_source=plugin&utm_medium=ads&utm_campaign=upgrade-pro&utm_content=admin-menu 1495:0 Uncaught ReferenceError: wp is not defined
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
Attributes that need to be fixed:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
draw-attention/draw-attention.php Passed 13 tests
"Interactive Image Map Plugin - Draw Attention" version 2.0.17's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
38 characters long description:
Create interactive images in WordPress
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
Everything looks great! No dangerous files found in this plugin23,779 lines of code in 127 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 79 | 2,678 | 7,044 | 9,404 |
CSS | 18 | 473 | 1,233 | 5,699 |
JSON | 2 | 0 | 0 | 4,264 |
JavaScript | 19 | 620 | 714 | 3,011 |
Markdown | 2 | 219 | 0 | 676 |
PO File | 5 | 217 | 339 | 562 |
SVG | 1 | 0 | 0 | 156 |
Ruby | 1 | 2 | 4 | 7 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 18.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 186.00 |
Average method complexity | 3.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 80 | |
▷ Abstract classes | 9 | 11.25% |
▷ Concrete classes | 71 | 88.75% |
▷ Final classes | 0 | 0.00% |
Methods | 639 | |
▷ Static methods | 106 | 16.59% |
▷ Public methods | 542 | 84.82% |
▷ Protected methods | 89 | 13.93% |
▷ Private methods | 8 | 1.25% |
Functions | 37 | |
▷ Named functions | 36 | 97.30% |
▷ Anonymous functions | 1 | 2.70% |
Constants | 16 | |
▷ Global constants | 6 | 37.50% |
▷ Class constants | 10 | 62.50% |
▷ Public constants | 10 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
26 compressed PNG files occupy 0.06MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/includes/lib/CMB2/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
public/includes/lib/CMB2/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
public/includes/lib/CMB2/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
public/includes/lib/CMB2/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
admin/assets/css/images/marker-icon-2x.png | 2.53KB | 2.52KB | 0.39% |