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.06MB] [CPU: ▼9.35ms] Passed 4 tests
This is a short check of server-side resources used by Image Point
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 40.04 ▼4.57 |
Dashboard /wp-admin | 3.38 ▲0.03 | 48.28 ▼17.85 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 51.48 ▲1.76 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 98.35 ▼14.85 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.97 ▼0.14 |
Image Points /wp-admin/edit.php?post_type=image_point | 3.37 | 43.49 |
Add Image Point /wp-admin/post-new.php?post_type=image_point | 3.36 | 49.55 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Image Point: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲84 | 14.47 ▲0.07 | 1.76 ▼0.05 | 44.26 ▲4.46 |
Dashboard /wp-admin | 2,230 ▲39 | 5.83 ▼0.02 | 102.39 ▼19.46 | 40.71 ▼1.66 |
Posts /wp-admin/edit.php | 2,116 ▲24 | 2.03 ▼0.08 | 36.94 ▼6.53 | 34.87 ▼0.32 |
Add New Post /wp-admin/post-new.php | 1,537 ▲23 | 17.65 ▲0.11 | 619.16 ▼52.63 | 56.43 ▲4.15 |
Media Library /wp-admin/upload.php | 1,409 ▲21 | 4.32 ▲0.00 | 98.61 ▼18.29 | 43.55 ▼5.08 |
Image Points /wp-admin/edit.php?post_type=image_point | 1,253 | 3.69 | 63.05 | 30.66 |
Add Image Point /wp-admin/post-new.php?post_type=image_point | 1,701 | 4.03 | 88.37 | 36.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/image-point/admin/templates/metabox-shortcode.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/image-point/trunk/image-point.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/image-point/admin/templates/metabox-preview.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/image-point/admin/templates/metabox-points.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/image-point/image-point.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/image-point/trunk/admin/templates/metabox-preview.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/image-point/trunk/admin/templates/metabox-points.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/image-point/trunk/admin/templates/metabox-shortcode.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== image-point ===
)
image-point/image-point.php Passed 13 tests
This is the main PHP file of "Image Point" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
55 characters long description:
A lightweight and responsive image map WordPress plugin
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
No dangerous file extensions were detected1,905 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 126 | 4 | 752 |
JavaScript | 3 | 184 | 60 | 663 |
PHP | 6 | 55 | 9 | 329 |
Sass | 1 | 8 | 0 | 161 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 12.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 3.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
trunk/admin/img/transparent.png | 0.09KB | 0.09KB | 0.00% |
admin/img/transparent.png | 0.09KB | 0.09KB | 0.00% |