73% seo-optimized-images

Code Review | Seo Optimized Images

WordPress plugin Seo Optimized Images scored73%from 54 tests.

About plugin

  • Plugin page: seo-optimized-images
  • Plugin version: 2.1
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3+-6.2
  • WordPress version: 6.3.1
  • First release: Aug 17, 2015
  • Latest release: Jul 5, 2023
  • Number of updates: 47
  • Update frequency: every 61.3 days
  • Top authors: priyanshu.mittal (100%)

Code review

54 tests

User reviews

26 reviews

Install metrics

10,000+ active /228,722 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲4.96MB] [CPU: ▲23.35ms] Passed 4 tests

An overview of server-side resources used by Seo Optimized Images
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /8.85 ▲5.3962.55 ▲23.41
Dashboard /wp-admin8.87 ▲5.5767.36 ▲18.14
Posts /wp-admin/edit.php8.87 ▲5.5280.75 ▲34.69
Add New Post /wp-admin/post-new.php9.24 ▲3.35114.12 ▲17.16
Media Library /wp-admin/upload.php8.87 ▲5.6566.82 ▲35.44
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius8.8755.03

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 186 new files
Database: no new tables, 9 new options
New WordPress options
fs_debug_mode
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
fs_accounts
fs_active_plugins

Browser metrics Passed 4 tests

This is an overview of browser requirements for Seo Optimized Images
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲6313.25 ▼1.301.70 ▼0.2928.39 ▼15.90
Dashboard /wp-admin2,240 ▲495.84 ▲0.95114.05 ▲10.9347.50 ▲5.62
Posts /wp-admin/edit.php2,123 ▲342.02 ▲0.0336.33 ▲1.1734.17 ▼0.10
Add New Post /wp-admin/post-new.php1,532 ▲1822.99 ▲5.44629.74 ▼47.8266.84 ▲5.48
Media Library /wp-admin/upload.php1,425 ▲464.23 ▲0.0395.33 ▼8.2943.72 ▲0.32
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,0841.8324.4429.08

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/seo-optimized-images/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • The uninstall procedure has failed, leaving 9 options in the database
    • fs_active_plugins
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • fs_debug_mode
    • widget_theysaidso_widget
    • fs_accounts
    • theysaidso_admin_options

Smoke tests 75% from 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 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 take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_parse_args() in wp-content/plugins/seo-optimized-images/seo-optimized-images-settings.php:10

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 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Requires at least: Version format is invalid
  • Tags: Too many tags (19 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

seo-optimized-images/seo-optimized-images.php 85% from 13 tests

The principal PHP file in "Seo Optimized Images" v. 2.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 202 characters long)
  • Requires at least: Please use periods and digits for the required version (ex. "7.0" instead of "3.3+")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin38,841 lines of code in 141 files:
LanguageFilesBlank linesComment linesLines of code
PHP1198,04217,24233,275
CSS163361505,137
JavaScript54059215
Markdown1680214

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity93.06
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.59
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes48
▷ Abstract classes24.17%
▷ Concrete classes4695.83%
▷ Final classes00.00%
Methods1,259
▷ Static methods19715.65%
▷ Public methods87069.10%
▷ Protected methods171.35%
▷ Private methods37229.55%
Functions104
▷ Named functions104100.00%
▷ Anonymous functions00.00%
Constants146
▷ Global constants9967.81%
▷ Class constants4732.19%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
freemius/assets/img/seo-optimized-images.png3.12KB2.85KB▼ 8.43%