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.06MB] [CPU: ▼2.38ms] Passed 4 tests
Analyzing server-side resources used by Zoom Image
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 36.42 ▼5.70 |
Dashboard /wp-admin | 3.37 ▲0.06 | 45.24 ▼3.70 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 46.44 ▼1.60 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 93.51 ▲4.51 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.29 ▲1.50 |
Zoom Image /wp-admin/options-general.php?page=zoom-image | 3.24 | 30.58 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
zoom_image_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Zoom Image
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,893 ▲147 | 13.60 ▼0.95 | 7.27 ▲5.61 | 38.62 ▼7.70 |
Dashboard /wp-admin | 2,218 ▲44 | 5.82 ▲0.24 | 96.63 ▼0.76 | 41.19 ▼5.99 |
Posts /wp-admin/edit.php | 2,128 ▲25 | 2.30 ▲0.29 | 42.03 ▲2.82 | 35.81 ▲2.50 |
Add New Post /wp-admin/post-new.php | 1,552 ▲26 | 18.38 ▼4.67 | 614.67 ▲9.52 | 44.97 ▼9.34 |
Media Library /wp-admin/upload.php | 1,417 ▲20 | 4.52 ▲0.28 | 101.34 ▲0.22 | 42.04 ▼1.68 |
Zoom Image /wp-admin/options-general.php?page=zoom-image | 905 | 1.94 | 26.35 | 28.76 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- zoom_image_options
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
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
- > GET request to /wp-admin/options-general.php?page=zoom-image
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=zoom-image
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=zoom-image
- > Notice in wp-content/plugins/zoom-image/zoom-image.php+166
Undefined index: zoom_type
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
Please take a closer look at the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/zoom-image/zoom-image.php:26
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/zoom-image/zoom-image.php on line 22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
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
Please fix the following attributes:
- Screenshots: Screenshot #1 (Normal Zoom Image behavior2. Inner zoom effect applied3. Zoom Image Settings page) image required
zoom-image/zoom-image.php Passed 13 tests
The entry point to "Zoom Image" version 1.7.1 is a PHP file that has certain tags in its header comment area
112 characters long description:
Add zoom efect over featured image, thumbnails and variations on WooCommerce shops in a simple and elegant mode.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin384 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 71 | 36 | 273 |
JavaScript | 3 | 43 | 2 | 111 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 16 | |
▷ Static methods | 1 | 6.25% |
▷ Public methods | 16 | 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 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin