Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼3.68ms] Passed 4 tests
An overview of server-side resources used by ImageKit - URL based image manipulation and optimization
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 41.47 ▼3.67 |
Dashboard /wp-admin | 3.45 ▲0.14 | 48.97 ▼4.47 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 55.89 ▲4.03 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 94.03 ▼8.90 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 37.31 ▲2.34 |
ImageKit settings /wp-admin/options-general.php?page=imagekit-setting | 3.36 | 496.12 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by ImageKit - URL based image manipulation and optimization
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.28 ▼0.07 | 1.77 ▲0.13 | 45.86 ▲4.79 |
Dashboard /wp-admin | 2,199 ▲22 | 5.59 ▼0.08 | 90.78 ▲1.32 | 41.99 ▼8.85 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.02 ▲0.04 | 39.71 ▲3.17 | 35.28 ▼0.46 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.15 ▼0.13 | 713.06 ▲54.71 | 60.15 ▲14.51 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.21 ▼0.03 | 97.24 ▼7.62 | 40.67 ▼4.79 |
ImageKit settings /wp-admin/options-general.php?page=imagekit-setting | 1,010 | 1.99 | 22.88 | 29.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means 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
The following issues need your attention
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/imagekit/imagekit.php:11
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin-install.php' (include_path='.:/usr/share/php') in wp-content/plugins/imagekit/includes/setting.php on line 2
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/imagekit/includes/setting.php on line 2
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin-install.php): failed to open stream: No such file or directory in wp-content/plugins/imagekit/includes/setting.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 17 tag instead of maximum 10
- Donate link: Please fix this invalid URI: ""
imagekit/imagekit.php 92% from 13 tests
This is the main PHP file of "ImageKit - URL based image manipulation and optimization" version 4.1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 318 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected2,557 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 263 | 0 | 1,403 |
PHP | 4 | 324 | 756 | 1,152 |
Markdown | 1 | 1 | 0 | 2 |
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.52 |
Average class complexity | 124.00 |
▷ Minimum class complexity | 45.00 |
▷ Maximum class complexity | 203.00 |
Average method complexity | 3.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 91 | |
▷ Static methods | 82 | 90.11% |
▷ Public methods | 85 | 93.41% |
▷ Protected methods | 4 | 4.40% |
▷ Private methods | 2 | 2.20% |
Functions | 9 | |
▷ Named functions | 7 | 77.78% |
▷ Anonymous functions | 2 | 22.22% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected