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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.18MB] [CPU: ▲3.03ms] Passed 4 tests
This is a short check of server-side resources used by Resize Images In Posts
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 64.90 ▲23.46 |
Dashboard /wp-admin | 3.52 ▲0.22 | 56.86 ▲2.49 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 60.07 ▲5.36 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 96.94 ▲1.39 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 39.95 ▲2.89 |
Resize Images In Posts /wp-admin/plugins.php?page=resize_images_in_posts | 3.55 | 43.20 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Resize Images In Posts
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,941 ▲141 | 14.75 ▲1.49 | 1.89 ▲0.12 | 42.29 ▼2.15 |
Dashboard /wp-admin | 2,350 ▲144 | 6.42 ▲1.55 | 135.80 ▲22.35 | 48.70 ▲3.84 |
Posts /wp-admin/edit.php | 2,253 ▲164 | 3.30 ▲1.26 | 55.82 ▲18.02 | 35.98 ▲0.61 |
Add New Post /wp-admin/post-new.php | 1,536 ▲13 | 23.38 ▲0.20 | 669.46 ▲7.43 | 39.10 ▼7.90 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.14 ▼0.08 | 80.23 ▼21.22 | 41.93 ▼5.08 |
Resize Images In Posts /wp-admin/plugins.php?page=resize_images_in_posts | 1,397 | 3.30 | 47.23 | 31.41 |
Uninstaller [IO: ✅] [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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/plugins.php?page=resize_images_in_posts
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at Object.init (/wp-content/plugins/resize-images-in-posts/includes/admin/js/admin-menu.js?ver=4.3:44:53)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/resize-images-in-posts/includes/admin/js/admin-menu.js?ver=4.3:114:75)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/plugins.php?page=resize_images_in_posts
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: images, posts, image, resize
resize-images-in-posts/resize-images-in-posts.php Passed 13 tests
This is the main PHP file of "Resize Images In Posts" version 4.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
101 characters long description:
This plugin will resize images in your posts. (Go to: Dashboard -> Plugins -> Resize Images in Posts)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,684 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 433 | 130 | 1,374 |
CSS | 1 | 48 | 0 | 234 |
JavaScript | 1 | 25 | 14 | 76 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 3 | |
▷ Static methods | 1 | 33.33% |
▷ Public methods | 1 | 33.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 66.67% |
Functions | 30 | |
▷ Named functions | 30 | 100.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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin