10% disable-images-compress

Code Review | Disable Images Compress

WordPress plugin Disable Images Compress scored10%from 54 tests.

About plugin

  • Plugin page: disable-images-co...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 29, 2017
  • Latest release: Aug 29, 2017
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: Sannikov1994 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /677 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/disable-images-compress/disable-images-compress.php+32
    Function create_function() is deprecated

Server metrics [RAM: ▼1.97MB] [CPU: ▼59.47ms] Passed 4 tests

A check of server-side resources used by Disable Images Compress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.48 ▼40.75
Dashboard /wp-admin2.05 ▼1.306.21 ▼60.25
Posts /wp-admin/edit.php2.05 ▼1.316.08 ▼44.93
Add New Post /wp-admin/post-new.php2.05 ▼3.848.10 ▼91.95
Media Library /wp-admin/upload.php2.05 ▼1.185.59 ▼31.61

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Disable Images Compress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲1814.30 ▼0.251.70 ▼0.2342.31 ▼1.44
Dashboard /wp-admin2,198 ▲215.63 ▲0.0791.32 ▼10.3637.68 ▼9.83
Posts /wp-admin/edit.php2,097 ▼32.01 ▲0.0339.17 ▲1.0833.93 ▼0.98
Add New Post /wp-admin/post-new.php1,526 ▼523.06 ▲0.07614.26 ▼32.1059.58 ▼3.81
Media Library /wp-admin/upload.php1,394 ▼64.11 ▼0.04103.10 ▼16.3646.05 ▼5.69

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/disable-images-compress/disable-images-compress.php+32
    Function create_function() is deprecated
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/disable-images-compress/disable-images-compress.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

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
There were not plugin tags detected

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

The principal PHP file in "Disable Images Compress" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 149 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected7 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16247

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin