73% webp-convert

Code Review | Webp Convert

WordPress plugin Webp Convert scored 73% from 54 tests.

About plugin

  • Plugin page: webp-convert
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 28, 2023
  • Latest release: Jun 28, 2023
  • Number of updates: 2
  • Update frequency: every 6.0 days
  • Top authors: maliyaumeshl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 101 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.93MB] [CPU: ▼36.85ms] Passed 4 tests

Server-side resources used by Webp Convert
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.75 ▼5.10
Dashboard /wp-admin3.02 ▼0.2933.25 ▼28.26
Posts /wp-admin/edit.php3.02 ▼0.3428.50 ▼29.33
Add New Post /wp-admin/post-new.php3.02 ▼2.8726.56 ▼75.34
Media Library /wp-admin/upload.php3.02 ▼0.2124.67 ▼14.45

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Webp Convert
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6913.26 ▼0.984.52 ▲2.8142.10 ▼13.37
Dashboard /wp-admin2,218 ▲305.86 ▼0.02125.46 ▲10.9749.94 ▲7.31
Posts /wp-admin/edit.php2,104 ▲122.01 ▲0.0240.20 ▼3.8233.16 ▼0.80
Add New Post /wp-admin/post-new.php1,550 ▲1623.51 ▲0.41659.39 ▼33.6454.51 ▼6.47
Media Library /wp-admin/upload.php1,403 ▲154.13 ▼0.05127.44 ▲10.7949.78 ▼2.66

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Warning in wp-content/plugins/webp-convert/admin/admin-menu.php+21
    _() expects exactly 1 parameter, 2 given
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/webp-convert/admin/admin-menu.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Requires at least: Invalid version format
  • Screenshots: Screenshot #1 (Screenshots 1) image missing
Please take inspiration from this readme.txt

webp-convert/webp-convert.php 92% from 13 tests

"Webp Convert" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

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
There were no executable files found in this plugin352 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP425114258
CSS23161
Markdown111033

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.49
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
PNG images were not found in this plugin