Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▲2.54ms] Passed 4 tests
An overview of server-side resources used by JS Image Zoom by csomorelwood
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.87 ▲0.91 |
Dashboard /wp-admin | 3.31 ▲0.01 | 52.18 ▲2.53 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 50.46 ▲3.53 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 88.56 ▲4.51 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.85 ▲3.17 |
JS Image Zoom by Csömör /wp-admin/options-general.php?page=image_zoom | 3.20 | 29.80 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
JS Image Zoom by csomorelwood: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲81 | 13.30 ▼1.08 | 1.81 ▲0.09 | 46.90 ▲3.32 |
Dashboard /wp-admin | 2,214 ▲23 | 4.86 ▼0.03 | 104.05 ▼15.12 | 40.30 ▼6.21 |
Posts /wp-admin/edit.php | 2,097 ▲5 | 2.01 ▼0.05 | 40.69 ▲5.80 | 35.40 ▲1.39 |
Add New Post /wp-admin/post-new.php | 1,359 ▼174 | 17.08 ▼5.89 | 579.94 ▼92.79 | 57.25 ▼7.83 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.18 ▼0.05 | 95.87 ▼7.05 | 42.87 ▼2.78 |
JS Image Zoom by Csömör /wp-admin/options-general.php?page=image_zoom | 769 | 2.02 | 24.57 | 28.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/js-image-zoom-by-csomor/image_zoom_by_csomorelwood.php:16
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: image, hover, image zoom, zoom on hover, zoom...
js-image-zoom-by-csomor/image_zoom_by_csomorelwood.php 92% from 13 tests
"JS Image Zoom by csomorelwood" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("js-image-zoom-by-csomor.php" instead of "image_zoom_by_csomorelwood.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin72 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 4 | 15 | 40 |
PHP | 1 | 8 | 13 | 26 |
CSS | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.00 |
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 | 4 | |
▷ Named functions | 4 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin