Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.30MB] [CPU: ▼4.41ms] Passed 4 tests
This is a short check of server-side resources used by WP Image Zoom
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 40.39 ▼3.28 |
Dashboard /wp-admin | 3.64 ▲0.30 | 45.98 ▼5.13 |
Posts /wp-admin/edit.php | 3.75 ▲0.40 | 47.06 ▲8.23 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.34 | 83.13 ▼11.76 |
Media Library /wp-admin/upload.php | 3.56 ▲0.33 | 37.30 ▲2.52 |
Server storage [IO: ▲1.85MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 46 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by WP Image Zoom
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,934 ▲187 | 13.69 ▼0.44 | 10.53 ▲8.91 | 35.81 ▼8.16 |
Dashboard /wp-admin | 2,251 ▲73 | 5.52 ▼0.17 | 83.84 ▼25.56 | 92.94 ▲55.02 |
Posts /wp-admin/edit.php | 2,156 ▲56 | 2.00 ▲0.02 | 35.24 ▼6.03 | 35.39 ▼0.88 |
Add New Post /wp-admin/post-new.php | 1,582 ▲56 | 23.00 ▼0.09 | 769.35 ▲79.14 | 52.40 ▼21.36 |
Media Library /wp-admin/upload.php | 1,459 ▲59 | 4.22 ▲0.01 | 97.69 ▼3.25 | 86.25 ▲38.73 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-image-zoooom/includes/right_columns.php:5
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Tags: There are too many tags (29 tag instead of maximum 10)
wp-image-zoooom/image-zoooom.php 85% from 13 tests
Analyzing the main PHP file in "WP Image Zoom" version 1.54
Please take the time to fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("3.0.1" instead of "3.0.0")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-image-zoooom.php" instead of "image-zoooom.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected4,007 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 392 | 383 | 1,947 |
PO File | 3 | 334 | 362 | 933 |
JavaScript | 7 | 94 | 51 | 455 |
CSS | 4 | 2 | 35 | 408 |
SVG | 4 | 31 | 3 | 264 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 38.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 71.00 |
Average method complexity | 5.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 1 | 14.29% |
Methods | 61 | |
▷ Static methods | 18 | 29.51% |
▷ Public methods | 61 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 1.30MB with 0.42MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/silkypress_logo.png | 0.84KB | 0.64KB | ▼ 24.19% |
assets/images/product-gallery-zoom.png | 14.39KB | 7.70KB | ▼ 46.54% |
assets/images/tinyMCE_button.png | 1.50KB | 1.47KB | ▼ 2.34% |
assets/images/rating.png | 7.61KB | 5.24KB | ▼ 31.18% |
assets/images/img1_large.png | 1,206.25KB | 518.38KB | ▼ 57.03% |