89% auto-upload-images

Code Review | Auto Upload Images

WordPress plugin Auto Upload Images scored89%from 54 tests.

About plugin

  • Plugin page: auto-upload-images
  • Plugin version: 3.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-6.1.1
  • WordPress version: 6.3.1
  • First release: Nov 13, 2012
  • Latest release: Dec 16, 2022
  • Number of updates: 45
  • Update frequency: every 81.9 days
  • Top authors: airani (100%)

Code review

54 tests

User reviews

95 reviews

Install metrics

30,000+ active /258,941 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼2.02ms] Passed 4 tests

An overview of server-side resources used by Auto Upload Images
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0839.03 ▼3.19
Dashboard /wp-admin3.39 ▲0.0846.93 ▲0.72
Posts /wp-admin/edit.php3.50 ▲0.1446.60 ▼4.32
Add New Post /wp-admin/post-new.php5.97 ▲0.0884.44 ▼1.28
Media Library /wp-admin/upload.php3.31 ▲0.0836.49 ▲1.18
Auto Upload Images /wp-admin/options-general.php?page=auto-upload3.3331.38

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Auto Upload Images
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.78 ▲0.481.77 ▲0.0643.02 ▼3.65
Dashboard /wp-admin2,210 ▲254.86 ▼0.04105.09 ▼4.3141.94 ▼2.96
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0436.35 ▼9.4933.81 ▼2.52
Add New Post /wp-admin/post-new.php1,536 ▼623.28 ▲4.78683.94 ▲57.3353.66 ▲3.70
Media Library /wp-admin/upload.php1,392 ▲44.14 ▼0.03108.61 ▲12.2045.70 ▲1.18
Auto Upload Images /wp-admin/options-general.php?page=auto-upload1,2292.0622.1630.67

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

auto-upload-images/index.php 92% from 13 tests

The main PHP file in "Auto Upload Images" ver. 3.3.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("auto-upload-images.php" instead of "index.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 plugin1,502 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PO File7235300780
PHP588158574
Markdown1700148

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity41.50
▷ Minimum class complexity40.00
▷ Maximum class complexity43.00
Average method complexity4.12
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods26
▷ Static methods623.08%
▷ Public methods2388.46%
▷ Protected methods311.54%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected