10% imagets

Code Review | ImageTS

WordPress plugin ImageTS scored10%from 54 tests.

About plugin

  • Plugin page: imagets
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1+
  • WordPress version: 6.3.1
  • First release: Jan 7, 2016
  • Latest release: Jan 7, 2016
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: imagets (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,326 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/imagets/views/settings.php+25
    Undefined variable: licence

Server metrics [RAM: ▼1.77MB] [CPU: ▼55.59ms] Passed 4 tests

Analyzing server-side resources used by ImageTS
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.21 ▼1.255.25 ▼34.97
Dashboard /wp-admin2.24 ▼1.076.70 ▼49.82
Posts /wp-admin/edit.php2.24 ▼1.127.37 ▼40.56
Add New Post /wp-admin/post-new.php2.24 ▼3.656.45 ▼96.99
Media Library /wp-admin/upload.php2.24 ▼0.996.35 ▼28.40
ImageTS Settings /wp-admin/options-general.php?page=IMAGETS2.247.64

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 14 new options
New WordPress options
widget_recent-posts
imgsz
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
auto_time
can_compress_scripts
auto_mode
imagets_licence
start_index
...

Browser metrics Passed 4 tests

ImageTS: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,612 ▲85115.29 ▲0.682.12 ▲0.2645.94 ▲4.81
Dashboard /wp-admin3,003 ▲8266.84 ▲1.13145.26 ▲58.6586.91 ▲40.43
Posts /wp-admin/edit.php2,929 ▲8293.26 ▲1.2280.33 ▲40.5332.84 ▼6.97
Add New Post /wp-admin/post-new.php2,315 ▲77024.28 ▲1.20712.96 ▲46.7037.68 ▼24.67
Media Library /wp-admin/upload.php2,226 ▲8265.23 ▲1.11147.38 ▲47.2086.50 ▲42.21
ImageTS Settings /wp-admin/options-general.php?page=IMAGETS2,2102.9573.6139.44

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/imagets/views/settings.php+25
    Undefined variable: licence
  • Zombie WordPress options detected upon uninstall: 14 options
    • auto_mode
    • db_upgraded
    • widget_recent-posts
    • quality
    • count
    • theysaidso_admin_options
    • start_index
    • imgsz
    • widget_recent-comments
    • auto_time
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=IMAGETS
    • > Notice in wp-content/plugins/imagets/plugin.php+40
    Undefined variable: licence
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=IMAGETS
    • > Notice in wp-content/plugins/imagets/plugin.php+55
    Trying to get property 'ID' of non-object
  • 20 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=IMAGETS
    • > Notice in wp-content/plugins/imagets/views/settings.php+199
    Undefined index: options
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=IMAGETS
    • > Notice in wp-content/plugins/imagets/views/settings.php+228
    Undefined index: type
    • > GET request to /wp-admin/options-general.php?page=IMAGETS
    • > Notice in wp-content/plugins/imagets/views/manager.php+10
    Undefined variable: plugin_url

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=IMAGETS
    • > Javascript (severe) in unknown
    /wp-content/plugins/imagets/assets/js/engine.min.js?ver=6.3.1 3:29285 Uncaught Error: Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3
    • > GET request to /wp-admin/options-general.php?page=IMAGETS
    • > Rendering (warning) in unknown
    /wp-admin/options-general.php?page=IMAGETS 200 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/options-general.php?page=IMAGETS
    • > Javascript (severe) in unknown
    /wp-admin/options-general.php?page=IMAGETS - Access to XMLHttpRequest at 'http://imagets.com/api/c3b177f8db' from origin '' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
    • > GET request to /wp-admin/options-general.php?page=IMAGETS
    • > Network (severe)
    http://imagets.com/api/c3b177f8db - Failed to load resource: net::ERR_FAILED
    • > GET request to /wp-admin/options-general.php?page=IMAGETS
    • > Javascript (severe) in unknown
    /wp-admin/options-general.php?page=IMAGETS - Access to XMLHttpRequest at 'http://imagets.com/count/' from origin '' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
    • > GET request to /wp-admin/options-general.php?page=IMAGETS
    • > Network (severe)
    http://imagets.com/count/ - Failed to load resource: net::ERR_FAILED

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === imagets === )
  • Contributors: Plugin contributors not specified
You can look at the official readme.txt

imagets/imagets.php Passed 13 tests

"ImageTS" version 2.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
132 characters long description:
You can collect, convert and upload images. You can do all of them with ImageTS easily. It works in a compatible way with Wordpress.

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
Success! There were no dangerous files found in this plugin9,885 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
CSS35388,558
PHP414965648
JavaScript49115391
SVG100288

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity21.00
▷ Minimum class complexity12.00
▷ Maximum class complexity30.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods20
▷ Static methods315.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/logo.png1.24KB0.82KB▼ 33.75%
assets/images/icon.png0.25KB0.29KB0.00%