10% easy-image-uploader

Code Review | Image Uploader Widget

WordPress plugin Image Uploader Widget scored10%from 54 tests.

About plugin

  • Plugin page: easy-image-uploader
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.0
  • WordPress version: 6.3.1
  • First release: Sep 17, 2014
  • Latest release: Sep 18, 2014
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: pratyay (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active /2,497 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/easy-image-uploader/easy-imageupload-widget.php+3
    Methods with the same name as their class will not be constructors in a future version of PHP; Easy_ImageUploader has a deprecated constructor

Server metrics [RAM: ▼1.91MB] [CPU: ▼53.12ms] Passed 4 tests

This is a short check of server-side resources used by Image Uploader Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.394.30 ▼39.29
Dashboard /wp-admin2.09 ▼1.215.33 ▼44.17
Posts /wp-admin/edit.php2.09 ▼1.265.79 ▼40.31
Add New Post /wp-admin/post-new.php2.09 ▼3.796.28 ▼88.70
Media Library /wp-admin/upload.php2.09 ▼1.135.06 ▼28.21

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Image Uploader Widget
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.29 ▼1.081.69 ▼0.0139.02 ▼4.76
Dashboard /wp-admin2,209 ▲214.84 ▼0.0899.97 ▼3.8838.57 ▼3.95
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0441.63 ▲1.5435.23 ▼2.89
Add New Post /wp-admin/post-new.php1,533 ▲1123.15 ▲0.10648.74 ▲30.9464.87 ▲4.15
Media Library /wp-admin/upload.php1,388 ▲64.21 ▲0.02101.84 ▲3.4744.94 ▲1.64

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
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/easy-image-uploader/easy-imageupload-widget.php+3
    Methods with the same name as their class will not be constructors in a future version of PHP; Easy_ImageUploader has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_easy_imageuploader
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/easy-image-uploader/easy-imageupload-widget.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/easy-image-uploader/easy-imageupload-widget.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Installation ), #2 (Widget ), #3 (Front end view )
You can look at the official readme.txt

easy-image-uploader/image-uploader.php 92% from 13 tests

The main file in "Image Uploader Widget" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("easy-image-uploader.php" instead of "image-uploader.php")

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 plugin155 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP33527152
CSS1003

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.11
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
3 PNG files occupy 0.30MB with 0.20MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png109.17KB25.86KB▼ 76.31%
screenshot-1.png107.82KB44.12KB▼ 59.08%
screenshot-2.png85.46KB27.80KB▼ 67.47%