73% quick-image-transform

Code Review | Quick Image Transform

WordPress plugin Quick Image Transform scored73%from 54 tests.

About plugin

  • Plugin page: quick-image-trans...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-4.9.4
  • WordPress version: 6.3.1
  • First release: Feb 17, 2018
  • Latest release: Feb 19, 2018
  • Number of updates: 5
  • Update frequency: every 0.4 days
  • Top authors: frankobingen (100%)Otto42 (40%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /710 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.69ms] Passed 4 tests

Analyzing server-side resources used by Quick Image Transform
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0145.16 ▼2.51
Dashboard /wp-admin3.31 ▲0.0153.93 ▲2.51
Posts /wp-admin/edit.php3.36 ▲0.0149.15 ▲2.17
Add New Post /wp-admin/post-new.php5.90 ▲0.0286.87 ▼28.91
Media Library /wp-admin/upload.php3.23 ▲0.0037.71 ▲3.87

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Quick Image Transform
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,890 ▲14413.36 ▼1.181.82 ▼0.0543.41 ▲1.85
Dashboard /wp-admin2,299 ▲1115.12 ▲0.27117.74 ▲8.4044.00 ▲4.42
Posts /wp-admin/edit.php2,098 ▲92.08 ▲0.0735.22 ▼1.1132.24 ▲0.25
Add New Post /wp-admin/post-new.php1,524 ▼423.09 ▲5.02691.74 ▲26.1163.76 ▼0.41
Media Library /wp-admin/upload.php1,391 ▲34.28 ▲0.04101.09 ▼10.7645.32 ▲0.18

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
These items require your attention
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/quick-image-transform/img-transform-functions.php+42
    Undefined variable: target_dir
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_admin_url() in wp-content/plugins/quick-image-transform/includes/widget.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_deactivation_hook() in wp-content/plugins/quick-image-transform/img-transform-functions.php:53

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: dropzone, image, resize

quick-image-transform/img-transform-functions.php 77% from 13 tests

The primary PHP file in "Quick Image Transform" version 1.0.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("quick-image-transform.php" instead of "img-transform-functions.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 179 characters long)
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin2,653 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript25446062,385
PHP47882199
CSS114069

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.53
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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