10% disable-responsive-images

Code Review | Disable Responsive Images

WordPress plugin Disable Responsive Images scored10%from 54 tests.

About plugin

  • Plugin page: disable-responsiv...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.2
  • WordPress version: 6.3.1
  • First release: Dec 13, 2015
  • Latest release: Jul 19, 2019
  • Number of updates: 6
  • Update frequency: every 219.0 days
  • Top authors: JoeFusco (66.67%)Otto42 (50%)

Code review

54 tests

User reviews

16 reviews

Install metrics

1,000+ active /17,868 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-content/plugins/disable-responsive-images/disable-responsive-images.php+11
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼53.29ms] Passed 4 tests

This is a short check of server-side resources used by Disable Responsive Images
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.445.18 ▼36.31
Dashboard /wp-admin2.05 ▼1.265.53 ▼46.71
Posts /wp-admin/edit.php2.05 ▼1.315.02 ▼42.92
Add New Post /wp-admin/post-new.php2.05 ▼3.845.30 ▼87.21
Media Library /wp-admin/upload.php2.05 ▼1.185.72 ▼30.58

Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Disable Responsive Images
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.74 ▲0.151.73 ▼0.0842.28 ▲0.71
Dashboard /wp-admin2,206 ▲155.86 ▲0.0598.17 ▼7.2442.13 ▼1.55
Posts /wp-admin/edit.php2,089 ▼31.99 ▼0.0136.84 ▼3.6532.66 ▼5.01
Add New Post /wp-admin/post-new.php1,542 ▲823.04 ▲0.01650.12 ▼15.2752.84 ▲3.01
Media Library /wp-admin/upload.php1,391 ▲94.22 ▲0.09101.32 ▲2.5048.08 ▲4.02

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/disable-responsive-images/disable-responsive-images.php+11
    Function create_function() is deprecated
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/disable-responsive-images/disable-responsive-images.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: disable, responsive, images, srcset

disable-responsive-images/disable-responsive-images.php 92% from 13 tests

"Disable Responsive Images" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 192 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected3 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1283

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin