93% echbay-optimize-images

Code Review | EchBay Optimize Images

WordPress plugin EchBay Optimize Images scored 93% from 54 tests.

About plugin

  • Plugin page: echbay-optimize-i...
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.8
  • WordPress version: 5.8.1
  • First release: Jun 6, 2017
  • Latest release: Sep 7, 2021
  • Number of updates: 49
  • Update frequency: every 31.7 days
  • Top authors: itvn9online (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 3,928 total downloads

Benchmarks

Plugin footprint Passed 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.12MB] [CPU: ▼137.59ms] Passed 4 tests

A check of server-side resources used by EchBay Optimize Images
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.93 ▲0.2124.21 ▼0.32
Dashboard /wp-admin3.16 ▲0.1155.87 ▲0.27
Posts /wp-admin/edit.php3.28 ▲0.1748.25 ▼0.34
Add New Post /wp-admin/post-new.php5.53 ▲0.10108.23 ▼548.56
Media Library /wp-admin/upload.php3.11 ▲0.1038.73 ▼1.15
Webgiare Plugins /wp-admin/admin.php?page=echbay-plugins-menu3.0829.10
Optimize Images /wp-admin/admin.php?page=echbay-optimize-images3.0831.69

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for EchBay Optimize Images
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,723 ▲8716.02 ▲0.168.04 ▼2.2343.25 ▼5.69
Dashboard /wp-admin3,007 ▲736.06 ▲0.14140.67 ▼12.85104.92 ▼12.16
Posts /wp-admin/edit.php2,773 ▲342.70 ▼0.0177.90 ▲7.9297.87 ▲2.03
Add New Post /wp-admin/post-new.php1,637 ▲2221.05 ▼0.19287.09 ▼1.16119.07 ▲3.65
Media Library /wp-admin/upload.php1,841 ▲345.03 ▼0.00157.73 ▼26.97120.38 ▼6.20
Webgiare Plugins /wp-admin/admin.php?page=echbay-plugins-menu1,3042.3462.2197.88
Optimize Images /wp-admin/admin.php?page=echbay-optimize-images1,3042.3464.39100.22

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/echbay-optimize-images/eoi.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Screenshots: Add an image for screenshot #1 (EchBay Optimize Images main.)
Please take inspiration from this readme.txt

echbay-optimize-images/eoi.php 77% from 13 tests

The main PHP file in "EchBay Optimize Images" ver. 1.1.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("echbay-optimize-images.php" instead of "eoi.php")
  • 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
Everything looks great! No dangerous files found in this plugin625 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP10123622
CSS1001
HTML1001
JavaScript1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity25.00
▷ Minimum class complexity13.00
▷ Maximum class complexity37.00
Average method complexity3.82
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.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
There were not PNG files found in your plugin