84% webp-express-plus

Code Review | WebP Express Plus

WordPress plugin WebP Express Plus scored84%from 54 tests.

About plugin

  • Plugin page: webp-express-plus
  • Plugin version: 0.2.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1.1
  • WordPress version: 6.3.1
  • First release: May 23, 2021
  • Latest release: Nov 24, 2022
  • Number of updates: 24
  • Update frequency: every 23.0 days
  • Top authors: wp01ru (100%)

Code review

54 tests

User reviews

1 review

Install metrics

700+ active /4,094 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.30MB] [CPU: ▼8.48ms] Passed 4 tests

An overview of server-side resources used by WebP Express Plus
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.79 ▲0.3337.80 ▼1.61
Dashboard /wp-admin3.66 ▲0.3145.90 ▼13.05
Posts /wp-admin/edit.php3.71 ▲0.3547.56 ▼2.46
Add New Post /wp-admin/post-new.php6.17 ▲0.2882.23 ▼16.81
Media Library /wp-admin/upload.php3.52 ▲0.2841.60 ▲6.55
Webp Express Plus /wp-admin/options-general.php?page=webp-express-plus3.4833.46

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

WebP Express Plus: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.35 ▼0.241.77 ▲0.2838.70 ▼3.32
Dashboard /wp-admin2,199 ▲225.55 ▼0.1183.89 ▼6.9743.52 ▲2.62
Posts /wp-admin/edit.php2,104 ▲42.02 ▲0.0038.05 ▲1.0337.05 ▼2.38
Add New Post /wp-admin/post-new.php1,529 ▼423.66 ▲0.92683.11 ▲28.4658.74 ▼0.07
Media Library /wp-admin/upload.php1,404 ▲74.21 ▲0.0294.90 ▼26.2947.21 ▼2.24
Webp Express Plus /wp-admin/options-general.php?page=webp-express-plus8122.0022.5725.19

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 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 50% from 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/webp-express-plus/index.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: webp express, speed, webp, performance, images

webp-express-plus/index.php 85% from 13 tests

"WebP Express Plus" version 0.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 213 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("webp-express-plus.php" instead of "index.php")

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
No dangerous file extensions were detected1,931 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP23953111,801
PO File22634130

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity193.50
▷ Minimum class complexity138.00
▷ Maximum class complexity249.00
Average method complexity5.28
▷ Minimum method complexity1.00
▷ Maximum method complexity66.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods90
▷ Static methods11.11%
▷ Public methods7583.33%
▷ Protected methods1516.67%
▷ Private methods00.00%
Functions10
▷ Named functions330.00%
▷ Anonymous functions770.00%
Constants22
▷ Global constants22100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin