90% support-webp

Code Review | Support WebP

WordPress plugin Support WebP scored90%from 54 tests.

About plugin

  • Plugin page: support-webp
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2.2
  • WordPress version: 6.3.1
  • First release: Feb 23, 2021
  • Latest release: Jun 10, 2023
  • Number of updates: 15
  • Update frequency: every 55.8 days
  • Top authors: sayedulsayem (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

3,000+ active /7,460 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

Server-side resources used by Support WebP
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.23 ▲4.07
Dashboard /wp-admin3.32 ▲0.0250.20 ▼2.52
Posts /wp-admin/edit.php3.38 ▲0.0248.53 ▼1.53
Add New Post /wp-admin/post-new.php5.91 ▲0.0294.83 ▼11.25
Media Library /wp-admin/upload.php3.25 ▲0.0237.12 ▼1.73

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Support WebP
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.62 ▲0.012.47 ▲0.4341.98 ▼0.34
Dashboard /wp-admin2,195 ▲155.64 ▼0.0293.58 ▲5.7341.02 ▼5.52
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0239.72 ▲0.2936.82 ▼1.18
Add New Post /wp-admin/post-new.php1,526 ▼023.40 ▲0.38640.65 ▼34.2552.32 ▼13.75
Media Library /wp-admin/upload.php1,403 ▲64.18 ▼0.05100.71 ▼3.0743.17 ▼1.09

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: support, media, image, safe, webp

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

Analyzing the main PHP file in "Support WebP" version 1.0.1
73 characters long description:
This plugin will allow you to upload webp format image on wordpress media

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin62 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3206462

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.57
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods7
▷ Static methods114.29%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants4
▷ Global constants4100.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 files were detected