Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲5.04MB] [CPU: ▲23.75ms] 75% from 4 tests
This is a short check of server-side resources used by ImagePilot - Save Money, Disk Space, and Bandwidth with Image Optimization
The following require your attention
- Extra RAM: The extra memory usage should kept under 5MB (currently 5.04MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.93 ▲5.47 | 67.89 ▲16.97 |
Dashboard /wp-admin | 8.95 ▲5.64 | 79.99 ▲22.39 |
Posts /wp-admin/edit.php | 8.95 ▲5.59 | 79.94 ▲23.47 |
Add New Post /wp-admin/post-new.php | 9.35 ▲3.47 | 135.68 ▲32.17 |
Media Library /wp-admin/upload.php | 8.95 ▲5.72 | 77.37 ▲39.24 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 8.95 | 65.44 |
Server storage [IO: ▲5.44MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 196 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
fs_accounts |
fs_debug_mode |
can_compress_scripts |
fs_active_plugins |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ImagePilot - Save Money, Disk Space, and Bandwidth with Image Optimization
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.34 ▼0.39 | 1.80 ▲0.05 | 32.12 ▼10.13 |
Dashboard /wp-admin | 2,224 ▲47 | 5.62 ▼0.05 | 84.57 ▼16.08 | 39.67 ▼3.15 |
Posts /wp-admin/edit.php | 2,130 ▲27 | 1.98 ▼0.02 | 36.60 ▼2.36 | 34.01 ▲1.11 |
Add New Post /wp-admin/post-new.php | 1,550 ▲22 | 20.73 ▼2.33 | 680.57 ▲23.95 | 63.37 ▲13.78 |
Media Library /wp-admin/upload.php | 1,429 ▲26 | 4.23 ▲0.01 | 97.22 ▼10.09 | 44.34 ▼1.70 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,081 | 1.69 | 24.18 | 27.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/imagepilot/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 9 options in the database
- fs_accounts
- fs_debug_mode
- db_upgraded
- can_compress_scripts
- fs_active_plugins
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/imagepilot/imagepilot.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5 in imagepilot/assets to your readme.txt
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
imagepilot/imagepilot.php Passed 13 tests
The main file in "ImagePilot - Save Money, Disk Space, and Bandwidth with Image Optimization" v. 0.1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
62 characters long description:
Easy to use plugin to compress images from WordPress dashboard
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin33,901 lines of code in 151 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 123 | 8,035 | 17,246 | 33,256 |
JavaScript | 4 | 52 | 904 | 380 |
Markdown | 1 | 68 | 0 | 214 |
CSS | 16 | 6 | 0 | 31 |
JSON | 1 | 0 | 0 | 14 |
SVG | 6 | 0 | 0 | 6 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please fix the following
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 86.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 52 | |
▷ Abstract classes | 2 | 3.85% |
▷ Concrete classes | 50 | 96.15% |
▷ Final classes | 0 | 0.00% |
Methods | 1,278 | |
▷ Static methods | 197 | 15.41% |
▷ Public methods | 889 | 69.56% |
▷ Protected methods | 17 | 1.33% |
▷ Private methods | 372 | 29.11% |
Functions | 101 | |
▷ Named functions | 100 | 99.01% |
▷ Anonymous functions | 1 | 0.99% |
Constants | 148 | |
▷ Global constants | 101 | 68.24% |
▷ Class constants | 47 | 31.76% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |