90% disable-webp

Code Review | Disable WebP

WordPress plugin Disable WebP scored90%from 54 tests.

About plugin

  • Plugin page: disable-webp
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.1
  • WordPress version: 6.3.1
  • First release: Aug 19, 2022
  • Latest release: Nov 4, 2022
  • Number of updates: 6
  • Update frequency: every 12.8 days
  • Top authors: urbanbase (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /617 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.20ms] Passed 4 tests

This is a short check of server-side resources used by Disable WebP
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.84 ▲3.65
Dashboard /wp-admin3.33 ▲0.0244.76 ▼4.59
Posts /wp-admin/edit.php3.38 ▲0.0247.33 ▲1.68
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.63 ▼2.22
Media Library /wp-admin/upload.php3.25 ▲0.0236.09 ▲0.35
Disable WebP /wp-admin/options-general.php?page=disable-webp3.2230.07

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
ubdw_disable_webp
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Disable WebP
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.39 ▲0.041.99 ▲0.2941.03 ▲1.80
Dashboard /wp-admin2,202 ▲215.62 ▼0.0494.20 ▼7.8943.01 ▲2.01
Posts /wp-admin/edit.php2,104 ▲42.04 ▲0.0140.82 ▲4.3737.20 ▲2.19
Add New Post /wp-admin/post-new.php1,531 ▼623.02 ▼2.10678.73 ▲52.0860.93 ▼2.40
Media Library /wp-admin/upload.php1,407 ▲44.37 ▲0.19103.91 ▲4.9844.83 ▼5.00
Disable WebP /wp-admin/options-general.php?page=disable-webp8481.9825.9032.97

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% 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
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: convert, optimize, image, webp, media...

disable-webp/disable-webp.php Passed 13 tests

"Disable WebP" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
64 characters long description:
A small plugin to disable the new WebP standard in the settings.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin108 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2102261
PO File1101047

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There are no PNG files in this plugin