84% simple-image-converter

Code Review | Simple Image Converter

WordPress plugin Simple Image Converter scored84%from 54 tests.

About plugin

  • Plugin page: simple-image-conv...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.2
  • WordPress version: 6.3.1
  • First release: Mar 31, 2023
  • Latest release: Apr 2, 2023
  • Number of updates: 4
  • Update frequency: every 1.0 days
  • Top authors: guruwebagency (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /350 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.70ms] Passed 4 tests

Analyzing server-side resources used by Simple Image Converter
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.66 ▼3.00
Dashboard /wp-admin3.32 ▲0.0247.41 ▼1.19
Posts /wp-admin/edit.php3.37 ▲0.0245.00 ▼2.75
Add New Post /wp-admin/post-new.php5.90 ▲0.0280.68 ▼7.87
Media Library /wp-admin/upload.php3.25 ▲0.0235.32 ▼0.21
Image Converter /wp-admin/options-general.php?page=image-Converter-settings3.2130.25

Server storage [IO: ▲0.30MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Simple Image Converter
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.24 ▼0.321.94 ▲0.3543.16 ▼1.48
Dashboard /wp-admin2,199 ▲225.65 ▼0.1284.06 ▼14.6536.79 ▼1.29
Posts /wp-admin/edit.php2,083 ▼172.01 ▼0.0034.26 ▼4.6231.59 ▼3.59
Add New Post /wp-admin/post-new.php1,529 ▼823.23 ▲4.98591.76 ▼38.7449.81 ▼33.40
Media Library /wp-admin/upload.php1,404 ▲74.28 ▲0.04101.14 ▼4.5942.14 ▼7.14
Image Converter /wp-admin/options-general.php?page=image-Converter-settings7992.0029.4629.68

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/simple-image-converter/simple-image-converter.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)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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: Please a description for screenshot #1 in simple-image-converter/assets to your readme.txt
  • Contributors: Plugin contributors field is missing
The official readme.txt might help

simple-image-converter/simple-image-converter.php Passed 13 tests

The main file in "Simple Image Converter" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
114 characters long description:
This plugin will compress images and convert them to WebP format automatically when uploaded to the media library.

Code Analysis Passed 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
Good job! No executable or dangerous file extensions detected56 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2183456

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.29MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/icon-128x128.png13.92KB6.55KB▼ 52.97%
img/banner-772x250.png93.34KB44.61KB▼ 52.20%
img/screenshot-1.png50.23KB19.04KB▼ 62.10%
img/banner-1544x500.png110.11KB44.15KB▼ 59.91%
img/icon-256x256.png31.45KB14.22KB▼ 54.78%