90% wp-enable-webp

Code Review | WP Enable WebP

WordPress plugin WP Enable WebP scored90%from 54 tests.

About plugin

  • Plugin page: wp-enable-webp
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.2.2
  • WordPress version: 6.3.1
  • First release: Dec 20, 2018
  • Latest release: Sep 16, 2019
  • Number of updates: 6
  • Update frequency: every 45.0 days
  • Top authors: eastsidecode (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

10,000+ active /75,158 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

An overview of server-side resources used by WP Enable WebP
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.53 ▼2.75
Dashboard /wp-admin3.31 ▲0.0142.23 ▼7.94
Posts /wp-admin/edit.php3.36 ▲0.0043.65 ▼0.33
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.44 ▼12.36
Media Library /wp-admin/upload.php3.23 ▲0.0034.45 ▲2.00

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WP Enable WebP
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.61 ▼0.774.30 ▲2.3740.30 ▼4.09
Dashboard /wp-admin2,203 ▲114.86 ▼0.0999.18 ▼8.0438.14 ▼0.07
Posts /wp-admin/edit.php2,089 ▼32.04 ▲0.0540.66 ▲5.9437.16 ▲3.52
Add New Post /wp-admin/post-new.php1,514 ▼1717.71 ▼5.45665.18 ▲79.4550.90 ▼7.69
Media Library /wp-admin/upload.php1,379 ▼64.20 ▲0.0297.08 ▼6.0743.09 ▼0.31

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
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 a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: webp, image format

wp-enable-webp/wp-enable-webp.php Passed 13 tests

"WP Enable WebP" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
46 characters long description:
WordPress plugin to enable WebP image uploads.

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 detected31 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1151131

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions4
▷ Named functions4100.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