Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/kraken-image-optimizer/kraken.php+53
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.52MB] [CPU: ▼51.68ms] Passed 4 tests
Analyzing server-side resources used by Kraken.io Image Optimizer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.47 ▼1.00 | 7.02 ▼32.01 |
Dashboard /wp-admin | 2.49 ▼0.82 | 9.53 ▼35.20 |
Posts /wp-admin/edit.php | 2.49 ▼0.87 | 8.56 ▼42.59 |
Add New Post /wp-admin/post-new.php | 2.49 ▼3.40 | 7.12 ▼96.92 |
Media Library /wp-admin/upload.php | 2.49 ▼0.74 | 7.01 ▼31.62 |
Kraken.io /wp-admin/options-general.php?page=wp-krakenio | 2.49 | 7.16 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Kraken.io Image Optimizer
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.34 ▼0.26 | 1.68 ▼0.06 | 36.52 ▼7.98 |
Dashboard /wp-admin | 2,202 ▲22 | 5.66 ▼0.05 | 80.84 ▼5.91 | 39.61 ▼3.44 |
Posts /wp-admin/edit.php | 2,101 ▼2 | 1.95 ▼0.09 | 39.92 ▼2.12 | 37.17 ▲0.54 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 22.67 ▼0.36 | 645.06 ▲17.71 | 54.21 ▼7.36 |
Media Library /wp-admin/upload.php | 1,405 ▲5 | 4.21 ▼0.02 | 96.54 ▼0.58 | 41.40 ▼1.68 |
Kraken.io /wp-admin/options-general.php?page=wp-krakenio | 1,663 | 1.72 | 26.65 | 36.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/kraken-image-optimizer/kraken.php+53
Trying to access array offset on value of type bool
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=wp-krakenio
- > Notice in wp-content/plugins/kraken-image-optimizer/kraken.php+53
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/kraken-image-optimizer/kraken.php:52
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: You are using too many tags: 25 tag instead of maximum 10
kraken-image-optimizer/kraken.php 92% from 13 tests
Analyzing the main PHP file in "Kraken.io Image Optimizer" version 2.6.8
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("kraken-image-optimizer.php" instead of "kraken.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin3,205 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 213 | 60 | 1,644 |
PHP | 2 | 212 | 59 | 1,161 |
CSS | 4 | 30 | 4 | 400 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 111.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 216.00 |
Average method complexity | 6.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 3 | 7.32% |
▷ Public methods | 40 | 97.56% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.44% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
No PNG files were detected