89% wpvivid-imgoptim

Code Review | Compress, Resize & Lazy Load Images - WPvivid Image Optimization

WordPress plugin Compress, Resize & Lazy Load Images - WPvivid Image Optimization scored89%from 54 tests.

About plugin

  • Plugin page: wpvivid-imgoptim
  • Plugin version: 0.9.20
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Mar 18, 2021
  • Latest release: Jul 6, 2023
  • Number of updates: 66
  • Update frequency: every 12.7 days
  • Top authors: wpvivid (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

10,000+ active /99,089 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.96MB] [CPU: ▼4.14ms] Passed 4 tests

An overview of server-side resources used by Compress, Resize & Lazy Load Images - WPvivid Image Optimization
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.97 ▲0.5143.24 ▲1.94
Dashboard /wp-admin4.41 ▲1.1159.89 ▲7.10
Posts /wp-admin/edit.php4.46 ▲1.1052.80 ▼0.30
Add New Post /wp-admin/post-new.php6.99 ▲1.1186.85 ▼20.80
Media Library /wp-admin/upload.php4.33 ▲1.1142.36 ▲2.59
API License /wp-admin/admin.php?page=wpvivid-imgoptim-license4.2440.83
CDN Integration /wp-admin/admin.php?page=wpvivid-cdn4.2435.39
Lazyload /wp-admin/admin.php?page=wpvivid-lazyload4.2436.26
Settings /wp-admin/admin.php?page=wpvivid-imgoptim-setting4.3243.97
Image Optimization /wp-admin/admin.php?page=WPvivid_ImgOptim4.3744.58

Server storage [IO: ▲1.08MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
Please try to fix the following items
  • You have illegally modified 2 files (0.01KB) outside of "wp-content/plugins/wpvivid-imgoptim/" and "wp-content/uploads/"
    • (new file) wp-content/wpvivid_image_optimization/log/index.html
    • (new file) wp-content/wpvivid_image_optimization/log/.htaccess
Filesystem: 40 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
wpvivid_imgoptim_overview
wpvivid_get_get_overview
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Compress, Resize & Lazy Load Images - WPvivid Image Optimization
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲4214.28 ▼0.331.78 ▼0.3542.75 ▼1.75
Dashboard /wp-admin2,234 ▲635.64 ▲0.1185.99 ▼5.3340.24 ▼0.05
Posts /wp-admin/edit.php2,139 ▲361.97 ▼0.0536.64 ▼6.1234.50 ▼5.00
Add New Post /wp-admin/post-new.php1,557 ▲1923.15 ▼0.06614.52 ▼63.7453.05 ▲2.29
Media Library /wp-admin/upload.php1,448 ▲544.21 ▲0.05104.17 ▲4.4645.16 ▼0.51
API License /wp-admin/admin.php?page=wpvivid-imgoptim-license1,1342.0026.6342.58
CDN Integration /wp-admin/admin.php?page=wpvivid-cdn1,1901.9528.1135.04
Lazyload /wp-admin/admin.php?page=wpvivid-lazyload1,2682.2229.7546.84
Settings /wp-admin/admin.php?page=wpvivid-imgoptim-setting1,3722.1129.3847.49
Image Optimization /wp-admin/admin.php?page=WPvivid_ImgOptim1,6482.2335.6948.38

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • wpvivid_get_get_overview

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 | 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 SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
These attributes need your attention:
  • Screenshots: These screenshots require images: #2 (Dashboard), #3 (Images optimization Settings)
You can look at the official readme.txt

wpvivid-imgoptim/wpvivid-imgoptim.php 92% from 13 tests

The main file in "Compress, Resize & Lazy Load Images - WPvivid Image Optimization" v. 0.9.20 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and 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 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin20,683 lines of code in 39 files:
LanguageFilesBlank linesComment linesLines of code
PHP302,7506,52518,486
CSS3142501,148
JavaScript6117151,049

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.33
Average class complexity80.96
▷ Minimum class complexity5.00
▷ Maximum class complexity417.00
Average method complexity5.57
▷ Minimum method complexity1.00
▷ Maximum method complexity84.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes28
▷ Abstract classes00.00%
▷ Concrete classes28100.00%
▷ Final classes00.00%
Methods490
▷ Static methods00.00%
▷ Public methods47897.55%
▷ Protected methods71.43%
▷ Private methods51.02%
Functions8
▷ Named functions450.00%
▷ Anonymous functions450.00%
Constants125
▷ Global constants125100.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