89% image-converter-with-order

Code Review | Image Converter With Order

WordPress plugin Image Converter With Order scored 89% from 54 tests.

About plugin

  • Plugin page: image-converter-w...
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: WP 4.5-5.8.1
  • WordPress version: 6.3.1
  • First release: Oct 10, 2020
  • Latest release: Oct 26, 2021
  • Number of updates: 3
  • Update frequency: every 127.3 days
  • Top authors: mubeenkhan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 343 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
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.84ms] Passed 4 tests

Analyzing server-side resources used by Image Converter With Order
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.36 ▼2.79
Dashboard /wp-admin3.31 ▲0.0047.82 ▼2.20
Posts /wp-admin/edit.php3.36 ▲0.0046.76 ▼4.67
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.95 ▼5.68
Media Library /wp-admin/upload.php3.23 ▲0.0038.65 ▲4.16

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Image Converter With Order: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.48 ▲0.081.77 ▼0.1543.29 ▼5.44
Dashboard /wp-admin2,206 ▲184.86 ▼0.21116.81 ▲0.7243.80 ▼0.24
Posts /wp-admin/edit.php2,086 ▼32.03 ▲0.0433.82 ▼2.1634.99 ▲3.43
Add New Post /wp-admin/post-new.php1,533 ▼923.44 ▲5.31658.96 ▲22.6147.92 ▼0.25
Media Library /wp-admin/upload.php1,388 ▼34.15 ▼0.0693.78 ▼6.8340.58 ▼0.88

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% 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
Attributes that need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Admin Screen), #2 (Product Screen), #3 (Cart page Preview), #4 (Checkout page preview), #5 (Thanks you page preview)
Please take inspiration from this readme.txt

image-converter-with-order/image-converter-with-order.php 77% from 13 tests

The principal PHP file in "Image Converter With Order" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 188 characters long)
  • Requires at least: Required version number should use periods and dots only (ex. "7.0" instead of "WP 4.5")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin335 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP346179267
CSS21155
JavaScript13113

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity10.67
▷ Minimum class complexity2.00
▷ Maximum class complexity22.00
Average method complexity2.07
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods27
▷ Static methods00.00%
▷ Public methods2592.59%
▷ Protected methods00.00%
▷ Private methods27.41%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants13100.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
5 PNG files occupy 0.16MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png16.79KB9.06KB▼ 46.02%
screenshot-3.png24.85KB9.85KB▼ 60.39%
screenshot-5.png31.00KB12.57KB▼ 59.45%
screenshot-2.png63.12KB20.31KB▼ 67.82%
screenshot-4.png27.37KB10.76KB▼ 60.69%