83% gumlet

Code Review | Gumlet - Image optimization with Resize, Compression, Lazy load, Caching & CDN delivery

WordPress plugin Gumlet - Image optimization with Resize, Compression, Lazy load, Caching & CDN delivery scored83%from 54 tests.

About plugin

  • Plugin page: gumlet
  • Plugin version: 1.3.11
  • PHP compatiblity: 5.6.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.3.1
  • WordPress version: 6.3.1
  • First release: Jul 13, 2019
  • Latest release: Oct 23, 2023
  • Number of updates: 151
  • Update frequency: every 10.4 days
  • Top authors: adityapatadia (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

800+ active /52,418 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.17MB] [CPU: ▼7.08ms] Passed 4 tests

A check of server-side resources used by Gumlet - Image optimization with Resize, Compression, Lazy load, Caching & CDN delivery
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1936.73 ▼0.18
Dashboard /wp-admin3.48 ▲0.1444.33 ▼15.39
Posts /wp-admin/edit.php3.60 ▲0.2444.22 ▼3.03
Add New Post /wp-admin/post-new.php6.07 ▲0.1889.89 ▼7.44
Media Library /wp-admin/upload.php3.41 ▲0.1836.06 ▼2.46
Gumlet /wp-admin/options-general.php?page=gumlet-options3.3832.52

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
gumlet_settings
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Gumlet - Image optimization with Resize, Compression, Lazy load, Caching & CDN delivery
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.35 ▼0.001.66 ▲0.0839.39 ▼0.23
Dashboard /wp-admin2,202 ▲275.59 ▼0.0280.00 ▼16.9038.90 ▼1.67
Posts /wp-admin/edit.php2,104 ▲42.02 ▲0.0732.59 ▼1.7434.23 ▼8.54
Add New Post /wp-admin/post-new.php1,529 ▲123.16 ▲0.11613.26 ▼49.6357.16 ▲5.24
Media Library /wp-admin/upload.php1,395 ▼54.17 ▼0.1395.19 ▼17.7341.13 ▼3.61
Gumlet /wp-admin/options-general.php?page=gumlet-options1,0962.2023.0428.14

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • gumlet_settings
    • widget_recent-posts
    • widget_recent-comments

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 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
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/gumlet/includes/options-page.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/gumlet/includes/class-gumlet.php:80
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/gumlet/includes/class-gumlet.php:80

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots lack descriptions #7, #8, #9 in gumlet/assets to your readme.txt
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
Please take inspiration from this readme.txt

gumlet/gumlet.php 92% from 13 tests

The entry point to "Gumlet - Image optimization with Resize, Compression, Lazy load, Caching & CDN delivery" version 1.3.11 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 211 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin947 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP5114262875
Markdown212026
CSS14025
YAML17021

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.66
Average class complexity60.33
▷ Minimum class complexity4.00
▷ Maximum class complexity172.00
Average method complexity6.24
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods34
▷ Static methods411.76%
▷ Public methods2985.29%
▷ Protected methods411.76%
▷ Private methods12.94%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/pixel.png0.07KB0.09KB0.00%
assets/images/gumlet-logo.png15.73KB6.19KB▼ 60.61%