90% disable-jpeg-image-compression

Code Review | Disable JPEG Image Compression

WordPress plugin Disable JPEG Image Compression scored 90% from 54 tests.

About plugin

  • Plugin page: disable-jpeg-imag...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.3
  • WordPress version: 6.3.1
  • First release: Jan 1, 2020
  • Latest release: Jan 1, 2020
  • Number of updates: 2
  • Update frequency: every 1.5 days
  • Top authors: hybridwebs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 494 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼1.95ms] Passed 4 tests

Analyzing server-side resources used by Disable JPEG Image Compression
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.67 ▼2.64
Dashboard /wp-admin3.31 ▲0.0145.19 ▼4.59
Posts /wp-admin/edit.php3.36 ▲0.0044.98 ▼0.80
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.41 ▲2.27
Media Library /wp-admin/upload.php3.23 ▲0.0035.87 ▲0.25

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
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Disable JPEG Image Compression
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.16 ▼1.221.85 ▼0.0740.96 ▼6.41
Dashboard /wp-admin2,209 ▲184.83 ▼0.0498.48 ▼2.6539.19 ▼2.84
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0337.25 ▲1.3035.04 ▼3.22
Add New Post /wp-admin/post-new.php1,514 ▼017.65 ▲0.15598.70 ▼63.1854.68 ▼3.14
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.0699.49 ▼2.6441.86 ▼1.52

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Contributors: The plugin contributors field is missing
Please take inspiration from this readme.txt

disable-jpeg-image-compression/disable-jpeg-image-compression.php Passed 13 tests

The main file in "Disable JPEG Image Compression" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
76 characters long description:
Easily Disable Wordpress Image (JPEG) compression, which enabled by default.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected8 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17208

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin