10% responsive-images

Code Review | Responsive Images

WordPress plugin Responsive Images scored10%from 54 tests.

About plugin

  • Plugin page: responsive-images
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2
  • WordPress version: 6.3.1
  • First release: May 4, 2015
  • Latest release: May 4, 2015
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: PedroEscudero (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,062 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0031.93 ▼7.70
Dashboard /wp-admin3.35 ▲0.0144.24 ▼16.16
Posts /wp-admin/edit.php3.40 ▲0.0543.93 ▼4.97
Add New Post /wp-admin/post-new.php4.64 ▼1.2443.31 ▼49.78
Media Library /wp-admin/upload.php3.27 ▲0.0435.18 ▲4.05
Responsive Images /wp-admin/options-general.php?page=responsiveimages3.2131.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.15 ▼1.471.89 ▲0.1840.34 ▼3.48
Dashboard /wp-admin2,207 ▲225.84 ▼0.2198.31 ▼10.2438.87 ▼7.49
Posts /wp-admin/edit.php2,093 ▲42.01 ▲0.0135.03 ▼8.5533.81 ▼0.99
Add New Post /wp-admin/post-new.php1,545 ▲1218.49 ▼4.91625.03 ▼45.2654.34 ▼3.32
Media Library /wp-admin/upload.php1,392 ▲44.20 ▲0.0296.05 ▼5.4143.25 ▲0.32
Responsive Images /wp-admin/options-general.php?page=responsiveimages8282.0225.5330.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

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
The official readme.txt is a good inspiration

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:
LanguageFilesBlank linesComment linesLines of code
PHP17253169

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 code0.33
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity2.36
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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