84% easy-optimizer

Code Review | Lazy load images, videos, iframes, convert to WebP & AVIF - EasyOptimizer

WordPress plugin Lazy load images, videos, iframes, convert to WebP & AVIF - EasyOptimizer scored84%from 54 tests.

About plugin

  • Plugin page: easy-optimizer
  • Plugin version: 1.0.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Jan 4, 2023
  • Latest release: Nov 20, 2023
  • Number of updates: 18
  • Update frequency: every 17.8 days
  • Top authors: easywpstuff (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

70+ active /1,687 total downloads

Benchmarks

Plugin footprint 83% 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.35MB] [CPU: ▲1.44ms] Passed 4 tests

Server-side resources used by Lazy load images, videos, iframes, convert to WebP & AVIF - EasyOptimizer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.86 ▲0.4035.14 ▼7.52
Dashboard /wp-admin3.68 ▲0.3855.31 ▲7.87
Posts /wp-admin/edit.php3.74 ▲0.3852.55 ▲6.94
Add New Post /wp-admin/post-new.php6.20 ▲0.3295.37 ▲5.25
Media Library /wp-admin/upload.php3.55 ▲0.3235.99 ▲1.09
Easy Optimizer /wp-admin/options-general.php?page=easy-optimizer3.5233.53

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Lazy load images, videos, iframes, convert to WebP & AVIF - EasyOptimizer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3114.67 ▲0.311.60 ▼0.0240.50 ▼6.34
Dashboard /wp-admin2,196 ▲165.60 ▼0.0795.99 ▼3.2741.80 ▼1.52
Posts /wp-admin/edit.php2,107 ▲71.96 ▲0.0239.41 ▲0.9135.82 ▼3.73
Add New Post /wp-admin/post-new.php1,531 ▲523.23 ▲0.00604.30 ▼13.1757.71 ▲5.52
Media Library /wp-admin/upload.php1,404 ▲44.19 ▲0.0297.14 ▼5.2541.64 ▼4.23
Easy Optimizer /wp-admin/options-general.php?page=easy-optimizer8772.0124.0334.52

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-optimizer/inc/options.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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:
  • Screenshots: Add an image for screenshot #1 (The plugin's settings page, where you can enable lazy-load and preload.)
You can look at the official readme.txt

easy-optimizer/easy-optimizer.php Passed 13 tests

The main PHP script in "Lazy load images, videos, iframes, convert to WebP & AVIF - EasyOptimizer" version 1.0.9 is automatically included on every request by WordPress
119 characters long description:
A plugin to preload pages and lazy-load images to improve FCP, LCP (Largest Contentful Paint), and overall performance.

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
Everything looks great! No dangerous files found in this plugin2,233 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP44663532,140
CSS10048
JavaScript37245

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity139.33
▷ Minimum class complexity30.00
▷ Maximum class complexity250.00
Average method complexity5.46
▷ Minimum method complexity1.00
▷ Maximum method complexity66.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods93
▷ Static methods11.08%
▷ Public methods7883.87%
▷ Protected methods1516.13%
▷ Private methods00.00%
Functions21
▷ Named functions1990.48%
▷ Anonymous functions29.52%
Constants26
▷ Global constants26100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin