84% auto-product-after-upload-image

Code Review | Auto Product After Upload Image

WordPress plugin Auto Product After Upload Image scored84%from 54 tests.

About plugin

  • Plugin page: auto-product-afte...
  • Plugin version: 2022.10.24
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5
  • WordPress version: 6.3.1
  • First release: Aug 15, 2020
  • Latest release: Oct 24, 2022
  • Number of updates: 32
  • Update frequency: every 25.0 days
  • Top authors: quyle91 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

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

Server metrics [RAM: ▲0.12MB] [CPU: ▼7.44ms] Passed 4 tests

Analyzing server-side resources used by Auto Product After Upload Image
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1243.05 ▲0.10
Dashboard /wp-admin3.43 ▲0.0950.80 ▼18.09
Posts /wp-admin/edit.php3.55 ▲0.1957.91 ▲6.77
Add New Post /wp-admin/post-new.php6.03 ▲0.1596.30 ▼14.71
Media Library /wp-admin/upload.php3.36 ▲0.1341.28 ▲2.93

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Auto Product After Upload Image
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲8814.21 ▼0.071.95 ▲0.0841.42 ▲1.20
Dashboard /wp-admin2,215 ▲385.67 ▲0.0789.65 ▼3.4639.25 ▼7.76
Posts /wp-admin/edit.php2,123 ▲202.14 ▲0.1539.35 ▲0.0835.59 ▲0.46
Add New Post /wp-admin/post-new.php1,543 ▲1723.12 ▼0.42673.59 ▼11.6951.63 ▼9.00
Media Library /wp-admin/upload.php1,423 ▲234.20 ▼0.0198.00 ▼7.1644.66 ▲1.86

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/auto-product-after-upload-image/auto-product-after-upload-image.php:871

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

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention: Please take inspiration from this readme.txt

auto-product-after-upload-image/auto-product-after-upload-image.php Passed 13 tests

This is the main PHP file of "Auto Product After Upload Image" version 2022.10.24, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
63 characters long description:
As name. Plugin allow create multiple at once by Image uploaded

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected781 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP18833750
JavaScript13031

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity136.00
▷ Minimum class complexity136.00
▷ Maximum class complexity136.00
Average method complexity6.19
▷ Minimum method complexity1.00
▷ Maximum method complexity63.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods26
▷ Static methods00.00%
▷ Public methods26100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
No PNG files were detected