Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method responsive_images::activation() should not be called statically
Server metrics [RAM: ▼0.30MB] [CPU: ▼19.65ms] Passed 4 tests
An overview of server-side resources used by Responsive Images
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 31.93 ▼7.70 |
Dashboard /wp-admin | 3.35 ▲0.01 | 44.24 ▼16.16 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 43.93 ▼4.97 |
Add New Post /wp-admin/post-new.php | 4.64 ▼1.24 | 43.31 ▼49.78 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.18 ▲4.05 |
Responsive Images /wp-admin/options-general.php?page=responsiveimages | 3.21 | 31.14 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
mobile_image |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Responsive Images: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.15 ▼1.47 | 1.89 ▲0.18 | 40.34 ▼3.48 |
Dashboard /wp-admin | 2,207 ▲22 | 5.84 ▼0.21 | 98.31 ▼10.24 | 38.87 ▼7.49 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▲0.01 | 35.03 ▼8.55 | 33.81 ▼0.99 |
Add New Post /wp-admin/post-new.php | 1,545 ▲12 | 18.49 ▼4.91 | 625.03 ▼45.26 | 54.34 ▼3.32 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.20 ▲0.02 | 96.05 ▼5.41 | 43.25 ▲0.32 |
Responsive Images /wp-admin/options-general.php?page=responsiveimages | 828 | 2.02 | 25.53 | 30.30 |
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
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method responsive_images::deactivation() should not be called statically
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- can_compress_scripts
- mobile_image
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=responsiveimages
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=responsiveimages
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/responsive-images/responsive-images.php:33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== responsive-images ===
) - Screenshots: Screenshot #1 (screenshot-1.png View of example the plugin) image missing
responsive-images/responsive-images.php Passed 13 tests
This is the main PHP file of "Responsive Images" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
107 characters long description:
Take a different image adapted to each kind of dispositive to have a better responsive system in your page.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected169 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 72 | 53 | 169 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin