84% quick-product-image-upload

Code Review | Quick Product Image Upload

WordPress plugin Quick Product Image Upload scored84%from 54 tests.

About plugin

  • Plugin page: quick-product-ima...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-3.9
  • WordPress version: 6.3.1
  • First release: Sep 21, 2014
  • Latest release: Sep 22, 2014
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: bdiskind (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

200+ active /3,878 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▼0.11MB] [CPU: ▼5.62ms] Passed 4 tests

Analyzing server-side resources used by Quick Product Image Upload
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0241.48 ▲0.09
Dashboard /wp-admin3.30 ▼0.0048.32 ▼0.12
Posts /wp-admin/edit.php3.37 ▲0.0244.83 ▼6.90
Add New Post /wp-admin/post-new.php5.45 ▼0.4476.19 ▼15.56
Media Library /wp-admin/upload.php3.21 ▼0.0133.57 ▲0.51

Server storage [IO: ▲0.01MB] [DB: ▲0.94MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Quick Product Image Upload
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.74 ▼0.011.65 ▼0.4841.47 ▼3.47
Dashboard /wp-admin2,206 ▲185.91 ▲1.0099.82 ▼12.1938.35 ▼2.05
Posts /wp-admin/edit.php2,104 ▲122.02 ▲0.0135.10 ▼5.0533.39 ▼2.44
Add New Post /wp-admin/post-new.php1,533 ▼923.25 ▲5.03649.02 ▲40.8357.04 ▲4.54
Media Library /wp-admin/upload.php1,391 ▲34.19 ▲0.0394.29 ▼2.9041.52 ▼0.86

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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 fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/quick-product-image-upload/quick-product-image-upload.php:11

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Contributors: The plugin contributors field is missing
You can look at the official readme.txt

quick-product-image-upload/quick-product-image-upload.php 92% from 13 tests

The entry point to "Quick Product Image Upload" version 1.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 200 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin97 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1232897

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in 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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
placeholder.png2.75KB2.92KB0.00%