Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼1.62ms] Passed 4 tests
Analyzing server-side resources used by Just Responsive Images
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 45.14 ▲2.10 |
Dashboard /wp-admin | 3.41 ▲0.10 | 49.28 ▼0.45 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 52.63 ▲2.67 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 87.93 ▼10.80 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 42.06 ▲4.35 |
Uploads Cleanup /wp-admin/tools.php?page=jri_cleanup | 3.29 | 41.52 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options |
---|
just_responsive_images_version |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Just Responsive Images
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.74 ▲0.02 | 1.71 ▼0.46 | 46.88 ▲2.67 |
Dashboard /wp-admin | 2,199 ▲22 | 5.61 ▼0.01 | 89.89 ▲2.43 | 37.33 ▼2.84 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.97 ▼0.03 | 39.54 ▼1.27 | 36.59 ▲0.01 |
Add New Post /wp-admin/post-new.php | 1,538 ▲10 | 23.24 ▲0.14 | 688.99 ▲54.26 | 60.97 ▲4.23 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.14 ▼0.02 | 110.10 ▲7.97 | 48.99 ▲2.56 |
Uploads Cleanup /wp-admin/tools.php?page=jri_cleanup | 799 | 2.01 | 27.98 | 26.05 |
Uninstaller [IO: ▲0.00MB] [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
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- just_responsive_images_version
- theysaidso_admin_options
Smoke tests 50% 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/just-responsive-images/views/media/meta-box.php
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/just-responsive-images/just-responsive-images.php:51
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/just-responsive-images/views/cleanup/index.php:24
- > PHP Fatal error
Uncaught Error: Class 'jri\\core\\Controller' not found in wp-content/plugins/just-responsive-images/components/UploadsCleanup.php:13
- > PHP Fatal error
Uncaught Error: Class 'jri\\core\\Controller' not found in wp-content/plugins/just-responsive-images/components/MediaMetaInfo.php:11
- > 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 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Responsive image sizes declaration/config.), #2 (Template basic usage example.), #3 (Generated HTML.)
- Requires php: Version format is invalid
just-responsive-images/just-responsive-images.php 92% from 13 tests
This is the main PHP file of "Just Responsive Images" version 1.6.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 190 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 detected1,539 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 290 | 752 | 1,243 |
Markdown | 1 | 92 | 0 | 296 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 18.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 116.00 |
Average method complexity | 4.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 59 | |
▷ Static methods | 5 | 8.47% |
▷ Public methods | 46 | 77.97% |
▷ Protected methods | 13 | 22.03% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 2 | 40.00% |
▷ Class constants | 3 | 60.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.35MB with 0.27MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 143.29KB | 23.69KB | ▼ 83.47% |
screenshot-2.png | 47.70KB | 14.39KB | ▼ 69.83% |
screenshot-1.png | 164.50KB | 38.72KB | ▼ 76.46% |